.tariff-table {
	margin-top: 2.8rem;
	position: relative;
}

.tariff-table__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.tariff-scroll-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	color: var(--color-base);
	background: var(--color-white);
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 5;
	opacity: 0;
	pointer-events: none;
}

.tariff-scroll-btn--left {
	left: 8px;
}

.tariff-scroll-btn--right {
	right: 8px;
}

.tariff-scroll-btn.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.tariff-scroll-btn:active {
	transform: translateY(-50%) scale(0.95);
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(19, auto);
	gap: 5px;
	margin: 0 auto;
	min-width: 100%;
}

.grid-container>div {
	background-color: var(--color-white);
	text-align: center;
	padding: 12px;
	font-size: 1rem;
}

.grid-container>div.tariff-divider {
	grid-column: 1 / 5;
	padding: 0;
	font-size: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgb(161, 161, 161), rgba(0, 0, 0, 0));
}

.grid-container .tariff-feature {
	text-align: left;
	font-weight: 500;
}

.slider-wrapper {
	margin: 3.6rem auto 0;
	width: 86%;
}


@media (max-width: 480px) {
	.grid-container {
		grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(220px, 1fr));
		gap: 8px;
		min-width: 820px;
	}

	.grid-container>div {
		font-size: 0.94rem;
	}

	.grid-container .tariff-feature {
		position: sticky;
		left: 0;
		background-color: var(--color-white);
		z-index: 2;
	}

	.tariff-scroll-btn {
		display: flex;
	}

	.tariff-table__scroll::-webkit-scrollbar {
		height: 6px;
	}

	.tariff-table__scroll::-webkit-scrollbar-thumb {
		background: rgba(0, 0, 0, 0.2);
		border-radius: 3px;
	}
	
	.slider-wrapper {
		width: 86%;
	}
}