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

/* ── 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;
}
/* v1.3.2: share button replaces redundant code pill */
.wcucw-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 6px;
	border: 1px solid #d3d4d6;
	background: #fff;
	color: #50575e;
	font-size: 11px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wcucw-share-btn:hover {
	background: #f0f0f1;
	border-color: #b0b1b3;
	color: #1d2327;
}
.wcucw-share-btn.is-copied {
	background: #E1F5EE;
	border-color: #5DCAA5;
	color: #085041;
}
.wcucw-share-btn svg {
	flex-shrink: 0;
}
.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 */
.wcucw-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
}
@media (max-width: 480px) {
	.wcucw-listing-grid {
		grid-template-columns: 1fr;
	}
}

/* ── 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;
}
