/* ── Kupon Vitrini — şık kupon kartı ── */

.kv-coupon {
	position: relative;
	display: flex;
	align-items: stretch;
	margin-top: 14px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
	overflow: hidden;
}

/* Çentikli ayraç (kupon hissi) */
.kv-coupon::before,
.kv-coupon::after {
	content: "";
	position: absolute;
	left: 118px;
	width: 18px;
	height: 18px;
	background: #f4f6fb;
	border-radius: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.kv-coupon::before {
	top: -10px;
}

.kv-coupon::after {
	bottom: -10px;
}

/* Sol blok — büyük indirim oranı */
.kv-coupon__left {
	flex: 0 0 118px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	color: #fff;
	text-align: center;
	padding: 14px 8px;
	border-right: 2px dashed rgba(255, 255, 255, .55);
}

.kv-coupon__percent {
	line-height: 1.05;
}

.kv-coupon__percent-value {
	display: block;
	font-size: 28px;
	font-weight: 900;
	letter-spacing: -.02em;
}

.kv-coupon__percent-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	opacity: .95;
	margin-top: 2px;
}

/* Sağ blok — kod ve bilgiler */
.kv-coupon__right {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px;
}

.kv-coupon__headline {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 4px;
}

.kv-coupon__code-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #94a3b8;
}

.kv-coupon__code {
	font-size: 20px;
	font-weight: 900;
	letter-spacing: .1em;
	color: #0f172a;
	line-height: 1.2;
	margin-bottom: 6px;
}

.kv-coupon__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 12.5px;
	color: #475569;
}

.kv-coupon__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.kv-coupon__meta-item::before {
	content: "✓";
	color: #16a34a;
	font-weight: 800;
	font-size: 11px;
}

.kv-coupon__meta-item strong {
	color: #0f172a;
}

/* Kalan adet vurgusu */
.kv-coupon__meta-item--stock {
	color: #b91c1c;
	font-weight: 700;
}

.kv-coupon__meta-item--stock::before {
	content: "🎟";
	color: #b91c1c;
	font-size: 11px;
}

.kv-coupon__meta-item--stock strong {
	color: #b91c1c;
}

.kv-coupon__urgency {
	display: inline-block;
	margin-top: 7px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 700;
	color: #b91c1c;
	background: #fee2e2;
	border-radius: 999px;
	animation: kv-pulse 1.8s ease-in-out infinite;
}

/* ── Süresi geçmiş / tükenmiş kupon ── */
.kv-coupon--expired {
	opacity: .6;
	filter: grayscale(.55);
}

.kv-coupon--expired .kv-coupon__left {
	background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.kv-coupon__badge--expired {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #94a3b8;
	border-radius: 999px;
	vertical-align: middle;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.kv-coupon__expired-note {
	margin-top: 8px;
	padding: 6px 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	border-radius: 8px;
}

@keyframes kv-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .65; }
}

/* ── Checkout Sipariş Özeti içinde (daha kompakt) ── */
.kv-coupon--checkout {
	margin: 0 0 12px;
}

.kv-coupon--checkout .kv-coupon__left {
	flex-basis: 92px;
}

.kv-coupon--checkout .kv-coupon__percent-value {
	font-size: 22px;
}

.kv-coupon--checkout .kv-coupon__code {
	font-size: 17px;
}

.kv-coupon--checkout::before,
.kv-coupon--checkout::after {
	left: 92px;
}

.kv-coupon--checkout .kv-coupon__headline {
	display: none;
}

/* Mobil */
@media (max-width: 420px) {
	.kv-coupon__left {
		flex-basis: 92px;
	}

	.kv-coupon__percent-value {
		font-size: 22px;
	}

	.kv-coupon::before,
	.kv-coupon::after {
		left: 92px;
	}

	.kv-coupon__code {
		font-size: 17px;
	}
}
