body .pcb-loyalty-widget { max-width: 480px; margin: 0 auto; }

body .pcb-loyalty-card-box {
	background: #fff;
	border: 1px solid var(--pcb-border);
	border-radius: 18px;
	padding: 24px;
}
body .pcb-loyalty-card-box h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; color: var(--pcb-ink); }
body .pcb-loyalty-card-box h4 { margin: 22px 0 6px; font-size: 1rem; font-weight: 800; color: var(--pcb-ink); }
body .pcb-loyalty-price { color: var(--pcb-muted); font-size: 0.88rem; margin: 0 0 16px; font-weight: 600; }

/* Sibling label+input rows (the booking form nests input inside label; this
   plugin's own markup keeps them as separate elements for flexibility, so
   a couple of small rules are needed rather than reusing .pcb-field-grid). */
body .pcb-form-row { margin-bottom: 14px; }
body .pcb-form-row label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--pcb-muted);
	margin-bottom: 4px;
}
body .pcb-form-row input[type="text"],
body .pcb-form-row input[type="email"],
body .pcb-form-row input[type="tel"] {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 2px solid var(--pcb-border);
	border-radius: 10px;
	box-sizing: border-box;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--pcb-ink);
	transition: border-color 0.15s ease;
}
body .pcb-form-row input:focus {
	outline: none;
	border-color: var(--pcb-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pcb-accent) 15%, transparent);
}

/* Downloadable digital card. */
body .pcb-loyalty-card-wrap { text-align: center; margin-top: 14px; }
body .pcb-loyalty-card-canvas {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 14px 30px -16px rgba(15, 122, 56, 0.5);
}
body .pcb-loyalty-download-btn { display: inline-block; }

/* Status-check summary + badges. Reuses the same "pcb-status-*" naming
   convention as the admin Bookings/Loyalty lists, just with membership
   statuses instead of payment statuses. */
body .pcb-loyalty-status-summary {
	border-radius: 14px;
	padding: 16px 18px;
	margin: 16px 0;
	border: 1px solid var(--pcb-border);
	background: var(--pcb-bg-soft);
}
body .pcb-loyalty-status-summary p { margin: 4px 0; font-size: 0.9rem; }
body .pcb-loyalty-status-summary code { background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 6px; }

body .pcb-loyalty-status-summary.pcb-status-active { border-color: var(--pcb-status-open); background: var(--pcb-status-open-bg); color: var(--pcb-status-open-dark); }
body .pcb-loyalty-status-summary.pcb-status-pending,
body .pcb-loyalty-status-summary.pcb-status-pending_verification { border-color: var(--pcb-status-partial); background: var(--pcb-status-partial-bg); color: var(--pcb-status-partial-dark); }
body .pcb-loyalty-status-summary.pcb-status-expired,
body .pcb-loyalty-status-summary.pcb-status-revoked { border-color: var(--pcb-status-full); background: var(--pcb-status-full-bg); color: var(--pcb-status-full-dark); }

/* Admin members-list badges — matches the unscoped .pcb-status-* convention
   pcb-style.css already uses for the Bookings list (pending/pending_verification/
   expired are shared and already defined there; only these two are new). */
.pcb-status-active { background: #ecfdf3; color: #0f7a38; }
.pcb-status-revoked { background: #fef2f2; color: #b42323; }

/* Shortcode reference boxes (Loyalty Members page + Settings). */
.pcb-shortcode-boxes { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 20px; }
.pcb-shortcode-box { background: #fff; border: 1px solid #dde8e0; border-radius: 10px; padding: 12px 14px; min-width: 260px; }
.pcb-shortcode-label { display: block; font-size: 0.78rem; font-weight: 700; color: #5f7368; margin-bottom: 6px; }
.pcb-shortcode-row { display: flex; gap: 6px; }
.pcb-shortcode-row input[type="text"] {
	flex: 1;
	font-family: Consolas, Monaco, monospace;
	font-size: 0.85rem;
	padding: 6px 10px;
	border: 1px solid #dde8e0;
	border-radius: 6px;
	background: #f3faf5;
	color: #10221a;
}
.pcb-shortcode-copy-btn { white-space: nowrap; }

/* Per-weekday discount grid (Settings → Loyalty Program). */
.pcb-weekday-discount-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pcb-weekday-discount-field {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1px solid #dde8e0;
	border-radius: 10px;
	padding: 8px 10px;
	min-width: 64px;
}
.pcb-weekday-discount-field label { font-size: 0.75rem; font-weight: 700; color: #5f7368; text-transform: uppercase; }
.pcb-weekday-discount-field input { width: 56px; text-align: center; padding: 4px; border: 1px solid #dde8e0; border-radius: 6px; }
.pcb-weekday-discount-field span { font-size: 0.75rem; color: #5f7368; }

@media (max-width: 480px) {
	body .pcb-loyalty-card-box { padding: 16px; }
}

/* Loyalty stamp card: a physical-punch-card-style grid of 30 stamp slots,
   filled with the actual date once earned, blank until then. Shared
   between the front-end status page and the admin stamps popup. */
.pcb-stamp-summary { margin: 16px 0 10px; font-size: 0.88rem; }
.pcb-stamp-summary p { margin: 0 0 8px; }
.pcb-stamp-progress { display: flex; align-items: center; gap: 10px; }
.pcb-stamp-progress-bar { flex: 1; height: 8px; border-radius: 999px; background: #e5eee8; overflow: hidden; }
.pcb-stamp-progress-fill { height: 100%; background: linear-gradient(90deg, var(--pcb-accent, #16a34a), var(--pcb-teal, #0d9488)); transition: width 0.3s ease; }
.pcb-stamp-progress span { font-size: 0.78rem; color: var(--pcb-muted, #5f7368); white-space: nowrap; }

.pcb-stamp-card {
	background: #fffdf8;
	border: 1px solid var(--pcb-border, #dde8e0);
	border-radius: 16px;
	padding: 18px;
	margin-top: 6px;
	box-shadow: 0 6px 20px -14px rgba(16, 34, 26, 0.35);
}
.pcb-stamp-card-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}
@media (max-width: 480px) {
	.pcb-stamp-card-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}

.pcb-stamp-slot {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.1;
	font-size: 0.62rem;
	font-weight: 700;
	padding: 2px;
	border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
}
.pcb-stamp-slot-empty {
	border: 2px dashed var(--pcb-border, #dde8e0);
	color: transparent;
	background: transparent;
}
.pcb-stamp-slot-filled {
	background: linear-gradient(135deg, var(--pcb-accent, #16a34a), var(--pcb-teal, #0d9488));
	color: #fff;
	box-shadow: 0 4px 10px -4px rgba(15, 122, 56, 0.6);
	animation: pcb-stamp-pop 0.25s ease;
}
@keyframes pcb-stamp-pop {
	from { transform: scale(0.6); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

/* Admin stamps popup modal. */
.pcb-stamp-modal-backdrop {
	position: fixed; inset: 0; background: rgba(16, 34, 26, 0.5);
	display: flex; align-items: center; justify-content: center;
	z-index: 100000; padding: 20px;
}
.pcb-stamp-modal-backdrop[hidden] { display: none; }
.pcb-stamp-modal {
	background: #fff; border-radius: 14px; padding: 20px;
	max-width: 640px; width: 100%; max-height: 84vh; overflow-y: auto;
	position: relative;
}
.pcb-stamp-modal h2 { margin: 0 0 4px; font-size: 1.05rem; }
.pcb-stamp-modal-close {
	position: absolute; top: 14px; right: 14px;
	background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #5f7368;
}
