/* WC User Coupon Wallet — coupon-card.css v1.3.8 */

/* ── BASE ───────────────────────────────────────────── */
.wcucw-card * { box-sizing: border-box; }
.wcucw-card {
	width: 100%;
	margin-bottom: 16px;
	font-family: inherit;
}
.wcucw-cd {
	font-size: 11px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 5px;
}
.wcucw-codekey {
	font-family: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px dashed #d0d0d0;
	color: #646970;
	letter-spacing: 0.05em;
}

/* ── TEMPLATE 1: GRADIENT SPLIT ─────────────────────── */
.wcucw-tpl-1 {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e6e6e6;
	background: #fff;
}
.wcucw-tpl-1-top {
	display: flex;
	min-height: 120px;
}
.wcucw-tpl-1-left {
	flex: 0 0 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 12px;
	position: relative;
}
.wcucw-tpl-1-left::after {
	content: '';
	position: absolute;
	right: -12px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e6e6e6;
	z-index: 1;
}
.wcucw-tpl-1-val {
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	text-align: center;
}
.wcucw-tpl-1-type {
	font-size: 11px;
	color: rgba(255,255,255,0.85);
	margin-top: 4px;
}
.wcucw-tpl-1-right {
	flex: 1;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}
.wcucw-tpl-1-code {
	font-size: 15px;
	font-weight: 700;
	color: #1d2327;
	letter-spacing: 0.02em;
}
.wcucw-tpl-1-desc {
	font-size: 12px;
	color: #646970;
	line-height: 1.4;
}
.wcucw-tpl-1-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 2px;
}
.wcucw-pill {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 20px;
	background: #f0f0f1;
	color: #50575e;
}
.wcucw-tpl-1-bot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-top: 1px solid #e6e6e6;
	background: #fafafa;
}
.wcucw-tpl-1-bot button {
	font-size: 12px;
	font-weight: 600;
	padding: 7px 20px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s;
}
.wcucw-tpl-1-bot button:hover:not(:disabled) { opacity: 0.85; }

/* ── TEMPLATE 2: FULL-BLEED ─────────────────────────── */
.wcucw-tpl-2 {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e6e6e6;
	background: #fff;
}
.wcucw-tpl-2-head {
	padding: 20px 20px 16px;
	position: relative;
}
.wcucw-tpl-2-ribbon {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 10px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	background: rgba(255,255,255,0.25);
	color: #fff;
}
.wcucw-tpl-2-val {
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: 6px;
}
.wcucw-tpl-2-code-row {
	display: flex;
	align-items: center;
	gap: 6px;
}
.wcucw-tpl-2-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,0.9);
	letter-spacing: 0.1em;
}
.wcucw-tpl-2-divider-row {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
}
.wcucw-tpl-2-circle {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f5f5f5;
	flex-shrink: 0;
	border: 1px solid #e6e6e6;
}
.wcucw-tpl-2-dashes {
	flex: 1;
	border-top: 1px dashed #e6e6e6;
}
.wcucw-tpl-2-body { padding: 14px 20px 0; }
.wcucw-tpl-2-desc {
	font-size: 13px;
	color: #1d2327;
	margin-bottom: 10px;
}
.wcucw-tpl-2-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 10px;
}
.wcucw-tpl-2-info {}
.wcucw-info-l {
	font-size: 10px;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.wcucw-info-v {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin-top: 2px;
}
.wcucw-tpl-2-bot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-top: 1px solid #e6e6e6;
	margin-top: 14px;
}
.wcucw-tpl-2-bot button {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 22px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s;
}
.wcucw-tpl-2-bot button:hover:not(:disabled) { opacity: 0.85; }
.wcucw-quota-text {
	font-size: 10px;
	color: #9ca3af;
	margin-bottom: 4px;
	text-align: right;
}
.wcucw-quota-bar {
	width: 80px;
	height: 4px;
	background: #e6e6e6;
	border-radius: 4px;
	overflow: hidden;
}
.wcucw-quota-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}

/* ── TEMPLATE 3: COMPACT BADGE ──────────────────────── */
.wcucw-tpl-3 {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e6e6e6;
	background: #fff;
}
.wcucw-tpl-3-accent {
	height: 5px;
}
.wcucw-tpl-3-body {
	padding: 12px 14px;
}
.wcucw-tpl-3-row1 {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 4px;
}
.wcucw-tpl-3-val {
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}
.wcucw-tpl-3-badge {
	font-size: 10px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 20px;
}
.wcucw-tpl-3-code {
	font-size: 13px;
	font-weight: 700;
	color: #1d2327;
	letter-spacing: 0.03em;
	margin-bottom: 3px;
}
.wcucw-tpl-3-desc {
	font-size: 12px;
	color: #646970;
	line-height: 1.4;
	margin-bottom: 8px;
}
.wcucw-tpl-3-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.wcucw-tag {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 20px;
	background: #f0f0f1;
	color: #50575e;
}
.wcucw-tpl-3-bot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-top: 1px solid #e6e6e6;
	background: #fafafa;
}
.wcucw-tpl-3-bot button {
	font-size: 12px;
	font-weight: 600;
	padding: 7px 20px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s;
}
.wcucw-tpl-3-bot button:hover:not(:disabled) { opacity: 0.85; }

/* ── SHARED BUTTON STATE ────────────────────────────── */
.wcucw-card button:disabled,
.wcucw-card .wcucw-btn-static {
	cursor: default;
	opacity: 0.85;
}

/* Responsive: stack template 1 on mobile */
@media (max-width: 480px) {
	.wcucw-tpl-1-top { flex-direction: column; }
	.wcucw-tpl-1-left { width: 100%; min-height: 80px; padding: 16px; }
	.wcucw-tpl-1-left::after { display: none; }
}

/* Listing grid — v1.3.6: equal-height cards via grid-auto-rows + flex stretch */
.wcucw-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
	grid-auto-rows: 1fr; /* equal-height rows */
}
@media (max-width: 480px) {
	.wcucw-listing-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
}

/* v1.3.6: Make each card stretch to fill its grid cell so footers align. */
.wcucw-listing-grid > .wcucw-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-bottom: 0; /* container handles gap */
}

/* Template-1 stretch: top fills, bot anchors. */
.wcucw-listing-grid > .wcucw-tpl-1 > .wcucw-tpl-1-top {
	flex: 1 1 auto;
	align-items: stretch;
}
.wcucw-listing-grid > .wcucw-tpl-1 > .wcucw-tpl-1-bot {
	margin-top: auto;
}
/* Template-2 stretch */
.wcucw-listing-grid > .wcucw-tpl-2 > .wcucw-tpl-2-body {
	flex: 1 1 auto;
}
.wcucw-listing-grid > .wcucw-tpl-2 > .wcucw-tpl-2-bot {
	margin-top: auto;
}
/* Template-3 stretch */
.wcucw-listing-grid > .wcucw-tpl-3 > .wcucw-tpl-3-body {
	flex: 1 1 auto;
}
.wcucw-listing-grid > .wcucw-tpl-3 > .wcucw-tpl-3-bot {
	margin-top: auto;
}

/* v1.3.6: Reserve baseline height for the countdown row so cards with
   and without a countdown line up.  20px ≈ 11px font + lh 1.4 + 2px breathing. */
.wcucw-tpl-1-right > .wcucw-cd,
.wcucw-tpl-2-body  > .wcucw-cd,
.wcucw-tpl-3-body  > .wcucw-cd {
	min-height: 16px;
}
.wcucw-tpl-1-right::after,
.wcucw-tpl-2-body::after,
.wcucw-tpl-3-body::after {
	content: '';
	display: block;
	min-height: 0;
}

/* v1.3.6: pill row reserves min-height to absorb 1-3 pills without collapsing rows */
.wcucw-tpl-1-pills,
.wcucw-tpl-3-tags {
	min-height: 18px;
}

/* v1.3.6: Flatsome .col override — when listing grid is placed inside a
   Flatsome .row / .col grid, Flatsome's float-based columns will collapse
   to content height.  This rule forces .col children to stretch their
   inner card to match the tallest sibling, while remaining harmless on
   non-Flatsome themes. */
.wcucw-listing-flatsome {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}
.wcucw-listing-flatsome > .col {
	display: flex;
}
.wcucw-listing-flatsome > .col > .col-inner,
.wcucw-listing-flatsome > .col > .wcucw-card {
	width: 100%;
	display: flex;
	flex-direction: column;
}

/* v1.3.8 / v1.4.0: Latest-N grid column overrides.
 *
 * Used by [wcucw_latest_coupons columns="..."] and [wcucw_my_active_coupons columns="..."].
 * The base .wcucw-listing-grid uses auto-fill minmax(320px, 1fr) — these classes
 * force exact column counts regardless of card width.
 *
 * Responsive behaviour (v1.4.0 spec):
 *   > 900px  : honour columns exactly (2 / 3 / 4)
 *   601-900px: cols 3 & 4 collapse to 2; cols 2 stays 2 (tablet)
 *   <= 600px : every column count collapses to 1 (mobile, full-width cards) */
.wcucw-latest-grid.wcucw-latest-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wcucw-latest-grid.wcucw-latest-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wcucw-latest-grid.wcucw-latest-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.wcucw-latest-grid.wcucw-latest-cols-3,
	.wcucw-latest-grid.wcucw-latest-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.wcucw-latest-grid.wcucw-latest-cols-2,
	.wcucw-latest-grid.wcucw-latest-cols-3,
	.wcucw-latest-grid.wcucw-latest-cols-4 {
		grid-template-columns: 1fr;
	}
}

/* v1.4.0: expired-tab removal-grace notice. */
.wcucw-expired-notice {
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #92400e;
	background: #fef3c7;
	border: 1px solid #fcd34d;
	border-radius: 8px;
}

/* ── v1.3.6: Countdown pill state classes ─────────────────────────── */
.wcucw-cd--active   { color: #1D9E75; }
.wcucw-cd--expiring { color: #D97706; font-weight: 600; }
.wcucw-cd--urgent {
	color: #E24B4A;
	font-weight: 700;
	animation: wcucwUrgentPulse 1.4s ease-in-out infinite;
}
.wcucw-cd--expired { color: #888780; }
@keyframes wcucwUrgentPulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.55; }
}
/* Grey-out expired cards (set by JS after countdown hits zero). */
.wcucw-card--expired {
	opacity: 0.5;
	filter: grayscale(0.25);
}
.wcucw-card--expired button:not(:disabled) {
	pointer-events: none;
	cursor: default;
}

/* ── VARIANTS ───────────────────────────────────────── */

/* COMPACT */
.wcucw-v { box-sizing: border-box; }
.wcucw-v-compact {
	display: flex;
	align-items: center;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e6e6e6;
	background: #fff;
}
.wcucw-v-compact-bar {
	width: 5px;
	align-self: stretch;
	flex-shrink: 0;
}
.wcucw-v-compact-body {
	flex: 1;
	padding: 8px 12px;
	min-width: 0;
}
.wcucw-v-compact-val {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.wcucw-v-compact-min {
	font-size: 11px;
	color: #646970;
	margin-top: 2px;
}
/* v1.2.6 fix: compact button aligned right and centered vertically */
.wcucw-v-compact-btn {
	flex-shrink: 0;
	margin-right: 10px;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s;
	align-self: center;
}
.wcucw-v-compact-btn:hover:not(:disabled) { opacity: 0.85; }

/* INLINE — v1.2.6: Ticket Tear design */
.wcucw-v-inline {
	display: flex;
	align-items: stretch;
	border: 1px dashed #c5c5c5;
	border-radius: 10px;
	overflow: visible;
	background: #fff;
	position: relative;
	min-height: 60px;
}
/* v1.3.0: notch circles removed — obstructed coupon code readability */
/* stub left */
.wcucw-v-inline-stub {
	flex-shrink: 0;
	width: 76px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 8px;
	border-right: 1px dashed #c5c5c5;
}
.wcucw-v-inline-val {
	font-size: 20px;
	font-weight: 700;
	color: #2271B1;
	line-height: 1;
	text-align: center;
}
.wcucw-v-inline-type {
	font-size: 9px;
	color: #9ca3af;
	margin-top: 2px;
	text-align: center;
}
/* body center */
.wcucw-v-inline-text {
	flex: 1;
	padding: 10px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}
.wcucw-v-inline-code {
	font-size: 13px;
	font-weight: 700;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #1d2327;
	letter-spacing: 0.04em;
}
.wcucw-v-inline-desc {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* action right */
.wcucw-v-inline-action {
	flex-shrink: 0;
	width: 76px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 1px dashed #c5c5c5;
	padding: 10px 8px;
}
.wcucw-v-inline-btn {
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid #2271B1;
	background: #fff;
	color: #2271B1;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.wcucw-v-inline-btn:hover:not(:disabled) {
	background: #2271B1;
	color: #fff;
}
.wcucw-v-inline-btn:disabled {
	border-color: #c5c5c5;
	color: #9ca3af;
	cursor: default;
}
.wcucw-v-inline-btn--done {
	border-color: #1D9E75 !important;
	color: #1D9E75 !important;
	background: transparent !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 6px 12px !important;
	cursor: default;
}

/* TEXT */
.wcucw-v-text {
	padding: 4px 0;
}
.wcucw-v-text-val {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
}
.wcucw-v-text-cond {
	font-size: 12px;
	color: #646970;
	margin-top: 2px;
}

/* BADGE */
.wcucw-v-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px 3px 8px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
}
.wcucw-v-badge-code {
	opacity: 0.85;
}
.wcucw-v-badge-amt {
	font-size: 13px;
}

@media (max-width: 480px) {
	.wcucw-v-inline { flex-direction: column; align-items: stretch; }
	.wcucw-v-inline-stub { width: 100%; flex-direction: row; gap: 6px; border-right: none; border-bottom: 1px dashed #c5c5c5; }
	.wcucw-v-inline-action { width: 100%; border-left: none; border-top: 1px dashed #c5c5c5; }
}

/* ── v1.2.4 GUEST MODAL — v1.3.2 redesign ───────────── */
.wcucw-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(20, 24, 28, 0.55);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: wcucwFade 0.18s ease-out;
}
.wcucw-modal-overlay.is-open {
	display: flex;
}
@keyframes wcucwFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes wcucwModalIn {
	from { opacity: 0; transform: translateY(-12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wcucw-modal {
	background: #fff;
	border-radius: 14px;
	padding: 28px 28px 22px;
	max-width: 380px;
	width: 100%;
	text-align: center;
	position: relative;
	box-shadow: 0 12px 36px rgba(0,0,0,0.18);
	animation: wcucwModalIn 0.22s ease-out;
}
.wcucw-modal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #EEEDFE;
	color: #534AB7;
}
.wcucw-modal-title {
	font-size: 17px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 8px;
	line-height: 1.3;
}
.wcucw-modal-text {
	font-size: 13px;
	color: #646970;
	margin: 0 0 22px;
	line-height: 1.55;
}
.wcucw-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.wcucw-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: opacity 0.15s, background 0.15s;
	box-sizing: border-box;
	width: 100%;
}
.wcucw-modal-btn-primary {
	background: #534AB7;
	color: #fff;
	border-color: #534AB7;
}
.wcucw-modal-btn-primary:hover { opacity: 0.9; color: #fff; background: #534AB7; }
.wcucw-modal-btn-secondary {
	background: #fff;
	color: #50575e;
	border-color: #d3d4d6;
}
.wcucw-modal-btn-secondary:hover { background: #f6f7f8; color: #50575e; }
.wcucw-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	color: #9ca3af;
	cursor: pointer;
	line-height: 1;
	width: 28px;
	height: 28px;
	border-radius: 6px;
}
.wcucw-modal-close:hover { background: #f0f0f1; color: #50575e; }

/* v1.3.4 — Max-discount pill / tag (used in card templates) */
.wcucw-pill-max,
.wcucw-tag-max {
	background: #fff4e5;
	color: #b45309;
	border-color: #fde68a;
}

/* =====================================================================
 * v1.5.7 (B) — Card redesign override layer
 *  • Template 1 → "Split Ticket" (horizontal ticket + perforation, no quota)
 *  • Template 3 → "Minimal Strip" (slim, left accent edge)
 * Templates kept to 2 only (Full-Bleed #2 dropped from selector).
 * Markup unchanged — visual restyle.
 * ===================================================================== */

/* ---------- Template 1 — Split Ticket ---------- */
.wcucw-card.wcucw-tpl-1 {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e6ece9;
	box-shadow: 0 1px 2px rgba(16,40,33,.05), 0 12px 28px -16px rgba(16,40,33,.35);
	background: #fff;
}
.wcucw-tpl-1 .wcucw-tpl-1-top { display: flex; align-items: stretch; position: relative; }
/* left stub */
.wcucw-tpl-1 .wcucw-tpl-1-left {
	flex: 0 0 34%;
	min-width: 110px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 20px 12px; color: #fff; text-align: center; position: relative;
}
.wcucw-tpl-1 .wcucw-tpl-1-val { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.5px; }
.wcucw-tpl-1 .wcucw-tpl-1-type { font-size: 12px; font-weight: 600; opacity: .92; margin-top: 4px; }
/* perforation between stub and detail */
.wcucw-tpl-1 .wcucw-tpl-1-left::after {
	content: ""; position: absolute; top: 8px; bottom: 8px; right: -1px;
	border-right: 2px dashed rgba(255,255,255,.6);
}
/* ticket notches */
.wcucw-tpl-1 .wcucw-tpl-1-top::before,
.wcucw-tpl-1 .wcucw-tpl-1-top::after {
	content: ""; position: absolute; left: calc(34% - 9px); width: 18px; height: 18px;
	background: #f3f6f5; border-radius: 50%; z-index: 2;
}
.wcucw-tpl-1 .wcucw-tpl-1-top::before { top: -9px; }
.wcucw-tpl-1 .wcucw-tpl-1-top::after { bottom: -9px; }
/* right detail */
.wcucw-tpl-1 .wcucw-tpl-1-right { flex: 1; padding: 15px 16px 14px 20px; display: flex; flex-direction: column; }
.wcucw-tpl-1 .wcucw-tpl-1-code {
	display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
	font-size: 14px; font-weight: 800; color: #0f2a24; letter-spacing: .3px;
	border: 1px solid #e2e9e6; border-radius: 7px; padding: 4px 10px; background: #f7faf9;
}
.wcucw-tpl-1 .wcucw-tpl-1-ic { color: #0E9F6E; flex: 0 0 auto; }
.wcucw-tpl-1 .wcucw-tpl-1-title { font-size: 15px; font-weight: 800; color: #11221d; margin: 9px 0 3px; line-height: 1.25; }
.wcucw-tpl-1 .wcucw-tpl-1-meta { font-size: 12px; color: #5a6a64; line-height: 1.5; }
.wcucw-tpl-1 .wcucw-tpl-1-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.wcucw-tpl-1 .wcucw-tpl-1-foot .wcucw-cd {
	display: inline-flex; align-items: center; gap: 4px; margin: 0;
	background: rgba(15,42,36,.05); border-radius: 999px; padding: 4px 10px;
	font-size: 11.5px; font-weight: 700;
}
.wcucw-tpl-1 .wcucw-tpl-1-foot button { border-radius: 10px; font-weight: 700; padding: 9px 20px; white-space: nowrap; flex: 0 0 auto; margin-left: auto; }
@media (max-width: 480px) {
	.wcucw-tpl-1 .wcucw-tpl-1-foot { flex-direction: column; align-items: flex-end; }
	.wcucw-tpl-1 .wcucw-tpl-1-foot button { width: auto; }
}

/* ---------- Template 3 — Minimal Strip ---------- */
/* v1.5.10 fix: base rule ".wcucw-listing-grid > .wcucw-card" forces flex-direction:column
 * (v1.3.6 equal-height). This (0,3,0) override restores the horizontal strip layout
 * for tpl-3 inside any listing grid (cwallet_listing / latest / my_coupons). */
.wcucw-listing-grid > .wcucw-card.wcucw-tpl-3 { flex-direction: row; align-items: stretch; }
.wcucw-card.wcucw-tpl-3 {
	display: flex; align-items: stretch; position: relative;
	border-radius: 13px; overflow: hidden; background: #fff;
	border: 1px solid #e6ece9; box-shadow: 0 1px 2px rgba(16,40,33,.05), 0 8px 20px -14px rgba(16,40,33,.3);
}
.wcucw-tpl-3 .wcucw-tpl-3-accent { width: 8px; height: auto; flex: none; align-self: stretch; }
.wcucw-tpl-3 .wcucw-tpl-3-amt { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; background: #f7faf9; text-align: center; }
.wcucw-tpl-3 .wcucw-tpl-3-big { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.wcucw-tpl-3 .wcucw-tpl-3-small { font-size: 11px; color: #6b7280; font-weight: 700; margin-top: 4px; }
.wcucw-tpl-3 .wcucw-tpl-3-mid { flex: 1; padding: 12px 14px; min-width: 0; }
.wcucw-tpl-3 .wcucw-tpl-3-code { font-family: "Courier New", monospace; font-weight: 800; font-size: 13px; color: #1f2937; letter-spacing: .3px; }
.wcucw-tpl-3 .wcucw-tpl-3-ttl { font-size: 13px; font-weight: 700; color: #11221d; margin: 3px 0 5px; line-height: 1.25; }
.wcucw-tpl-3 .wcucw-tpl-3-meta { font-size: 11.5px; color: #6b7280; line-height: 1.5; }
.wcucw-tpl-3 .wcucw-tpl-3-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; padding: 12px 14px 12px 4px; }
.wcucw-tpl-3 .wcucw-tpl-3-right .wcucw-cd { margin: 0; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.wcucw-tpl-3 .wcucw-tpl-3-right button { border-radius: 9px; font-weight: 800; font-size: 12.5px; padding: 8px 16px; white-space: nowrap; }
@media (max-width: 560px) {
	.wcucw-card.wcucw-tpl-3 { flex-wrap: wrap; }
	.wcucw-tpl-3 .wcucw-tpl-3-mid { flex: 1 1 55%; }
	.wcucw-tpl-3 .wcucw-tpl-3-right { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 14px 12px 22px; }
	.wcucw-tpl-3 .wcucw-tpl-3-right button { flex: 0 0 auto; margin-left: auto; }
}

/* v1.5.11: My Account coupon tabs (คูปองของฉัน / คูปองหมดอายุ) render Minimal Strip
 * (tpl 3) as a 2-column stacked list (1 column on small screens). Specificity (0,2,0)
 * beats the base auto-fill ".wcucw-listing-grid" rule and its responsive variants. */
.wcucw-listing-grid.wcucw-strip-list { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 782px) {
	.wcucw-listing-grid.wcucw-strip-list { grid-template-columns: 1fr; }
}
