/* ===== SnapFood Voucher Cards ===== */

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

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

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

/* MOBILE: 2 columns */
@media (max-width: 768px) {
	.snf-grid-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
	.snf-icon {
		width: 60px !important;
		height: 60px !important;
		border-radius: 6px !important;
	}
	.snf-copy {
		max-width: 60px !important;
		height: 30px !important;
		border-radius: 6px !important;
	}
	.snf-card {
		height: 130px !important;
		padding: 10px !important;
	}
	.snf-link {
		height: 30px !important;
		border-radius: 6px !important;
	}
	.snf-title {
		font-size: 12px !important;
		font-weight: 700 !important;
		line-height: 1.4 !important;
		margin-top: -10px !important;
	}
	.snf-content {
		height: 64px !important;
	}
	.snf-code-top {
		font-size: 9px !important;
	}
	.snf-sub {
		font-size: 10px !important;
	}
}

/* CARD */
.snf-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;
}

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

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

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

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

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

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

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

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

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

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

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

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