/* ===== Voucher Coupon Cards ===== */

.vcc-grid-wrapper,
.vcc-grid-wrapper * {
	box-sizing: border-box;
}

/* GRID CONTAINER */
.vcc-grid-wrapper {
	display: grid;
	gap: 12px;
	max-width: 1100px;
	margin: 0 auto;
	direction: rtl;
}

/* DESKTOP: 3 columns */
@media (min-width: 769px) {
	.vcc-grid-wrapper {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* MOBILE: single column (no-JS fallback before slider initializes) */
@media (max-width: 768px) {
	.vcc-grid-wrapper:not(.vcc-slider-active) {
		grid-template-columns: 1fr;
	}
	.vcc-icon {
		width: 60px !important;
		height: 60px !important;
		border-radius: 6px !important;
	}
	.vcc-copy {
		max-width: 60px !important;
		height: 30px !important;
		border-radius: 6px !important;
	}
	.vcc-card {
		height: 130px !important;
		padding: 10px !important;
	}
	.vcc-link {
		height: 30px !important;
		border-radius: 6px !important;
	}
	.vcc-title {
		font-size: 12px !important;
		font-weight: 700 !important;
		line-height: 1.4 !important;
		margin-top: -10px !important;
	}
	.vcc-content {
		height: 64px !important;
	}
	.vcc-code-top {
		font-size: 9px !important;
	}
	.vcc-sub {
		font-size: 10px !important;
	}
}

/* MOBILE SLIDER: JS wraps cards into pages, adds this class to the wrapper.
   Uses native horizontal scroll + scroll-snap instead of manual transform math,
   which avoids known cross-browser bugs when mixing RTL direction overrides
   with flex + CSS transform. Nav sits above the track in normal flow (no
   absolute positioning) so it's always visible and unambiguous. */
@media (max-width: 768px) {
	.vcc-grid-wrapper.vcc-slider-active {
		display: block;
	}

	.vcc-slider-nav {
		display: flex;
		justify-content: space-between;
		margin-bottom: 12px;
	}

	.vcc-slider-arrow {
		width: 36px;
		height: 36px;
		border: none;
		border-radius: 999px;
		background: #ffe6f6;
		color: #ff00a6;
		font-size: 18px;
		line-height: 1;
		cursor: pointer;
	}

	.vcc-slider-arrow:disabled {
		opacity: 0.35;
		cursor: default;
	}

	.vcc-slider-track {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none; /* Firefox */
	}

	.vcc-slider-track::-webkit-scrollbar {
		display: none; /* Chrome/Safari */
	}

	.vcc-slide {
		flex: 0 0 100%;
		max-width: 100%;
		scroll-snap-align: start;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
}

/* CARD */
.vcc-card {
	width: 100%;
	height: 154px;
	background: #fff;
	border: 1px solid rgba(19, 20, 31, 0.08);
	border-radius: 16px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vcc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* TOP SECTION */
.vcc-top {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

/* ICON */
.vcc-icon {
	width: 88px;
	height: 74px;
	background: rgba(19, 20, 31, 0.06);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vcc-icon img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

/* TEXT BLOCK (fixed height = icon height) */
.vcc-content {
	height: 74px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.vcc-code-top {
	font-size: 11px;
	color: #777;
}

.vcc-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.vcc-sub {
	font-size: 11px;
	color: #777;
	margin-top: -6px;
}

/* ACTIONS */
.vcc-actions {
	display: flex;
	gap: 10px;
}

/* COPY BUTTON */
.vcc-copy {
	flex: 1;
	height: 40px;
	background: #ff00a6;
	color: #fff;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 400;
	font-size: 12px;
}

/* LINK BUTTON */
.vcc-link {
	flex: 1;
	height: 40px;
	background: #ffe6f6;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #ff00a6;
	font-weight: 400;
	font-size: 12px;
}

/* TOUCH UX */
.vcc-copy:active,
.vcc-link:active {
	transform: scale(0.98);
}
