/**
 * WooCommerce — Bespoke cart, checkout, and my-account styles.
 *
 * All WooCommerce default styles are dequeued.
 * This file provides complete custom styling for:
 * - My Account dashboard and sub-pages
 * - Cart page and mini-cart (Phase 10)
 * - Checkout form and order review (Phase 10)
 * - Order history and details
 * - Wallet/credit display
 * - Gift card redemption UI
 *
 * Conditionally loaded on WooCommerce pages only.
 *
 * @package WEO
 */

body.page-id-13 .site-header {
	background: var(--midnight);
}

body:is(.page-id-11,.page-id-12,.page-tribe-attendee-registration) main#content {
	background: var(--surface);
}

body:is(.page-id-11,.page-id-12,.page-tribe-attendee-registration) main#content:has(.weo-nonmember-upsell, .weo-login-prompt) {
	padding-top: 28px;
}

/* ═══════════════════════════════════════════
   Button extensions (used across Woo pages)
   ═══════════════════════════════════════════ */

.btn--sm {
	font-size: var(--text-s);
	padding: 9px 18px;
}

.btn--full {
	width: 100%;
	justify-content: center;
}

/* ═══════════════════════════════════════════
   My Account — Layout
   ═══════════════════════════════════════════ */

.weo-account {
	display: flex;
	min-height: 100vh;
	padding-top: var(--nav-height);
}

.weo-account__content {
	flex: 1;
	min-width: 0;
	max-width: 1374px;
	padding: 36px 40px 64px;
}

/* Non-dashboard account endpoints (orders, edit-account, payment-methods,
 * subscriptions, view-subscription, referrals) use a narrower 760px column
 * — the dashboard's multi-column stat / bookings / carousel layout needs
 * the full 1374px. Body class set by weo_commerce_body_class() in setup.php. */
.weo-account-narrow .weo-account__content {
	max-width: 760px;
}

#content:has(.weo-account) {
	background: var(--surface);
}

/* ═══════════════════════════════════════════
   My Account — Sidebar
   ═══════════════════════════════════════════ */

.weo-account__sidebar {
	width: 320px;
	flex-shrink: 0;
	border-right: 1px solid rgba(106, 96, 128, 0.08);
	background: var(--white);
	padding: 28px 16px;
	position: sticky;
	top: var(--nav-height);
	align-self: flex-start;
	height: calc(100vh - var(--nav-height));
	overflow-y: auto;
}

/* Admin bar offset. */
.admin-bar .weo-account__sidebar {
	top: calc(var(--nav-height) + 32px);
	height: calc(100vh - var(--nav-height) - 32px);
}

@media (max-width: 959px) {
	.admin-bar .weo-account__sidebar {
		height: auto;
	}
}

/* ─── Member card ─── */

.weo-member-card {
	padding: 16px;
	margin-bottom: 8px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--dark), var(--charcoal));
	position: relative;
	overflow: hidden;
}

.weo-member-card__glow {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 60px;
	height: 60px;
	background: radial-gradient(circle, rgba(224, 64, 160, 0.12), transparent 70%);
	filter: blur(15px);
	pointer-events: none;
}

.weo-member-card__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.weo-member-card__avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--violet));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-body);
	font-weight: 700;
	color: var(--white);
	font-family: var(--font-body);
	flex-shrink: 0;
}

.weo-member-card__info {
	min-width: 0;
}

.weo-member-card__name {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: var(--text-h4);
	color: var(--white);
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.weo-member-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--accent);
	font-size: var(--text-s);
	font-weight: 600;
	font-family: var(--font-body);
	letter-spacing: 0.02em;
}

.weo-member-card__badge--expired {
	background: var(--error);
	color: var(--white);
	font-size: var(--text-xs);
	padding: 1px 6px;
	border-radius: var(--radius-sm);
}

.weo-member-card__renewal {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--subtle);
	margin-top: 4px;
	white-space: nowrap;
	position: relative;
	font-weight: 600;
}

/* ─── Sidebar navigation ─── */

.weo-sidebar-nav {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.weo-sidebar-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px;
	width: 100%;
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 500;
	color: var(--text-mid);
	text-decoration: none;
	transition: all 0.2s ease;
}

.weo-sidebar-nav__link:hover {
	background: rgba(106, 96, 128, 0.05);
	color: var(--text-dark);
}

.weo-sidebar-nav__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.weo-sidebar-nav__link.is-active {
	background: var(--accent-light);
	color: var(--accent);
	font-weight: 600;
}

.weo-sidebar-nav__icon {
	width: 20px;
	text-align: center;
	flex-shrink: 0;
	line-height: 0;
}

/* Wallet-credit badge on the Dashboard menu item. Pushed to the far
 * right via margin-left: auto inside the flex link. Stays violet even
 * when the link goes into its `.is-active` (accent-pink) state. */
.weo-sidebar-nav__wallet {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	background: var(--violet);
	color: var(--white);
	font-size: var(--text-xs);
	font-weight: 700;
	border-radius: var(--radius-full);
	line-height: 1.4;
	white-space: nowrap;
}

/* ─── Mobile menu toggle + collapse ─── */

/* Toggle button is mobile-only; the nav list is always visible on desktop
 * (the collapse wrapper is a transparent block ≥960px). */
.weo-account__menu-toggle {
	display: none;
}

/* ─── Sidebar CTA ─── */

.weo-sidebar-cta {
	margin-top: 24px;
	padding: 18px 16px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	text-align: center;
}

.weo-sidebar-cta__title {
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 4px;
}

.weo-sidebar-cta__text {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin-bottom: 12px;
	line-height: 1.5;
}

/* ═══════════════════════════════════════════
   Dashboard — Greeting
   ═══════════════════════════════════════════ */

.weo-dashboard {
	max-width: none;
}

.weo-dashboard__greeting {
	margin-bottom: 32px;
}

.weo-dashboard__title {
	color: var(--text-dark);
	margin: 0 0 6px;
	font-size: var(--text-h2);
}

.weo-dashboard__subtitle {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
	margin: 0;
}

/* ═══════════════════════════════════════════
   Dashboard — Stat Cards
   ═══════════════════════════════════════════ */

.weo-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

.weo-stat-card {
	background: var(--white);
	border-radius: 14px;
	padding: 22px 24px;
	border: 1px solid rgba(106, 96, 128, 0.1);
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
	position: relative;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Decorative corner glow. */
.weo-stat-card__glow {
	position: absolute;
	top: -20px;
	right: -20px;
	width: 80px;
	height: 80px;
	filter: blur(20px);
	pointer-events: none;
}

.weo-stat-card--success .weo-stat-card__glow {
	background: radial-gradient(circle, rgba(48, 184, 112, 0.08), transparent 70%);
}

.weo-stat-card--accent .weo-stat-card__glow {
	background: radial-gradient(circle, rgba(224, 64, 160, 0.08), transparent 70%);
}

.weo-stat-card--violet .weo-stat-card__glow {
	background: radial-gradient(circle, rgba(160, 112, 240, 0.08), transparent 70%);
}

.weo-stat-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.weo-stat-card__icon {
	line-height: 0;
	color: var(--text-mid);
}

.weo-stat-card__label {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-mid);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.weo-stat-card__body {
	position: relative;
	z-index: 1;
}

.weo-stat-card__value {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--text-h2);
	letter-spacing: -0.03em;
	line-height: 1;
}

.weo-stat-card__value--success {
	color: var(--success);
}

.weo-stat-card__value--accent {
	color: var(--accent);
}

.weo-stat-card__value--violet {
	color: var(--violet);
}

.weo-stat-card__subtext {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin-top: 8px;
}

.weo-stat-card__link {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	transition: color 0.15s ease, transform 0.15s ease;
}

.weo-stat-card__link:hover {
	color: var(--text-dark);
	transform: translateX(2px);
}

.weo-stat-card__link svg {
	transition: transform 0.15s ease;
}

/* ═══════════════════════════════════════════
   Dashboard — Section Headers
   ═══════════════════════════════════════════ */

.weo-dashboard__section {
	margin-bottom: 48px;
}

.weo-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	position: relative;
	z-index: 10;
}

.weo-section-header__overline {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.weo-section-header__title {
	color: var(--text-dark);
	margin: 0;
	font-size: var(--text-h3);
}

/* ═══════════════════════════════════════════
   Dashboard — Booking Cards
   ═══════════════════════════════════════════ */

.weo-bookings {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.weo-booking-card {
	background: var(--white);
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(106, 96, 128, 0.1);
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
	transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.weo-booking-card--upcoming:hover {
	box-shadow: 0 8px 32px rgba(14, 10, 24, 0.08);
}

/* Wrapping link — upcoming cards use <a>, past cards use <div>. Flex
 * row sets up poster + details side-by-side; padding gives the small
 * cart-style poster breathing room from the card edge. */
.weo-booking-card__link {
	display: flex;
	gap: 16px;
	padding: 16px;
	align-items: stretch;
	color: inherit;
	text-decoration: none;
	min-height: 100%;
	transition: transform 0.2s ease;
}

a.weo-booking-card__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 14px;
}

/* Poster — matches `.weo-cart-item__poster` exactly (120px / 4:3 / 10px
 * radius / soft accent-tinted gradient). Image fills via object-fit. */
.weo-booking-card__poster {
	flex-shrink: 0;
	width: 120px;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--card-accent-bg, rgba(26,16,40,0.06)), rgba(26,16,40,0.06));
	align-self: flex-start;
}
.weo-booking-card--past .weo-booking-card__poster img {
	filter: grayscale(100%) brightness(35%);
}

.weo-booking-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Pills row — status + audience chips at the top of the details column.
 * Status moved out of the poster overlay (no room at 120px wide). */
.weo-booking-card__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.weo-booking-card__status {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--white);
	background: rgba(48, 184, 112, 0.92);
	padding: 3px 8px;
	border-radius: 5px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.weo-booking-card--past .weo-booking-card__status {
	background: rgba(106, 96, 128, 0.92);
}

/* Inline resale-state indicator — renders next to the ticket count
 * ("3 tickets • partial resale"). Colours mirror the WP-admin status
 * cells (warm amber for pending-resale, plum for resold) so the same
 * three surfaces (dashboard / view-order hero / order-list cell) all
 * read as one signal. No background — it sits inline as text. */
.weo-booking-card__resale-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-transform: lowercase;
	letter-spacing: 0.01em;
}

.weo-booking-card__resale-state--pending {
	color: #b45309;
}

.weo-booking-card__resale-state--partial {
	color: var(--violet);
}

.weo-booking-card__resale-bullet {
	color: var(--text-mid);
	font-weight: 400;
}

/* Details area — link padding handles the outer breathing room now. */
.weo-booking-card__details {
	flex: 1;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Audience badge — inline pill in the pills row above the title (mirrors
 * the cart's `.weo-cart-item__audience-badge` treatment). */
.weo-booking-card__audience-badge {
	display: inline-block;
	background: var(--card-accent-bg);
	color: var(--card-accent);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 5px;
	letter-spacing: 0.02em;
}

.weo-booking-card__title {
	color: var(--text-dark);
	margin: 0 0 8px!important;
	font-size: var(--text-h4);
}

.weo-booking-card__meta {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.weo-booking-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.weo-booking-card__meta-item svg {
	flex-shrink: 0;
}

.weo-booking-card__tickets {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-dark);
	font-weight: 600;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Strikethrough original count — shown alongside the new count when any
 * tickets were resold (e.g. "3 tickets" strikethrough + "2 tickets"). */
.weo-booking-card__tickets-original {
	color: var(--text-mid);
	font-weight: 500;
	text-decoration: line-through;
}

/* Attendees roster — mirrors the tickets line above, but allowed to
 * wrap (long lists / many guests) and rendered in the muted body
 * colour so the harder facts (date / time / tickets) read first. */
.weo-booking-card__attendees {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	font-weight: 500;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	line-height: 1.4;
}

.weo-booking-card__attendees > span[aria-hidden="true"] {
	flex-shrink: 0;
	margin-top: 2px;
}

.weo-booking-card__attendees-list {
	min-width: 0;
}

/* Pre-show meetup info. */
.weo-booking-card__preshow {
	background: rgba(48, 184, 112, 0.06);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	border-left: 3px solid var(--success);
	margin-bottom: 10px;
}

.weo-booking-card__preshow-title {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--success);
	font-weight: 600;
	margin-bottom: 2px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.weo-booking-card__preshow-details {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
}

/* Booking toggle (Upcoming / Past). Segmented control sitting in
 * the section header where the old "View All Bookings" button lived. */
.weo-booking-toggle {
	display: inline-flex;
	background: var(--surface);
	border: 1px solid rgba(106, 96, 128, 0.15);
	border-radius: var(--radius-full);
	padding: 4px;
	gap: 4px;
}

.weo-booking-toggle__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	padding: 6px 16px;
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-mid);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.weo-booking-toggle__btn.is-active {
	background: var(--white);
	color: var(--text-dark);
	box-shadow: 0 1px 2px rgba(14, 10, 24, 0.08);
}

.weo-booking-toggle__btn:hover:not(.is-active) {
	color: var(--text-dark);
}

.weo-booking-toggle__btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.weo-booking-toggle__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	background: rgba(106, 96, 128, 0.12);
	color: var(--text-mid);
	border-radius: var(--radius-full);
	font-size: var(--text-xs);
	font-weight: 600;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
}

.weo-booking-toggle__btn.is-active .weo-booking-toggle__count {
	background: var(--accent-light);
	color: var(--accent);
}

/* Past-bookings "View more" affordance. */
.weo-bookings__load-more {
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

/* ═══════════════════════════════════════════
   Dashboard — Empty State
   ═══════════════════════════════════════════ */

.weo-empty-state {
	text-align: center;
	padding: 48px 24px;
	background: var(--white);
	border-radius: 14px;
	border: 1px dashed rgba(106, 96, 128, 0.15);
}

.weo-empty-state__icon {
	margin-bottom: 16px;
	color: #cac8d3;
	display: flex;
	justify-content: center;
}

.weo-empty-state__icon svg {
	width: 48px;
	height: 48px;
}

.weo-empty-state__text {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
	margin: 0 0 20px;
}

/* ═══════════════════════════════════════════
   WooCommerce default page overrides
   ═══════════════════════════════════════════ */

/* ───── Funnel — suppress inline notice wrappers ─────
 * WC renders notices via TWO different wrapper classes on the funnel:
 *
 *  - `.woocommerce-notices-wrapper` — page-load notices from
 *    `wc_print_notices` (fires inside `woocommerce_before_cart` /
 *    `woocommerce_before_checkout_form`, also re-renders on AR when
 *    session notices persist).
 *
 *  - `.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout` —
 *    AJAX submit_error injection from
 *    plugins/woocommerce/assets/js/frontend/checkout.js (line 1063),
 *    prepended directly to the checkout form when an XHR validation
 *    fails ("Please accept the T&Cs", "Account already exists", etc).
 *
 * `js/wc-notice-toast.js` converts both into stacked toasts; this
 * CSS hides them inline to prevent a flash before the JS runs. JS
 * also removes the wrappers post-conversion; CSS is belt+braces.
 *
 * Gated on `.weo-checkout-page` (added by weo_commerce_body_class in
 * inc/setup.php for cart, checkout, AND attendee-registration) — NOT
 * on WC's `.woocommerce-cart` / `.woocommerce-checkout` body classes,
 * because the AR page is the TEC plugin's, not WC's, and carries
 * neither. */
.weo-checkout-page .woocommerce-notices-wrapper,
.weo-checkout-page .woocommerce-NoticeGroup {
	display: none;
}

/* Bare notices not wrapped in `.woocommerce-notices-wrapper` — e.g.
 * `wc_print_notice()` calls inside `lost-password-confirmation.php`
 * which output `<div class="woocommerce-message">` directly as a child
 * of `<div class="woocommerce">`. The Phase 45 wc-notice-toast.js
 * scanner converts them to toasts; this rule prevents the inline
 * block from flashing before JS runs. */
.weo-checkout-page .woocommerce > .woocommerce-message,
.weo-checkout-page .woocommerce > .woocommerce-error,
.weo-checkout-page .woocommerce > .woocommerce-info {
	display: none;
}

/* ───── My Account notice — toast treatment ─────
 * WC renders post-action confirmations (e.g. "Your subscription has been
 * cancelled.") via `.woocommerce-notices-wrapper > .woocommerce-message`.
 * Reuse the AR-page toast pattern: fixed top-right, slide-in, 5s countdown
 * bar, slide-out. Keyframes (`weoToastIn` / `weoToastOut` / `weoToastProgress`)
 * are global in css/animations.css. */

.weo-account .woocommerce-notices-wrapper {
	position: fixed;
	/* Sit a clear 24px below the nav so the dark toast pill doesn't
	 * butt up against the nav's bottom edge or compete with its
	 * translucent backdrop-filter blur. */
	top: calc(var(--nav-height) + 24px);
	right: 24px;
	z-index: 9999;
	max-width: 380px;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

/* WP admin bar offset — mirrors the `.admin-bar .site-header` rule in
 * css/nav.css. Admin bar is 32px desktop, 46px under 783px (WP's own
 * breakpoint). Without this the toast sits inside the nav whenever a
 * logged-in WP user views the page. */
.admin-bar .weo-account .woocommerce-notices-wrapper {
	top: calc(var(--nav-height) + 32px + 24px);
}

@media (max-width: 782px) {
	.admin-bar .weo-account .woocommerce-notices-wrapper {
		top: calc(var(--nav-height) + 46px + 24px);
	}
}

.weo-account .woocommerce-notices-wrapper .woocommerce-message,
.weo-account .woocommerce-notices-wrapper .woocommerce-info,
.weo-account .woocommerce-notices-wrapper .woocommerce-error {
	pointer-events: auto;
	background: var(--dark);
	color: var(--white);
	border: 0;
	border-radius: 14px;
	padding: 14px 18px 16px 46px;
	margin: 0 0 12px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 500;
	line-height: 1.45;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	list-style: none;
	box-shadow: 0 12px 32px rgba(14, 10, 24, 0.25);
	animation:
		weoToastIn 0.35s var(--ease-out-expo) backwards,
		weoToastOut 0.3s var(--ease-out-expo) 5.35s forwards;
}

.weo-account .woocommerce-notices-wrapper .woocommerce-message a,
.weo-account .woocommerce-notices-wrapper .woocommerce-info a,
.weo-account .woocommerce-notices-wrapper .woocommerce-error a {
	color: var(--white);
	font-weight: 600;
	text-decoration: underline;
}

/* Icon slot — 18px from the left edge. Differs per notice type. */
.weo-account .woocommerce-notices-wrapper .woocommerce-message::before,
.weo-account .woocommerce-notices-wrapper .woocommerce-info::before,
.weo-account .woocommerce-notices-wrapper .woocommerce-error::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 18px;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

/* `.woocommerce-message` is WC's success type — checkmark in a circle. */
.weo-account .woocommerce-notices-wrapper .woocommerce-message::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m9 12 2 2 4-4'/></svg>");
}

/* `.woocommerce-info` — info circle. */
.weo-account .woocommerce-notices-wrapper .woocommerce-info::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4'/><path d='M12 8h.01'/></svg>");
}

/* `.woocommerce-error` — alert circle. */
.weo-account .woocommerce-notices-wrapper .woocommerce-error::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
}

/* Countdown bar — depletes left-to-right over 5s. Matches the
 * delay before `weoToastOut` fires so the bar empties at the
 * exact moment the toast starts to fade. */
.weo-account .woocommerce-notices-wrapper .woocommerce-message::after,
.weo-account .woocommerce-notices-wrapper .woocommerce-info::after,
.weo-account .woocommerce-notices-wrapper .woocommerce-error::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--accent);
	transform-origin: left center;
	animation: weoToastProgress 5s linear forwards;
}

.weo-account .woocommerce-notices-wrapper .woocommerce-error::after {
	background: var(--error);
}

/* Interactive notices (e.g. WC Subs' "Would you like to update your
 * subscriptions to use this new payment method? Yes | No") need to stay
 * visible until the user clicks Yes or No. Detect via `:has()` — any
 * notice containing an `<a>` link is treated as interactive: no
 * countdown bar, no auto-dismiss animation. The dismiss runs via the JS
 * adding `.is-dismissing` once the user has interacted. */
.weo-account .woocommerce-notices-wrapper .woocommerce-message:has(a),
.weo-account .woocommerce-notices-wrapper .woocommerce-info:has(a),
.weo-account .woocommerce-notices-wrapper .woocommerce-error:has(a) {
	animation: weoToastIn 0.35s var(--ease-out-expo) backwards;
}

.weo-account .woocommerce-notices-wrapper .woocommerce-message:has(a)::after,
.weo-account .woocommerce-notices-wrapper .woocommerce-info:has(a)::after,
.weo-account .woocommerce-notices-wrapper .woocommerce-error:has(a)::after {
	display: none;
}

/* User-initiated dismiss (JS adds `.is-dismissing` after click). Fade the
 * pill out cleanly. */
.weo-account .woocommerce-notices-wrapper .woocommerce-message.is-dismissing,
.weo-account .woocommerce-notices-wrapper .woocommerce-info.is-dismissing,
.weo-account .woocommerce-notices-wrapper .woocommerce-error.is-dismissing {
	animation: weoToastOut 0.3s var(--ease-out-expo) forwards;
}

/* Mobile — full-width toast with viewport-edge padding. */
@media (max-width: 639px) {
	.weo-account .woocommerce-notices-wrapper {
		top: calc(var(--nav-height) + 20px);
		left: 16px;
		right: 16px;
		max-width: none;
	}
}

/* Style WooCommerce orders table inside My Account. */
.weo-account .woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: var(--text-small);
}

.weo-account .woocommerce-orders-table th {
	text-align: left;
	font-weight: 600;
	color: var(--text-mid);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(106, 96, 128, 0.1);
}

.weo-account .woocommerce-orders-table td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(106, 96, 128, 0.06);
	color: var(--text-dark);
}

.weo-account .woocommerce-orders-table .woocommerce-button {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(224, 64, 160, 0.3);
	transition: all 0.2s ease;
}

.weo-account .woocommerce-orders-table .woocommerce-button:hover {
	background: var(--accent-light);
}

/* Row hover — matches the .weo-referral__table treatment so all my-account
 * tables share the same subtle hover feedback. WC Subscriptions' table
 * uses the same .woocommerce-orders-table class, so this rule covers it
 * too; the .my_account_subscriptions selector is belt-and-braces in case
 * a future plugin update drops the shared class. */
.weo-account .woocommerce-orders-table tbody tr,
.weo-account .my_account_subscriptions tbody tr {
	transition: background 0.15s ease;
}

.weo-account .woocommerce-orders-table tbody tr:hover,
.weo-account .my_account_subscriptions tbody tr:hover {
	background: rgba(106, 96, 128, 0.02);
}

/* Clickable rows — applied to the orders table when every order on the
 * page has only the "View" action (the actions column is dropped in PHP,
 * and the order-number link becomes a stretched link covering the whole
 * row via its ::after pseudo). */
.weo-account .woocommerce-orders-table--clickable tbody tr {
	cursor: pointer;
	position: relative;
}

.weo-account .woocommerce-orders-table--clickable .weo-orders-row-link {
	color: inherit;
	text-decoration: none;
	font-weight: 500;
}

.weo-account .woocommerce-orders-table--clickable .weo-orders-row-link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
}

.weo-account .woocommerce-orders-table--clickable .weo-orders-row-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

/* ═══════════════════════════════════════════
   Account page chrome — view-order, view-
   subscription, payment-methods, and the
   bespoke components those templates render.
   ═══════════════════════════════════════════ */

/* ─── Headings ─── */

.weo-account__content section:first-child > h2 {
	margin-top: 0;
}

.weo-account__content h2 {
	font-size: var(--text-h3);
	margin-bottom: 18px;
}

/* ─── Status sentence (view-order header) ─── */

.weo-account__content mark {
	background: transparent;
	color: var(--text-dark);
	font-weight: 600;
}

.weo-account__content > p:first-child {
	color: var(--text-mid);
	margin: 0 0 24px;
	font-size: var(--text-body);
}

/* ─── Billing / shipping two-column ─── */

.weo-account__content .col2-set,
.weo-account__content .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 639px) {
	.weo-account__content .col2-set,
	.weo-account__content .woocommerce-columns--addresses {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

.weo-account__content address {
	font-style: normal;
	line-height: 1.7;
	color: var(--text-dark);
	font-size: var(--text-body);
	margin: 0;
}

.weo-account__content .woocommerce-customer-details--phone,
.weo-account__content .woocommerce-customer-details--email {
	margin: 4px 0 0;
	color: var(--text-mid);
}

/* ─── Status pill (reusable across order + subscription pages) ─── */

.weo-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 6px 14px;
	border-radius: var(--radius-full);
	white-space: nowrap;
	line-height: 1;
}

.weo-status-pill::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.weo-status-pill--success {
	background: rgba(48, 184, 112, 0.12);
	color: #1f7a4a;
}

.weo-status-pill--info {
	background: rgba(80, 140, 220, 0.12);
	color: #2c5a8f;
}

.weo-status-pill--warning {
	background: rgba(232, 165, 60, 0.14);
	color: #8a5a14;
}

.weo-status-pill--error {
	background: rgba(224, 80, 80, 0.12);
	color: #a02828;
}

.weo-status-pill--neutral {
	background: rgba(106, 96, 128, 0.12);
	color: var(--text-mid);
}

/* Resale-specific variants — match the exact colour pair WP admin uses
 * for the `wc-resold` + `wc-pending-resale` order statuses (kept in
 * parity with the per-item badges further down + Adam's order-editor
 * UI). The leading dot inherits `currentColor` so it picks up the
 * variant text colour automatically. */
.weo-status-pill--resold {
	color: #6c3483;
	background: #e8daef;
}

.weo-status-pill--pending-resale {
	color: #b45309;
	background: #fde8d0;
}

/* ─── Order Hero (top of view-order) ─── */

.weo-order-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.08);
	border-radius: 14px;
	padding: 22px 26px;
	margin-bottom: 24px;
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
}

.weo-order-hero__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.weo-order-hero__label {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.weo-order-hero__number {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-h3);
	color: var(--text-dark);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.weo-order-hero__date {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
}

/* ─── Order Section wrapper (Order details, Customer details, Updates) ─── */

.weo-order-section {
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.08);
	border-radius: 14px;
	padding: 24px 28px;
	margin-bottom: 24px;
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
}

.weo-order-section > :first-child {
	margin-top: 0;
}

.weo-order-section > :last-child {
	margin-bottom: 0;
}

/* ─── Order Items list (line items as cards) ─── */

.weo-order-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.weo-order-item {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 20px;
	align-items: start;
	padding: 16px;
	border: 1px solid rgba(106, 96, 128, 0.08);
	border-radius: 12px;
	background: var(--surface);
}

@media (max-width: 639px) {
	.weo-order-item {
		grid-template-columns: 96px 1fr;
		gap: 14px;
		padding: 14px;
	}
}

.weo-order-item__poster {
	aspect-ratio: 4 / 3;
	background: var(--midnight);
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.weo-order-item__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.weo-order-item__poster-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--subtle);
}

.weo-order-item__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.weo-order-item__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-body);
	color: var(--text-dark);
	margin: 0;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.weo-order-item__title a {
	color: inherit;
	text-decoration: none;
}

.weo-order-item__title a:hover {
	color: var(--accent);
}

.weo-order-item__event-meta {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 6px 16px;
	font-size: var(--text-s);
	color: var(--text-mid);
}

.weo-order-item__event-meta-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.weo-order-item__event-meta-row svg {
	flex-shrink: 0;
}

/* Pricing sits inline at the right end of the event-meta row.
 * `margin-left: auto` pushes it to the trailing edge; on a narrow
 * viewport where the flex row wraps, the pricing block lands on its
 * own line and stays right-aligned by virtue of the same rule. */
.weo-order-item__pricing {
	margin-left: auto;
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}

.weo-order-item__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 6px 0 0;
	padding: 12px 0 0;
	border-top: 1px dashed rgba(106, 96, 128, 0.15);
	font-size: var(--text-s);
}

.weo-order-item__meta-row {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	line-height: 1.5;
}

.weo-order-item__meta-row dt {
	color: var(--text-mid);
	font-weight: 500;
	margin: 0;
}

.weo-order-item__meta-row dd {
	color: var(--text-dark);
	margin: 0;
	word-break: break-word;
}

.weo-order-item__qty {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
}

.weo-order-item__total {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-body);
	color: var(--text-dark);
}

/* ─── Order Totals (flex list) ─── */

.weo-order-totals {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid rgba(106, 96, 128, 0.08);
}

.weo-order-totals__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 8px 0;
	font-family: var(--font-body);
	font-size: var(--text-s);
}

.weo-order-totals__label {
	color: var(--text-mid);
	margin: 0;
}

.weo-order-totals__value {
	color: var(--text-dark);
	font-weight: 500;
	margin: 0;
	text-align: right;
}

.weo-order-totals__row--order_total {
	border-top: 1px solid rgba(106, 96, 128, 0.08);
	margin-top: 6px;
	padding-top: 16px;
	font-size: var(--text-body);
}

.weo-order-totals__row--order_total .weo-order-totals__label {
	color: var(--text-dark);
	font-weight: 600;
}

.weo-order-totals__row--order_total .weo-order-totals__value {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-h4);
}

/* ─── Billing Details grid ─── */

.weo-billing-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 28px;
	margin: 0;
}

@media (max-width: 639px) {
	.weo-billing-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

.weo-billing-grid__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.weo-billing-grid__item--full {
	grid-column: 1 / -1;
}

.weo-billing-grid__item dt {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0;
}

.weo-billing-grid__item dd {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	margin: 0;
	line-height: 1.5;
	word-break: break-word;
}

.weo-billing-grid__item dd a {
	color: var(--text-dark);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}

.weo-billing-grid__item dd a:hover {
	border-bottom-color: var(--accent);
}

/* ─── Subscription Card (My Membership view) ─── */

.weo-subscription-card {
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.08);
	border-radius: 14px;
	padding: 26px 28px;
	margin-bottom: 32px;
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
}

.weo-subscription-card__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid rgba(106, 96, 128, 0.08);
}

.weo-subscription-card__hero-status,
.weo-subscription-card__hero-plan {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.weo-subscription-card__hero-label {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.weo-subscription-card__hero-value {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	font-weight: 500;
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.weo-subscription-card__hero-plan-name {
	font-weight: 600;
}

.weo-subscription-card__hero-plan-total {
	color: var(--text-mid);
	font-weight: 500;
}

/* Payment row — on its own line beneath the dates grid, separated by
 * a hairline border. Label + value stacked vertically (same as Status,
 * Plan, and the date cells above). Card brand SVG sits inline next to
 * the "Via {brand} card ending in XXXX" string. */
.weo-subscription-card__payment-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 0 0;
	border-top: 1px solid rgba(106, 96, 128, 0.08);
	margin-bottom: 22px;
}

.weo-subscription-card__payment-value {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	font-weight: 500;
}

.weo-subscription-card__payment-value .weo-payment-icon {
	height: 22px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

.weo-subscription-card__dates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px 28px;
	margin: 0 0 22px;
}

@media (max-width: 639px) {
	.weo-subscription-card__dates {
		grid-template-columns: 1fr 1fr;
		gap: 14px 18px;
	}
}

.weo-subscription-card__date {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.weo-subscription-card__date dt {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.weo-subscription-card__date dd {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	font-weight: 500;
	margin: 0;
}

/* Auto-renew row */
.weo-subscription-card__autorenew {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid rgba(106, 96, 128, 0.08);
	margin-top: 8px;
}

.weo-subscription-card__autorenew-text strong {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	font-weight: 600;
	margin-bottom: 2px;
}

.weo-subscription-card__autorenew-text p {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin: 0;
	line-height: 1.5;
}

.weo-subscription-card__autorenew-toggle {
	flex-shrink: 0;
}

/* WC Subs' default toggle is a button with .subscription-auto-renew-toggle
 * — its JS toggles --on/--off classes. The plugin ships its own CSS for
 * the visuals; we just ensure it sits nicely in our row. */
.weo-subscription-card__autorenew .subscription-auto-renew-toggle {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

/* Actions row (Cancel / Change payment / Renew now) */
.weo-subscription-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 26px;
	border-top: 1px solid rgba(106, 96, 128, 0.08);
}

/* ─── Subscription Plan card (renders inside subscription-totals-table) ─── */

.weo-subscription-plan {
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.08);
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
}

.weo-subscription-plan__item {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	gap: 18px;
}

@media (max-width: 639px) {
	.weo-subscription-plan__item {
		grid-template-columns: 80px 1fr;
		grid-template-areas:
			"poster body"
			"pricing pricing";
		gap: 12px;
	}
	.weo-subscription-plan__poster { grid-area: poster; }
	.weo-subscription-plan__body { grid-area: body; }
	.weo-subscription-plan__pricing { grid-area: pricing; text-align: right; }
}

.weo-subscription-plan__poster {
	aspect-ratio: 1 / 1;
	background: var(--accent-light);
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

.weo-subscription-plan__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.weo-subscription-plan__poster-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
}

.weo-subscription-plan__body {
	min-width: 0;
}

.weo-subscription-plan__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-body);
	color: var(--text-dark);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.weo-subscription-plan__title a {
	color: inherit;
	text-decoration: none;
}

.weo-subscription-plan__title a:hover {
	color: var(--accent);
}

.weo-subscription-plan__qty {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin-bottom: 6px;
}

.weo-subscription-plan__meta {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
}

/* "Upgrade Membership" link rendered by our weo_print_subscription_switch_link()
 * in inc/woo-customisations.php (which replaces WC Subs' default
 * `print_switch_link()` to inject an inline SVG arrow). Plain accent-pink
 * text with a trailing arrow that slides 2px right on hover — matches
 * the `.event-section__view-all` / `.weo-stat-card__link` convention. */
.weo-subscription-plan__meta a.wcs-switch-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	color: var(--accent);
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.weo-subscription-plan__meta a.wcs-switch-link:hover {
	background: transparent;
	border-color: transparent;
	color: var(--text-dark);
	transform: translateX(2px);
	text-decoration: none;
}

.weo-subscription-plan__meta a.wcs-switch-link svg {
	transition: transform 0.15s ease;
}

.weo-subscription-plan__total {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-m);
	color: var(--text-dark);
	white-space: nowrap;
}

.weo-subscription-plan__note {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--surface);
	border-radius: 8px;
	font-size: var(--text-s);
	color: var(--text-mid);
}

/* Totals list inside subscription plan card. */
.weo-subscription-plan .weo-order-totals {
	margin-top: 16px;
	padding-top: 16px;
}

/* ─── Payment Methods (saved card list) ─── */

.weo-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.weo-payment-card {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 18px;
	align-items: center;
	padding: 16px 20px;
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.1);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.weo-payment-card:hover {
	border-color: rgba(224, 64, 160, 0.25);
	box-shadow: 0 4px 16px rgba(14, 10, 24, 0.06);
}

.weo-payment-card--default {
	border-color: rgba(224, 64, 160, 0.35);
	background: rgba(224, 64, 160, 0.02);
}

@media (max-width: 539px) {
	.weo-payment-card {
		grid-template-columns: 48px 1fr;
		grid-template-areas:
			"brand body"
			"actions actions";
		gap: 12px;
	}
	.weo-payment-card__brand { grid-area: brand; }
	.weo-payment-card__body { grid-area: body; }
	.weo-payment-card__actions {
		grid-area: actions;
		justify-content: flex-end;
		display: flex;
		gap: 8px;
	}
}

.weo-payment-card__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
}

.weo-payment-card__brand svg,
.weo-payment-card__brand img {
	max-width: 100%;
	height: auto;
	max-height: 36px;
	display: block;
}

.weo-payment-card__brand-fallback {
	color: var(--text-mid);
}

.weo-payment-card__body {
	min-width: 0;
}

.weo-payment-card__number {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 600;
	color: var(--text-dark);
}

.weo-payment-card__dots {
	color: var(--text-mid);
	font-weight: 600;
	letter-spacing: 2px;
}

.weo-payment-card__default-badge,
.weo-payment-card__membership-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	padding: 2px 8px;
	border-radius: var(--radius-full);
	letter-spacing: 0.02em;
}

.weo-payment-card__default-badge {
	color: var(--accent);
	background: var(--accent-light);
}

/* "Membership" badge — green (success palette) so it reads as "in use".
 * Leading dot draws the eye to the active card; matches the dot in
 * `.weo-status-pill` elsewhere. */
.weo-payment-card__membership-badge {
	color: #1f7a4a;
	background: rgba(48, 184, 112, 0.12);
}

.weo-payment-card__membership-badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.weo-payment-card__expiry {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin-top: 2px;
}

.weo-payment-card__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.weo-payment-methods__add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.weo-payment-methods__add svg {
	transition: transform 0.15s ease;
}

.weo-payment-methods__add:hover svg {
	transform: translateX(2px);
}

/* ─── Order Notes / Subscription Updates ─── */

.weo-order-notes {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.weo-order-note {
	background: var(--surface);
	border-radius: 10px;
	padding: 14px 18px;
}

.weo-order-note__meta {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 6px;
}

.weo-order-note__text {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-dark);
	line-height: 1.5;
}

.weo-order-note__text p {
	margin: 0;
}

.weo-order-note__text p + p {
	margin-top: 6px;
}

/* ─── Buttons ─── */

/* WC inline `.button` links (Delete card, Cancel subscription, Change
 * payment, Renew now). Outline-style. */
.weo-account__content .button:not(.btn):not(.weo-checkout__btn) {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--accent);
	background: transparent;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(224, 64, 160, 0.3);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	margin: 0 6px 4px 0;
	line-height: 1.4;
	cursor: pointer;
}

.weo-account__content .button:not(.btn):not(.weo-checkout__btn):hover {
	background: var(--accent-light);
	color: var(--accent);
	border-color: var(--accent);
}

/* "Delete" action variant — quieter destructive intent. */
.weo-account__content .button.delete {
	color: var(--text-mid);
	border-color: rgba(106, 96, 128, 0.25);
}

.weo-account__content .button.delete:hover {
	color: var(--error);
	background: rgba(224, 80, 80, 0.05);
	border-color: rgba(224, 80, 80, 0.3);
}

/* "Add payment method" link below the saved cards table, plus the
 * "Order again" link below order details. These sit as direct children
 * of .weo-account__content (no parent table/section) — promote to a
 * solid primary button. */
.weo-account__content > a.button,
.weo-account__content > a.order-again {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--white) !important;
	background: var(--accent);
	border: 1px solid var(--accent);
	padding: 10px 22px;
	border-radius: var(--radius-md);
	margin: 12px 0 0;
	text-decoration: none;
}

.weo-account__content > a.button:hover,
.weo-account__content > a.order-again:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

/* "Add payment method" submit button (the BIG pink button at the bottom
 * of the add-payment-method form). Already pink-ish via existing rules
 * — give it consistent chrome. */
.weo-account__content #add_payment_method button[type="submit"] {
	display: block;
	width: 100%;
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 600;
	color: var(--white);
	background: var(--accent);
	border: 1px solid var(--accent);
	padding: 14px 24px;
	border-radius: var(--radius-md);
	margin-top: 8px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.weo-account__content #add_payment_method button[type="submit"]:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

/* ─── Payment Methods table polish ─── */

.weo-account__content .woocommerce-PaymentMethod--method {
	font-weight: 500;
	color: var(--text-dark);
}

/* ─── Add-payment-method form ─── */

.weo-account__content form#add_payment_method {
	background: var(--white);
	border-radius: 14px;
	border: 1px solid rgba(106, 96, 128, 0.08);
	padding: 24px 28px;
	margin-bottom: 24px;
	box-shadow: 0 2px 12px rgba(14, 10, 24, 0.03);
}

.weo-account__content form#add_payment_method .woocommerce-PaymentMethods {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.weo-account__content form#add_payment_method .woocommerce-PaymentMethod {
	position: relative;
	padding: 16px 18px;
	border: 1px solid rgba(106, 96, 128, 0.15);
	border-radius: 12px;
	margin-bottom: 12px;
	transition: border-color 0.15s, background 0.15s;
}

.weo-account__content form#add_payment_method .woocommerce-PaymentMethod:has(input[type="radio"]:checked) {
	border-color: var(--accent);
	border-width: 2px;
}

/* Make the entire collapsed payment-method block clickable. The label
 * is `for=`-linked to the radio, so an absolute-positioned pseudo on
 * the label extends the radio's hit area to the whole <li>. The pseudo
 * only renders when the radio is NOT checked, so once a gateway is
 * selected the payment-box fields beneath remain clickable. */
.weo-account__content form#add_payment_method .woocommerce-PaymentMethod:has(input[type="radio"]:not(:checked)) {
	cursor: pointer;
}

.weo-account__content form#add_payment_method .woocommerce-PaymentMethod:has(input[type="radio"]:not(:checked)) > label::before {
	content: '';
	position: absolute;
	inset: 0;
	cursor: pointer;
	border-radius: inherit;
}

.weo-account__content form#add_payment_method .woocommerce-PaymentMethod > label {
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 600;
	color: var(--text-dark);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin-left: 8px;
}

.weo-account__content form#add_payment_method .woocommerce-PaymentMethod > label img,
.weo-account__content form#add_payment_method .woocommerce-PaymentMethod > label svg {
	display: inline-block;
	height: 22px;
	width: auto;
	vertical-align: middle;
	margin: 0;
}

.weo-account__content form#add_payment_method .woocommerce-PaymentBox {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(106, 96, 128, 0.08);
}

.weo-account__content form#add_payment_method input[type="radio"] {
	accent-color: var(--accent);
}

/* Stripe Gateway's "Update the payment method for all of my current
 * subscriptions" checkbox (rendered inside every payment-method block on
 * /add-payment-method/). Stripe ships it unstyled, so it picks up the
 * browser default ~13px blue ✓. Match the theme: 18×18 box, accent-pink
 * tick, body-text label. The .form-row wrapper has a default WC margin
 * that's too generous in the bespoke form card — rein it in. */
.weo-account__content form#add_payment_method .form-row[id$="-update-subs-payment-method-card_field"] {
	margin: 14px 0 4px;
	padding: 0;
}

.weo-account__content form#add_payment_method .wc-stripe-update-all-subscriptions-payment-method {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--accent);
	flex-shrink: 0;
	cursor: pointer;
}

.weo-account__content form#add_payment_method label:has(.wc-stripe-update-all-subscriptions-payment-method) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 500;
	color: var(--text-dark);
	line-height: 1.45;
}

.weo-account__content form#add_payment_method label:has(.wc-stripe-update-all-subscriptions-payment-method) .optional {
	color: var(--text-mid);
	font-weight: 400;
}

/* ─── Related orders intro ───
 * The View Subscription page's "Related orders" h2 sits above a short
 * explanatory paragraph (our related-orders.php override). Pull the h2's
 * bottom margin tight when followed by the intro so they read as one
 * grouped header, then push the intro itself down to the table. */
.weo-account__content header:has(> .weo-related-orders__intro) h2 {
	margin-bottom: 18px;
}

.weo-account__content .weo-related-orders__intro {
	font-family: var(--font-body);
	color: var(--text-mid);
	line-height: 1.5;
	margin: 0 0 28px;
}

/* ─── Order notes / OrderUpdates list ─── */

.weo-account__content .woocommerce-OrderUpdates {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.weo-account__content .woocommerce-OrderUpdate {
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.1);
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 12px;
}

.weo-account__content .woocommerce-OrderUpdate-meta {
	font-size: var(--text-xs);
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 6px;
}

/* Member card avatar image. */
.weo-member-card__avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

/* ═══════════════════════════════════════════
   Profile image uploader
   ═══════════════════════════════════════════ */

.weo-avatar-upload {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.12);
	border-radius: var(--radius-lg, 14px);
	margin-bottom: 28px;
}

.weo-avatar-upload__preview {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: var(--text-h3);
	color: var(--white);
	background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
	overflow: hidden;
}

.weo-avatar-upload__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.weo-avatar-upload__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.weo-avatar-upload__btn {
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 600;
	padding: 8px 18px;
	border: 1px solid rgba(106, 96, 128, 0.2);
	border-radius: var(--radius-md);
	background: var(--white);
	color: var(--text-dark);
	cursor: pointer;
	transition: all 0.2s ease;
}

.weo-avatar-upload__btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.weo-avatar-upload__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.weo-avatar-upload__remove {
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 500;
	color: var(--text-mid);
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 4px;
	transition: color 0.2s ease;
}

.weo-avatar-upload__remove:hover {
	color: var(--error);
}

.weo-avatar-upload__hint {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-muted, rgba(106, 96, 128, 0.5));
	margin: 0;
}

/* Style WooCommerce edit-account form. */

.weo-account .woocommerce-EditAccountForm .form-row {
	margin-bottom: 20px;
}

.weo-account .woocommerce-EditAccountForm label {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-small);
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 5px;
}

.woocommerce form .form-row .required {
	color: var(--accent);
}

.weo-account .woocommerce-EditAccountForm input[type="text"],
.weo-account .woocommerce-EditAccountForm input[type="email"],
.weo-account .woocommerce-EditAccountForm input[type="password"] {
	width: 100%;
	padding: 12px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	background-color: var(--white);
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02);
	transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.weo-account .woocommerce-EditAccountForm input:focus {
	outline: 0;
	border-color: var(--text-dark);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 3px hsla(265, 43%, 11%, 0.25), 0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.weo-account .woocommerce-EditAccountForm .woocommerce-Button {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-small);
	padding: 11px 24px;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	background: var(--accent);
	color: var(--white);
	box-shadow: 0 4px 20px rgba(224, 64, 160, 0.3);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.weo-account .woocommerce-EditAccountForm .woocommerce-Button:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(224, 64, 160, 0.4);
}

/* ═══════════════════════════════════════════
   Responsive — Tablet (≤959px)
   ═══════════════════════════════════════════ */

@media (max-width: 959px) {
	.weo-account {
		flex-direction: column;
	}

	.weo-account__sidebar {
		width: 100%;
		height: auto;
		position: static;
		border-right: none;
		border-bottom: 1px solid rgba(106, 96, 128, 0.08);
		padding: 20px 24px;
		overflow-y: visible;
	}

	.weo-member-card {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	.weo-member-card__inner {
		flex: 1;
	}

	/* Menu toggle — collapsed "you are here" section switcher. */
	.weo-account__menu-toggle {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		margin-top: 14px;
		padding: 12px 16px;
		border: 1px solid rgba(106, 96, 128, 0.18);
		border-radius: var(--radius-md);
		background: var(--surface);
		font-family: var(--font-body);
		font-size: var(--text-body);
		font-weight: 600;
		color: var(--text-dark);
		cursor: pointer;
		transition: background 0.2s ease, border-color 0.2s ease;
	}

	.weo-account__menu-toggle:hover {
		background: rgba(106, 96, 128, 0.06);
		border-color: rgba(106, 96, 128, 0.28);
	}

	.weo-account__menu-toggle:focus-visible {
		outline: 2px solid var(--accent);
		outline-offset: 2px;
	}

	.weo-account__menu-toggle-icon {
		display: inline-flex;
		flex-shrink: 0;
		line-height: 0;
		color: var(--accent);
	}

	.weo-account__menu-toggle-label {
		flex: 1;
		text-align: left;
	}

	.weo-account__menu-toggle-chevron {
		display: inline-flex;
		flex-shrink: 0;
		line-height: 0;
		color: var(--text-mid);
		transition: transform 0.3s var(--ease-out-expo);
	}

	.weo-account__menu-toggle-chevron.is-open {
		transform: rotate(180deg);
	}

	/* Collapse the nav list to its natural height via the grid 0fr→1fr
	 * trick (animates to content height — no magic max-height number). */
	.weo-account__nav-collapse {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.32s var(--ease-out-expo);
	}

	.weo-account__nav-collapse.is-open {
		grid-template-rows: 1fr;
	}

	.weo-account__nav-collapse > .weo-sidebar-nav {
		overflow: hidden;
		min-height: 0;
		margin: 0;
		padding-top: 8px;
	}

	/* Mobile nav is a full-width vertical dropdown (not a wrapping row). */
	.weo-sidebar-nav {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 2px;
	}

	.weo-sidebar-cta {
		display: none;
	}

	.weo-account__content {
		padding: 28px 24px 48px;
	}

	.weo-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

/* ═══════════════════════════════════════════
   Responsive — Mobile (≤639px)
   ═══════════════════════════════════════════ */

@media (max-width: 639px) {
	.weo-account__content {
		padding: 20px 16px 40px;
	}

	.weo-stats {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.weo-stat-card {
		padding: 18px 20px;
	}

	.weo-stat-card__value {
		font-size: var(--text-h2);
	}

	.weo-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	/* Booking cards stay side-by-side on mobile — matches the cart's
	 * `.weo-cart-item` treatment (90px poster + details). */
	.weo-booking-card__link {
		gap: 12px;
		padding: 14px;
	}

	.weo-booking-card__poster {
		width: 90px;
	}

	.weo-booking-card__title {
		font-size: var(--text-body);
	}

	.weo-booking-card__meta {
		flex-direction: column;
		gap: 6px;
		align-items: flex-start;
	}
}


/* ═══════════════════════════════════════════
   Checkout Header — Phase 10
   ═══════════════════════════════════════════ */

.checkout-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid rgba(26, 16, 40, 0.06);
	box-shadow: 0 1px 8px rgba(26, 16, 40, 0.04);
}

.admin-bar .checkout-header {
	top: 32px;
}

.checkout-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-height);
}

.checkout-header__left,
.checkout-header__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.checkout-header__logo {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
}

.checkout-header__logo:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 6px;
}

.checkout-header__logo-img {
	height: 36px;
	width: auto;
}

/* Flatten the logo to black on cart/checkout/thank-you */
.weo-checkout-page .checkout-header__logo-img {
	filter: brightness(0) saturate(100%);
}

.checkout-header__divider {
	width: 1px;
	height: 22px;
	background: rgba(26, 16, 40, 0.1);
}

.checkout-header__back,
.checkout-header__help {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.checkout-header__back {
	color: var(--accent);
	font-weight: 600;
}

/* Hover: shift the back-arrow link left to reinforce the "going back"
 * direction. Mirrors `.weo-login-prompt__link:hover` which shifts right
 * for its forward CTA. */
.checkout-header__back:hover {
	color: var(--text-dark);
	transform: translateX(-2px);
}

.checkout-header__back:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.checkout-header__help {
	color: var(--text-mid);
}

.checkout-header__help:hover {
	color: var(--text-dark);
}

.checkout-header__help:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.checkout-header__user {
	display: flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
}

.checkout-header__avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--accent);
	overflow: hidden;
}

.checkout-header__avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.checkout-header__name {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-dark);
}

@media (max-width: 479px) {
	.checkout-header__help,
	.checkout-header__right .checkout-header__divider {
		display: none;
	}
}

/* ═══════════════════════════════════════════
   Checkout full-page processing loader
   ═══════════════════════════════════════════
   Replaces WooCommerce's faint form-only blockUI overlay (hidden below) with
   a full-viewport overlay + three-dot loader while the place-order request is
   in flight. Toggled by js/checkout-loader.js when WC adds the `processing`
   class to form.checkout. The dot animation mirrors The Events Calendar's
   loader: a 2.24s opacity pulse with staggered per-dot delays. */

.weo-page-loader {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.weo-page-loader.is-active {
	display: flex;
}

.weo-page-loader__dots {
	display: flex;
	align-items: center;
}

.weo-page-loader__dot {
	width: 15px;
	height: 15px;
}

.weo-page-loader__dot:not(:first-child) {
	margin-left: 8px;
}

.weo-page-loader__dot circle {
	fill: var(--accent);
	opacity: 0.16;
	animation: weo-loader-bounce 2.24s normal infinite;
}

.weo-page-loader__dot:nth-child(1) circle { animation-delay: 0.45s; }
.weo-page-loader__dot:nth-child(2) circle { animation-delay: 1.05s; }
.weo-page-loader__dot:nth-child(3) circle { animation-delay: 1.35s; }

@keyframes weo-loader-bounce {
	50% { opacity: 1; }
}

.weo-page-loader__sr-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.weo-page-loader__dot circle {
		animation: none;
		opacity: 0.7;
	}
}

/* Hide WC's form-only blockUI overlay on checkout — the full-page loader
   above takes over. Scoped to the form's OWN overlay (direct child) so the
   payment-section overlay used during country/coupon updates is left intact. */
form.checkout > .blockUI.blockOverlay {
	display: none !important;
}

/* Non-member upsell notice (cart / checkout).
 * Banner renders BEFORE `.weo-checkout` (via `woocommerce_before_checkout_form`)
 * so it has no container — these styles give it the same outer box as
 * `.weo-checkout` (1200px max-width, centred, 24px inner padding) plus
 * breathing room from the nav. No `margin-bottom` because `.weo-checkout`
 * has its own `padding-top: 28px` that handles the gap below.
 */
.weo-nonmember-upsell {
	max-width: 1152px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--white);
	border: 3px solid var(--cyan);
	border-radius: 12px;
	padding: 14px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	animation: weoLoginPromptIn 0.55s var(--ease-out-expo) 0.15s backwards;
	position: relative;
}

.weo-nonmember-upsell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: 0 0 0 0 rgba(64, 184, 224, 0);
    animation: weoSignUpPromptPulse 1.8s var(--ease-out-expo) 0.8s 2 backwards;
    pointer-events: none;
}

@keyframes weoSignUpPromptPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(64, 184, 224, 0.55);
	}
	70% {
		box-shadow: 0 0 0 14px rgba(64, 184, 224, 0);
	}
	100% {
		box-shadow: 0 0 0 14px rgba(64, 184, 224, 0);
	}
}

.weo-nonmember-upsell__icon {
	flex-shrink: 0;
	color: var(--cyan);
}

.weo-nonmember-upsell__body {
	flex: 1;
	min-width: 0;
}

.weo-nonmember-upsell__heading {
	display: block;
	font-size: var(--text-s);
	font-weight: 600;
}

.weo-nonmember-upsell__text {
	font-size: var(--text-s);
	color: var(--text-mid);
	line-height: 1.5;
	margin: 0;
}

.weo-nonmember-upsell__cta {
	flex-shrink: 0;
	background: var(--cyan);
	color: var(--white);
}

@media (max-width: 1200px) {
	.weo-nonmember-upsell {
		margin-inline: 24px;
	}
}

@media (max-width: 767px) {
	.weo-nonmember-upsell {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

/* ═══════════════════════════════════════════
   Cart Page — Layout
   ═══════════════════════════════════════════ */

.weo-cart {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px 80px;
}

@media (max-width: 767px) {
	.weo-cart {
		padding-inline: 16px;
	}
}

.weo-cart__grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 28px;
	align-items: start;
}


/* ─── Empty cart ─── */

.weo-cart--empty {
	display: flex;
	justify-content: center;
	padding: 100px 24px;
}

.weo-cart__empty {
	max-width: 480px;
	text-align: center;
}

.weo-cart__empty-icon {
	display: block;
	margin-bottom: 20px;
	opacity: 0.4;
	color: var(--text-mid);
}

.weo-cart__empty-icon svg {
	margin: 0 auto;
}

.weo-cart__empty h1 {
	color: var(--text-dark);
	margin-bottom: 8px;
}

.weo-cart__empty p {
	font-family: var(--font-body);
	font-size: var(--text-m);
	color: var(--text-mid);
	margin-bottom: 24px;
}


/* ─── Cart card ─── */

.weo-cart__card {
	background: var(--white);
	border-radius: 14px;
	border: 1px solid rgba(26, 16, 40, 0.06);
	box-shadow: 0 1px 3px rgba(26, 16, 40, 0.04);
	overflow: hidden;
}

.weo-cart__header {
	padding: 22px 22px 0;
}

.weo-cart__header h1 {
	color: var(--text-dark);
	font-size: var(--text-m);
	display: flex;
	align-items: center;
	gap: 8px;
}

.weo-cart__count {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--text-s);
	color: var(--text-mid);
	letter-spacing: normal;
}


/* ─── Cart items ─── */

.weo-cart-item {
	display: flex;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid rgba(26, 16, 40, 0.05);
	position: relative;
}

.weo-cart-item:last-child {
	border-bottom: none;
}

.weo-cart-item__poster {
	width: 120px;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--card-accent-bg, rgba(26,16,40,0.06)), rgba(26,16,40,0.06));
	flex-shrink: 0;
	position: relative;
	align-self: flex-start;
}

.weo-cart-item__poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.weo-cart-item__poster-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.5;
	color: var(--text-mid);
}

.weo-cart-item__audience-badge {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: 700;
	font-family: var(--font-body);
	color: var(--card-accent, var(--accent));
	background: var(--card-accent-bg, var(--accent-light));
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

/* Item 5: hide qty controls on non-event (membership / gift card) rows */
.weo-cart-item--generic .weo-cart-item__qty {
	display: none;
}

.weo-cart-item__details {
	flex: 1;
	min-width: 0;
}

.weo-cart-item__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-body);
	color: var(--text-dark);
	margin-bottom: 3px;
	line-height: 1.3;
}

.weo-cart-item__meta {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin-bottom: 2px;
}

.weo-cart-item__social {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--text-mid);
	opacity: 0.7;
	display: flex;
	align-items: center;
	gap: 4px;
}

.weo-cart-item__footer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.weo-cart-item__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(26, 16, 40, 0.12);
	border-radius: 8px;
	overflow: hidden;
}

/* When any cell inside the stepper (−, qty, +) is keyboard-focused,
 * paint the focus ring around the WHOLE group rather than individual
 * cells. Mirrors the `.btn:focus-visible` accent ring + offset pattern
 * — single ring all the way around, white gap between ring and group. */
.weo-cart-item__qty:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.weo-cart-item__qty-btn {
	width: 30px;
	height: 30px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dark);
	transition: background 0.15s ease;
}

.weo-cart-item__qty-btn:hover {
	background: rgba(26, 16, 40, 0.04);
}

/* Per-cell focus: outer ring is handled by `.weo-cart-item__qty:focus-
 * within` above. Inner cells get a subtle accent-tinted background
 * instead of a second outline — shows WHICH cell inside the group is
 * active without fighting the group ring. */
.weo-cart-item__qty-btn:focus,
.weo-cart-item__qty-btn:focus-visible {
	outline: 0;
	background: rgba(224, 64, 160, 0.1);
	color: var(--accent);
}

.weo-cart-item__qty-input {
	width: 34px;
	text-align: center;
	font-size: var(--text-s);
	font-weight: 600;
	font-family: var(--font-body);
	color: var(--text-dark);
	border: none;
	border-left: 1px solid rgba(26, 16, 40, 0.08);
	border-right: 1px solid rgba(26, 16, 40, 0.08);
	line-height: 30px;
	background: transparent;
	-moz-appearance: textfield;
	transition: background 0.15s ease, color 0.15s ease;
}

.weo-cart-item__qty-input:focus,
.weo-cart-item__qty-input:focus-visible {
	outline: 0;
	background: rgba(224, 64, 160, 0.1);
	color: var(--accent);
}

.weo-cart-item__qty-input::-webkit-outer-spin-button,
.weo-cart-item__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.weo-cart-item__qty-static {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-dark);
	padding: 0 4px;
}

.weo-cart-item__pricing {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.weo-cart-item__total {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: var(--text-body);
	color: var(--text-dark);
}

.weo-cart-item__rrp {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--text-mid);
	text-decoration: line-through;
}

.weo-cart-item__unit {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--text-mid);
}

.weo-cart-item__remove {
	position: absolute;
	top: 18px;
	right: 22px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: rgba(26, 16, 40, 0.03);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-body);
	color: var(--text-mid);
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1;
}

.weo-cart-item__remove:hover {
	background: rgba(232, 80, 64, 0.08);
	color: var(--error);
}

.weo-cart-item__remove:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.weo-cart__continue {
	text-align: center;
	padding: 14px 0 0;
}

.weo-cart__continue-link {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.15s ease, transform 0.15s ease;
}

/* Hover: shift left to reinforce the "going back" direction.
 * Mirrors `.weo-login-prompt__link:hover` (forward shift). */
.weo-cart__continue-link:hover {
	color: var(--text-dark);
	transform: translateX(-2px);
}

.weo-cart__continue-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.weo-checkout__back-link {
	margin-bottom: 14px;
}


/* ═══════════════════════════════════════════
   Order Summary Sidebar
   ═══════════════════════════════════════════ */

.weo-order-summary__card {
}

.weo-order-summary__heading {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-m);
	color: var(--text-dark);
	margin-bottom: 18px;
}

.weo-order-summary__items {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(26, 16, 40, 0.06);
}

.weo-order-summary__item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.weo-order-summary__item-info {
	flex: 1;
}

.weo-order-summary__item-name {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 500;
	color: var(--text-dark);
}

.weo-order-summary__item-qty {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin-top: 1px;
}

.weo-order-summary__item-total {
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 600;
	color: var(--text-dark);
}

.weo-order-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
}

.weo-order-summary__row:first-of-type {
	padding-top: 12px;
}

.weo-order-summary__row > span:first-child {
	display: flex;
	align-items: center;
	gap: 5px;
}

.weo-order-summary__row-value {
	font-weight: 600;
	color: var(--text-dark);
}

.weo-order-summary__savings {
	color: var(--success);
	font-weight: 600;
}

.weo-order-summary__savings .weo-order-summary__row-value {
	color: var(--success);
	font-weight: 600;
}

.weo-order-summary__coupon .weo-order-summary__row-value {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--success);
}

.weo-order-summary__coupon-remove {
	font-size: var(--text-xs);
	font-weight: 500;
	color: var(--text-mid);
	text-decoration: underline;
}

.weo-order-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 2px solid rgba(26, 16, 40, 0.06);
}

.weo-order-summary__total span:first-child {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: 700;
	color: var(--text-dark);
}

.weo-order-summary__total-amount {
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: 800;
	color: var(--text-dark);
	letter-spacing: -0.02em;
}

.weo-order-summary__cta {
	width: 100%;
	margin-top: 18px;
	padding: 15px 24px;
	font-size: var(--text-body);
	justify-content: center;
}

.weo-order-summary__trust {
	text-align: center;
	margin-top: 12px;
}

.weo-order-summary__trust p {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--text-mid);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-weight: 600;
}

.weo-order-summary__cards {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.weo-order-summary__cards .weo-payment-icon {
	height: 20px;
	width: auto;
	display: block;
}

.weo-order-summary__proof {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 16px;
	opacity: 0.45;
}

.weo-order-summary__proof > span {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--text-mid);
	font-weight: 600;
}


/* ═══════════════════════════════════════════
   Wallet Credit
   ═══════════════════════════════════════════ */

.weo-wallet-credit {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	background: var(--violet-light);
	border-radius: 10px;
	margin-top: 14px;
}

.weo-wallet-credit__info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.weo-wallet-credit__label {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--violet);
	display: flex;
	align-items: center;
	gap: 5px;
}

.weo-wallet-credit__amount {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--subtle);
}

.weo-wallet-credit__apply {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--white);
	background: var(--violet);
	border: 1px solid var(--violet);
	border-radius: 8px;
	padding: 7px 16px;
	cursor: pointer;
	transition: background 0.2s;
}

.weo-wallet-credit__apply:hover:not(:disabled) {
	background: var(--violet-hover);
	border-color: var(--violet-hover);
}

.weo-wallet-credit__apply:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Wallet credit row in order summary */
.weo-order-summary__wallet-applied {
	color: var(--violet);
	font-weight: 600;
}

.weo-order-summary__wallet-applied .weo-order-summary__row-value {
	color: var(--violet);
	font-weight: 600;
}


/* ═══════════════════════════════════════════
   Coupon / Gift Card Input
   ═══════════════════════════════════════════ */

.weo-coupon {
	margin-top: 10px;
}

.weo-coupon__form {
	display: flex;
	gap: 8px;
}

.weo-coupon__input {
	flex: 1;
	padding: 12px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	background-color: var(--white);
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02);
	transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.weo-coupon__input:focus {
	outline: 0;
	border-color: var(--text-dark);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 3px hsla(265, 43%, 11%, 0.25), 0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.weo-coupon__input::placeholder {
	color: var(--text-mid);
	opacity: 0.6;
}

.weo-coupon__apply {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-dark);
	background: rgba(26, 16, 40, 0.04);
	border: 1px solid rgba(26, 16, 40, 0.12);
	border-radius: 8px;
	padding: 9px 16px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.weo-coupon__apply:hover {
	background: rgba(26, 16, 40, 0.08);
}

.weo-coupon__apply:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}


/* ═══════════════════════════════════════════
   Checkout Page — Layout
   ═══════════════════════════════════════════ */

.weo-checkout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px 80px;
}

@media (max-width: 767px) {
	.weo-checkout {
		padding-inline: 16px;
	}
}

.weo-checkout__grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 28px;
	align-items: start;
}

.weo-checkout__card {
	background: var(--white);
	border-radius: 14px;
	border: 1px solid rgba(26, 16, 40, 0.06);
	box-shadow: 0 1px 3px rgba(26, 16, 40, 0.04);
	padding: 22px;
	margin-bottom: 18px;
}

.weo-checkout__card-heading {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-m);
	color: var(--text-dark);
	margin-bottom: 18px;
}

/* Hide WooCommerce's default billing/shipping headings (we add our own) */
.weo-checkout__card > h3:not(.weo-checkout__card-heading),
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
	display: none;
}

/* ===========================================================
 * Account security card — password field + segmented strength
 * meter overlay. The .woocommerce-account-fields block is
 * rendered inside its own .weo-checkout__card in form-checkout.php.
 * =========================================================== */
.weo-checkout__account-card .form-row {
	margin-bottom: 12px;
}

.weo-checkout__account-card .form-row:last-child {
	margin-bottom: 0;
}

.weo-checkout__account-card .form-row > label {
	display: block;
	margin-bottom: 5px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-dark);
}

.weo-checkout__account-card .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

/* Stripe-style input chrome — the existing rule at L3763 is scoped
 * to .woocommerce-billing-fields__field-wrapper and misses the
 * password input inside .woocommerce-account-fields. */
.woocommerce-account-fields input[type="password"],
.woocommerce-account-fields input[type="text"],
.woocommerce-account-fields input[type="email"],
.woocommerce-account-fields .input-text {
	width: 100%;
	padding: 12px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	background-color: var(--white);
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02);
	transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.woocommerce-account-fields input[type="password"]:focus,
.woocommerce-account-fields input[type="text"]:focus,
.woocommerce-account-fields input[type="email"]:focus,
.woocommerce-account-fields .input-text:focus {
	outline: 0;
	border-color: var(--text-dark);
	box-shadow:
		0 1px 1px rgba(0, 0, 0, 0.03),
		0 3px 6px rgba(0, 0, 0, 0.02),
		0 0 0 3px hsla(265, 43%, 11%, 0.25),
		0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

/* WC's native strength meter — keep in DOM with role="alert" for
 * screen readers but visually hide. Our pill overlay replaces it. */
.woocommerce-account-fields .woocommerce-password-strength {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.woocommerce-account-fields .woocommerce-password-hint {
	display: block;
	margin-top: 8px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--text-mid);
	line-height: 1.6;
}

/* Pill overlay — sibling of .woocommerce-password-strength inside
 * the password field's .form-row. JS sets one of
 * .weo-pwmeter--{short|bad|good|strong} based on the meter's class. */
.weo-pwmeter {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.weo-pwmeter--hidden {
	display: none;
}

.weo-pwmeter__pills {
	display: flex;
	gap: 4px;
	flex: 1;
	max-width: 240px;
}

.weo-pwmeter__pill {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: #e6e6e6;
	transition: background 0.2s ease;
}

.weo-pwmeter__label {
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-mid);
	transition: color 0.2s ease;
}

/* Progressive fill: first N pills coloured, remaining stay grey */
.weo-pwmeter--short  .weo-pwmeter__pill:nth-child(1)      { background: var(--error); }
.weo-pwmeter--bad    .weo-pwmeter__pill:nth-child(-n+2)   { background: #E8893A; }
.weo-pwmeter--good   .weo-pwmeter__pill:nth-child(-n+3)   { background: #D4A437; }
.weo-pwmeter--strong .weo-pwmeter__pill                   { background: var(--success); }

/* Label colour matches the highest-filled pill */
.weo-pwmeter--short  .weo-pwmeter__label { color: var(--error); }
.weo-pwmeter--bad    .weo-pwmeter__label { color: #E8893A; }
.weo-pwmeter--good   .weo-pwmeter__label { color: #D4A437; }
.weo-pwmeter--strong .weo-pwmeter__label { color: var(--success); }

.weo-checkout__sidebar,
.weo-cart__sidebar .weo-order-summary__card,
.weo-order-summary-section .weo-order-summary__card {
	background: var(--white);
	border-radius: 14px;
	border: 1px solid rgba(26, 16, 40, 0.06);
	box-shadow: 0 1px 3px rgba(26, 16, 40, 0.04);
	padding: 22px;
}

/* View-order context: restore the 24px gap between the order summary
 * card and the billing-details section below. The previous wrapper
 * carried `.weo-order-section` which provided this margin; we dropped
 * that class to avoid double-card chrome, so the spacing needs to live
 * on the new wrapper instead. */
.weo-order-summary-section {
	margin-bottom: 24px;
}

/* View-order page: payment-method row inside the order summary card.
 * Renders the card brand SVG (Visa / Mastercard / Amex / Discover) next
 * to the "Via {brand} card ending in {last4}" text — matches the
 * membership page treatment. */
.weo-order-summary__payment-value {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: var(--text-dark);
}

.weo-order-summary__payment-value .weo-payment-icon {
	height: 20px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

/* Mid-plan upgrade banner — sits between the order summary heading and
 * the items list when the order is a WC Subs switch. Accent-tinted
 * surface so it reads as informational, not as an error. */
.weo-order-summary__switch-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: var(--accent-light);
	border: 1px solid rgba(224, 64, 160, 0.18);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 14px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-dark);
	line-height: 1.5;
}

.weo-order-summary__switch-notice > span[aria-hidden="true"] {
	color: var(--accent);
	flex-shrink: 0;
	margin-top: 2px;
}

.weo-order-summary__switch-notice strong {
	font-weight: 700;
	margin-right: 2px;
}

/* "Upgrade" badge sitting inline next to the item name on the switch
 * row. Small accent pill so it reads as a status marker, not as text. */
.weo-order-summary__item-badge {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-light);
	padding: 2px 8px;
	border-radius: var(--radius-full);
	letter-spacing: 0.02em;
	margin-left: 6px;
	vertical-align: middle;
}

/* Resale Details card — separate `.weo-order-summary` card rendered
 * by weo_render_order_resale_details() when the order has released or
 * resold tickets. Same chrome as the order-summary card directly above. */
.weo-resale-details__intro {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	line-height: 1.5;
	margin: 0 0 16px;
}

/* Resold + Pending badges — exact colour pair WP admin uses for these
 * statuses so the user-facing view matches what Adam sees in the order
 * editor. */
.weo-order-summary__item-badge--resold {
	color: #6c3483;
	background: #e8daef;
}

.weo-order-summary__item-badge--pending {
	color: #b45309;
	background: #fde8d0;
}

/* Wallet credit issued row — uses the WEO wallet-credit purple token
 * (same colour the dashboard's wallet stat card + cart's
 * `.weo-wallet-credit` toggle use) so the visual language is consistent
 * everywhere money flows in/out of the wallet. Font sizing mirrors
 * `.weo-order-summary__total` so the credit amount reads as the
 * headline outcome of the resale (display font, h3-sized value). */
.weo-order-summary__wallet-issued {
	color: var(--violet);
	align-items: baseline;
	padding: 14px 0 0;
}

.weo-order-summary__row.weo-resale-details__no-credit {
	padding: 14px 0 0;
}

.weo-order-summary__wallet-issued > span:first-child {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: 700;
	color: var(--violet);
	gap: 8px;
}

.weo-order-summary__row.weo-resale-details__no-credit > span:first-child {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: 700;
	color: var(--text-dark);
	gap: 8px;
}

.weo-order-summary__wallet-issued > span:first-child svg,
.weo-order-summary__row.weo-resale-details__no-credit > span:first-child svg {
	width: 18px;
	height: 18px;
}

.weo-order-summary__wallet-issued .weo-order-summary__row-value {
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: 800;
	color: var(--violet);
	letter-spacing: -0.02em;
}

/* "No credit issued" — muted state when Adam chose to skip wallet
 * credit on this resale. Same row chrome but neutral colours. */
.weo-resale-details__no-credit .weo-order-summary__row-value {
	color: var(--text-mid);
	font-weight: 500;
}


/* ─── Checkout form field overrides ─── */

.woocommerce-billing-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0 14px;
}

.woocommerce-billing-fields__field-wrapper .form-row {
	width: 100%;
}

.woocommerce-billing-fields__field-wrapper .weo-field--half {
	width: calc(50% - 7px);
}

.woocommerce-billing-fields__field-wrapper label {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 5px;
}

.woocommerce-billing-fields__field-wrapper label span.required,
.create-account label span.required {
	color: var(--accent);
}

.woocommerce-billing-fields__field-wrapper label .optional,
.weo-optional {
	font-weight: 400;
	color: var(--text-mid);
}

.woocommerce-billing-fields__field-wrapper .input-text,
.woocommerce-billing-fields__field-wrapper input[type="text"],
.woocommerce-billing-fields__field-wrapper input[type="email"],
.woocommerce-billing-fields__field-wrapper input[type="tel"],
.woocommerce-billing-fields__field-wrapper select {
	width: 100%;
	padding: 12px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	background-color: var(--white);
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02);
	transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.woocommerce-billing-fields__field-wrapper .input-text:focus,
.woocommerce-billing-fields__field-wrapper input:focus,
.woocommerce-billing-fields__field-wrapper select:focus {
	outline: 0;
	border-color: var(--text-dark);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 3px hsla(265, 43%, 11%, 0.25), 0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.woocommerce-billing-fields__field-wrapper .input-text::placeholder,
.woocommerce-billing-fields__field-wrapper input::placeholder {
	color: var(--text-mid);
	opacity: 0.6;
}

/* ─── Checkout mobile field — country-code dropdown + local input ───
 * Mirrors the attendee-registration .weo-mobile-group. The local <input>
 * inherits the standard field chrome from the rule above; these rules add
 * the flex row, the narrow code <select>, and its custom caret. Scoped under
 * the field-wrapper so they outrank the generic `select`/`input[type=tel]`
 * width:100% rule (which would otherwise stretch the code select). */
.woocommerce-billing-fields__field-wrapper .weo-mobile-group {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}

.woocommerce-billing-fields__field-wrapper .weo-mobile-group__code {
	flex: 0 0 104px;
	width: 104px;
	min-width: 0;
	padding: 12px 28px 12px 10px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236A6080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 16px;
	line-height: 1.4;
}

.woocommerce-billing-fields__field-wrapper input.weo-mobile-group__local {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

/* Billing country + state are simple native dropdowns (selectWoo is dequeued
 * on checkout). They inherit the standard select chrome above; we swap the
 * native browser arrow for a custom caret sat ~8px in from the right edge so
 * the chevron isn't crammed against the field border. #billing_state only
 * renders as a <select> for countries that have states (e.g. US); for others
 * it's a hidden input the caret rules harmlessly ignore. */
#billing_country_field {
	width: 100%;
}

#billing_country,
#billing_state {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236A6080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	padding-right: 40px;
}

/* Newsletter opt-in (Mailchimp checkbox via woocommerce_after_checkout_billing_form) */
.weo-checkout__main .woocommerce-billing-fields + div {
	margin-top: 18px;
}

.weo-checkout__main label input[type="checkbox"] {
	width: 17px;
	height: 17px;
	border-radius: 4px;
	accent-color: var(--accent);
}

/* Audience acknowledgement card — required confirmation for LGBTQ+ / Women-Only events */
.weo-checkout__acknowledgement {
	border-left: 3px solid var(--accent);
}

.weo-checkout__ack-row {
	margin: 0;
	padding: 0;
}

.weo-checkout__ack-row + .weo-checkout__ack-row {
	margin-top: 10px;
}

.weo-checkout__ack-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-dark);
	line-height: 1.5;
}

.weo-checkout__ack-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin: 1px 0 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.weo-checkout__terms {
	margin-top: 0;
}

.weo-checkout__terms p {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	line-height: 1.6;
}

/* `.discreet` — utility class for inline reference links inside paragraph
 * text (T&Cs, privacy, etc.). Inherits the paragraph colour, underlined by
 * default, underline removed on hover/active so the user clearly knows
 * they're moving over it. Also covers WC core's hardcoded
 * `.woocommerce-terms-and-conditions-link` so the checkout T&C link reads
 * the same way without needing a PHP filter to inject the class.
 */
.discreet,
.discreet:link,
.discreet:visited,
.woocommerce-terms-and-conditions-link,
.woocommerce-terms-and-conditions-link:link,
.woocommerce-terms-and-conditions-link:visited {
	color: inherit;
	text-decoration: underline;
}

.discreet:hover,
.discreet:active,
.discreet:focus,
.woocommerce-terms-and-conditions-link:hover,
.woocommerce-terms-and-conditions-link:active,
.woocommerce-terms-and-conditions-link:focus {
	color: inherit;
	text-decoration: none;
}


/* ─── Checkout order review table overrides ─── */

.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	margin-bottom: 16px;
}

.woocommerce-checkout-review-order-table thead th {
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-mid);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0 0 10px;
	border-bottom: 1px solid rgba(26, 16, 40, 0.06);
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
	padding: 8px 0;
	font-size: var(--text-s);
	color: var(--text-dark);
	border: none;
}

.woocommerce-checkout-review-order-table .product-name {
	font-weight: 500;
}

.woocommerce-checkout-review-order-table .product-total {
	text-align: right;
	font-weight: 600;
}

.woocommerce-checkout-review-order-table tfoot th {
	font-size: var(--text-s);
	font-weight: 500;
	color: var(--text-mid);
}

.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
	font-weight: 600;
}

.woocommerce-checkout-review-order-table tfoot .order-total th {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: 700;
	color: var(--text-dark);
	padding-top: 14px;
	border-top: 2px solid var(--text-dark);
}

.woocommerce-checkout-review-order-table tfoot .order-total td {
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: 800;
	color: var(--text-dark);
	padding-top: 14px;
	border-top: 2px solid var(--text-dark);
}


/* ─── Payment section ─── */

#payment {
	margin-top: 16px;
}

.first-payment-date {
	color: var(--text-mid)
;}

.wc_payment_method.payment_method_stripe label:first-child {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: 700;
	color: var(--text-dark);
}

#wc-stripe-express-checkout-button-separator {
	font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-mid);
    margin: 12px 0;
}

#wc-stripe-express-checkout-element>div {
	min-width: unset !important;
}

#payment .payment_methods {
	list-style: none;
	padding: 0;
	margin: 0;
}

#payment .payment_methods li li {
	padding: 12px;
}

#payment .payment_methods li label[for="payment_method_stripe"] {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: 600;
	color: var(--text-dark);
	cursor: pointer;
}

#payment .payment_box {
	padding: 0;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
}

#payment .place-order {
	padding-top: 16px;
}

#payment #place_order {
	width: 100%;
	padding: 15px 24px;
	background: var(--accent);
	color: var(--white);
	border: none;
	border-radius: 12px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(224, 64, 160, 0.3);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#payment #place_order:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(224, 64, 160, 0.35);
}

/* WooCommerce notices on checkout */
.woocommerce-NoticeGroup,
.woocommerce-notices-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	list-style: none;
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-family: var(--font-body);
	font-size: var(--text-s);
	line-height: 1.5;
}

/* Multiple errors render as a <ul> — kill default bullets + indent */
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
	list-style: none;
	margin: 0;
	padding: 4px 0;
}

.woocommerce-error li + li,
.woocommerce-message li + li,
.woocommerce-info li + li {
	border-top: 1px solid rgba(26, 16, 40, 0.05);
}

/* Inline field-name links inside errors — WC wraps each field reference
 * in <a href="#…"> to scroll to it on click. Keep the bold weight but
 * drop the underline so the block reads as a sentence, not a link list. */
.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.woocommerce-error a:hover,
.woocommerce-message a:hover,
.woocommerce-info a:hover {
	border-bottom-style: solid;
}

/* WC programmatically focuses the notice block after a failed submit —
 * replace the harsh browser focus ring with a subtle accent halo. */
.woocommerce-error:focus,
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-NoticeGroup:focus,
.woocommerce-notices-wrapper:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(224, 64, 160, 0.12);
}

.woocommerce-error {
	background: rgba(232, 80, 64, 0.06);
	border-color: rgba(232, 80, 64, 0.18);
	color: #9b1c1c;
}

.woocommerce-message {
	background: rgba(48, 184, 112, 0.06);
	border-color: rgba(48, 184, 112, 0.18);
	color: #065f46;
}

.woocommerce-info {
	background: rgba(64, 184, 224, 0.05);
	border-color: rgba(64, 184, 224, 0.18);
	color: #155e75;
}


/* ═══════════════════════════════════════════
   Confirmation Page
   ═══════════════════════════════════════════ */

.weo-confirmation {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 24px 100px;
}

.weo-confirmation__hero {
	text-align: center;
	margin-bottom: 36px;
}

.weo-confirmation__check {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(48, 184, 112, 0.1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--success);
	margin-bottom: 16px;
	animation: weo-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.weo-confirmation__check--error {
	background: rgba(232, 80, 64, 0.1);
	color: var(--error);
}

.weo-confirmation__hero h1 {
	color: var(--text-dark);
	margin-bottom: 6px;
}

.weo-confirmation__hero p {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
	margin-bottom: 4px;
}

.weo-confirmation__email {
	font-size: var(--text-s) !important;
}

.weo-confirmation__hero strong {
	color: var(--text-dark);
}

.weo-confirmation__card {
	background: var(--white);
	border-radius: 14px;
	border: 1px solid rgba(26, 16, 40, 0.06);
	box-shadow: 0 1px 3px rgba(26, 16, 40, 0.04);
	padding: 22px;
	margin-bottom: 20px;
}

.weo-confirmation__card h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-m);
	color: var(--text-dark);
	margin-bottom: 16px;
}


/* ─── What happens next steps ─── */

.weo-confirmation__steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.weo-confirmation__step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.weo-confirmation__step-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--surface);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--text-dark);
}

.weo-confirmation__step strong {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-dark);
}

.weo-confirmation__step p {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	line-height: 1.5;
	margin-top: 2px;
}


/* ─── Ticket cards ─── */

.weo-ticket-card {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(26, 16, 40, 0.06);
}

.weo-ticket-card:last-of-type {
	border-bottom: none;
}

.weo-ticket-card__poster {
	width: 120px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--card-accent-bg, rgba(26,16,40,0.06)), rgba(26,16,40,0.06));
	flex-shrink: 0;
	align-self: flex-start;
}

.weo-ticket-card__poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.weo-ticket-card__details {
	flex: 1;
}

.weo-ticket-card__audience {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: 700;
	font-family: var(--font-body);
	color: var(--card-accent, var(--accent));
	background: var(--card-accent-bg, var(--accent-light));
	padding: 2px 7px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.weo-ticket-card__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-body);
	color: var(--text-dark);
	margin-bottom: 3px;
}

.weo-ticket-card__meta {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin-bottom: 8px;
}

.weo-ticket-card__social {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--text-mid);
	opacity: 0.7;
	margin-top: 2px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.weo-ticket-card__qty {
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 600;
	color: var(--text-dark);
	margin: 0;
}

.weo-ticket-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 16px;
	margin-top: 8px;
}

.weo-ticket-card__action {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 500;
	color: var(--accent);
	text-decoration: none;
}

.weo-ticket-card__action:hover {
	color: var(--accent-hover);
}

@media screen and (max-width: 480px) {
	.woocommerce-order-received .weo-ticket-card {
		flex-direction: column;
		gap: 10px;
	}
	.woocommerce-order-received .weo-ticket-card__poster {
		width: 100%;
	}
}

/* ─── Confirmation totals ─── */

.weo-confirmation__totals {
	border-top: 1px solid rgba(26, 16, 40, 0.06);
	padding-top: 14px;
	margin-top: 6px;
}

.weo-confirmation__totals-row {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
	padding: 6px 0;
}

.weo-confirmation__totals-row > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.weo-confirmation__totals-row span:last-child {
	font-weight: 500;
	color: var(--text-dark);
}

.weo-confirmation__totals-row--savings {
	color: var(--success);
	font-weight: 500;
}

.weo-confirmation__totals-row--savings span:last-child {
	font-weight: 600;
	color: var(--success);
}

.weo-confirmation__totals-row--total {
	padding-top: 14px;
	margin-top: 10px;
	border-top: 2px solid rgba(26, 16, 40, 0.06);
}

.weo-confirmation__totals-row--total span:first-child {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: 700;
	color: var(--text-dark);
}

.weo-confirmation__totals-row--total span:last-child {
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: 800;
	color: var(--text-dark);
}


/* ─── Action buttons ─── */

.weo-confirmation__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}


/* ═══════════════════════════════════════════
   Animation
   ═══════════════════════════════════════════ */

@keyframes weo-pop-in {
	0% {
		transform: scale(0.6);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}


/* ═══════════════════════════════════════════
   Responsive — Phase 10
   ═══════════════════════════════════════════ */

@media (max-width: 959px) {
	.weo-cart__grid,
	.weo-checkout__grid {
		grid-template-columns: 1fr;
	}

	.weo-order-summary,
	.weo-checkout__sidebar {
		position: static;
	}

	/* Checkout header: hide name on tablet */
	.checkout-header__name {
		display: none;
	}
}

@media (max-width: 639px) {
	/* Cart items: tighter layout */
	.weo-cart-item {
		padding: 14px 16px;
	}

	.weo-cart-item__poster,
	.weo-ticket-card__poster {
		width: 90px;
	}

	/* Checkout billing: full-width fields */
	.woocommerce-billing-fields__field-wrapper .weo-field--half {
		width: 100%;
	}

	/* Confirmation: stack actions */
	.weo-confirmation__actions {
		flex-direction: column;
	}

	.weo-confirmation__actions .btn {
		width: 100%;
		justify-content: center;
	}

	/* Checkout header: stack neatly */
	.checkout-header__back span:not(.nav-logo__icon) {
		display: none;
	}
}

@media (max-width: 782px) {
	.admin-bar .checkout-header {
		top: 46px;
	}
}

/* ─── Referral Dashboard ─── */

.weo-referral__header,
.weo-account-intro {
	margin-bottom: 28px;
}

.weo-referral__title,
.weo-account-intro__title {
	color: var(--text-dark);
	margin: 0 0 8px;
}

.weo-referral__intro,
.weo-account-intro__text {
	color: var(--text-mid);
	font-size: var(--text-body);
	line-height: 1.6;
	margin: 0;
}

/* Link card */
.weo-referral__link-card {
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.1);
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 24px;
}

.weo-referral__label {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-mid);
	margin-bottom: 10px;
}

.weo-referral__copy-row {
	display: flex;
	gap: 10px;
}

.weo-referral__input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid rgba(106, 96, 128, 0.2);
	border-radius: var(--radius-md);
	background: var(--surface);
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-dark);
	cursor: text;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.weo-referral__input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

.weo-referral__copy-btn {
	flex-shrink: 0;
	min-width: 110px;
	transition: all 0.2s ease;
}

.btn--copied {
	background: var(--success) !important;
	border-color: var(--success) !important;
}

.weo-referral__discount-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0;
	font-size: var(--text-s);
	color: var(--accent);
	font-weight: 600;
}

.weo-referral__discount-note svg {
	flex-shrink: 0;
	color: var(--accent);
}

/* Stats row */
.weo-referral__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}

.weo-referral__stat {
	background: var(--white);
	border: 1px solid rgba(106, 96, 128, 0.1);
	border-radius: 14px;
	padding: 20px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weo-referral__stat-value {
	display: block;
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 4px;
}

.weo-referral__stat-value--accent {
	color: var(--accent);
}

.weo-referral__stat-value--success {
	color: var(--success);
}

.weo-referral__stat-label {
	font-size: var(--text-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-mid);
}

/* History */
.weo-referral__history-title {
	color: var(--text-dark);
	margin: 0 0 16px;
}

.weo-referral__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.weo-referral__table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: var(--text-small);
}

.weo-referral__table th {
	text-align: left;
	font-weight: 600;
	color: var(--text-mid);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(106, 96, 128, 0.1);
}

.weo-referral__table td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(106, 96, 128, 0.06);
	color: var(--text-dark);
}

.weo-referral__table tbody tr:hover {
	background: rgba(106, 96, 128, 0.02);
}

.weo-referral__empty {
	text-align: center;
	padding: 40px 24px;
	background: var(--white);
	border-radius: 14px;
	border: 1px dashed rgba(106, 96, 128, 0.15);
}

.weo-referral__empty p {
	margin: 0;
	color: var(--text-mid);
	font-size: var(--text-small);
}

/* Responsive */
@media (max-width: 639px) {
	.weo-referral__stats {
		grid-template-columns: 1fr;
	}

	.weo-referral__copy-row {
		flex-direction: column;
	}

	.weo-referral__copy-btn {
		width: 100%;
	}

	.weo-referral__link-card {
		padding: 18px;
	}
}


/* ═══════════════════════════════════════════════
 * Checkout field error state
 *
 * WC adds `.woocommerce-invalid` (+ variants like
 * `.woocommerce-invalid-required-field`) to the
 * `.form-row` on failed validation. Style the inputs
 * inside to match the same red the Stripe Elements
 * iframe uses (#e05050) so the whole form reads as
 * one coherent error system.
 * ═══════════════════════════════════════════════ */

.weo-checkout .form-row.woocommerce-invalid input:not([type="checkbox"]),
.weo-checkout .form-row.woocommerce-invalid select,
.weo-checkout .form-row.woocommerce-invalid textarea,
.woocommerce-billing-fields__field-wrapper .form-row.woocommerce-invalid .input-text,
.woocommerce-billing-fields__field-wrapper .form-row.woocommerce-invalid input,
.woocommerce-billing-fields__field-wrapper .form-row.woocommerce-invalid select {
	color: #e05050;
	border-color: #e05050;
	box-shadow:
		0px 1px 1px rgba(0, 0, 0, 0.03),
		0px 3px 6px rgba(0, 0, 0, 0.02),
		0 0 0 1px #e05050;
}

.weo-checkout .form-row.woocommerce-invalid input::placeholder,
.weo-checkout .form-row.woocommerce-invalid textarea::placeholder,
.woocommerce-billing-fields__field-wrapper .form-row.woocommerce-invalid input::placeholder {
	color: rgba(224, 80, 80, 0.55);
}

/* Focus inside an invalid field — keep the danger shadow but soften
 * to give the user a visual confirmation they're now editing it. */
.weo-checkout .form-row.woocommerce-invalid input:focus,
.weo-checkout .form-row.woocommerce-invalid select:focus,
.weo-checkout .form-row.woocommerce-invalid textarea:focus,
.woocommerce-billing-fields__field-wrapper .form-row.woocommerce-invalid input:focus,
.woocommerce-billing-fields__field-wrapper .form-row.woocommerce-invalid select:focus {
	border-color: #e05050;
	box-shadow: 0 0 0 3px rgba(224, 80, 80, 0.15);
}

/* Inline per-field error message. WC's checkout JS appends
 * `<p class="checkout-inline-error-message">Field X is a required field.</p>`
 * to the invalid form-row on submit attempt and removes it when the user
 * corrects the field. WC core stylesheets (which we dequeue) ship the
 * visual styling — we re-apply it here. */
.checkout-inline-error-message {
	display: block;
	margin: 6px 0 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 500;
	color: #e05050;
	line-height: 1.4;
}


/* ═══════════════════════════════════════════════
 * Item 12: WooCommerce terms-and-conditions styling
 *
 * WC core outputs the T&C checkbox + (optional)
 * scrollable T&C box with no theme styling at all.
 * ═══════════════════════════════════════════════ */

.woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 20px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid rgba(26, 16, 40, 0.08);
	border-radius: 10px;
}

.woocommerce-terms-and-conditions-wrapper p {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	margin: 0 0 8px;
	line-height: 1.5;
}

.woocommerce-terms-and-conditions-wrapper p:last-child {
	margin-bottom: 0;
}

.woocommerce-terms-and-conditions-wrapper .form-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	flex-direction: column;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--accent);
	margin-top: 2px;
	cursor: pointer;
}

.woocommerce-terms-and-conditions-wrapper label {
	font-family: var(--font-body);
	font-size: var(--text-s);
	line-height: 1.5;
	cursor: pointer;
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.woocommerce-terms-and-conditions-wrapper label a {
	color: var(--accent);
	text-decoration: underline;
}

.woocommerce-terms-and-conditions-wrapper label a:hover {
	color: var(--accent-hover);
}

/* Scrollable T&C box, if enabled in WC settings */
.woocommerce-terms-and-conditions {
	max-height: 200px;
	overflow-y: auto;
	padding: 12px 14px;
	margin-top: 18px;
	margin-bottom: 12px;
	background: var(--white);
	border: 1px solid rgba(26, 16, 40, 0.06);
	border-radius: 6px;
	font-size: var(--text-s);
	line-height: 1.55;
}

.woocommerce-terms-and-conditions h3 {
	font-size: var(--text-body);
	margin: 1em 0 0.5em;
}

.mailchimp-newsletter label {
	display: flex;
    gap: 10px;
}

.mailchimp-newsletter span {
	color: var(--text-mid);
    font-size: var(--text-s);
}

.mailchimp-newsletter input[type="checkbox"] {
	margin-top: 2px;
}


/* ═══════════════════════════════════════════════
 * Stripe UPE payment box — visual polish
 *
 * WC + Stripe render unstyled markup inside .payment_box.
 * This tidies the test-mode banner, saved-cards radio list,
 * the Stripe Elements iframe wrapper, and the "save payment
 * method" checkbox row. Forces light color-scheme so Stripe's
 * auto-appearance sampler picks up light values.
 * ═══════════════════════════════════════════════ */

.payment_box.payment_method_stripe {
	color-scheme: light;
	background: #fff;
	padding: 0;
	margin-top: 10px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-dark);
}

/* Test-mode "use card 4242…" banner */
.wc-stripe-payment-method-instruction {
	background: rgba(64, 184, 224, 0.08);
	border: 1px solid rgba(64, 184, 224, 0.22);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: var(--text-xs);
	color: #155e75;
	line-height: 1.5;
}

.wc-stripe-payment-method-instruction strong {
	color: #0e7490;
}

.wc-stripe-payment-method-instruction a {
	color: var(--accent);
	text-decoration: underline;
}

.wc-stripe-copy-test-number {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--white);
	border: 1px solid rgba(64, 184, 224, 0.35);
	border-radius: 5px;
	padding: 2px 7px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: var(--text-xs);
	color: var(--text-dark);
	cursor: pointer;
	margin: 0 2px;
}

.wc-stripe-copy-test-number:hover {
	border-color: var(--cyan);
}

/* Saved payment methods radio list */
.payment_method_stripe ul.woocommerce-SavedPaymentMethods {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.weo-checkout__sidebar .payment_method_stripe ul.woocommerce-SavedPaymentMethods {
	margin: 0;
}

.payment_method_stripe ul.woocommerce-SavedPaymentMethods li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--white);
	border: 1px solid rgba(26, 16, 40, 0.1);
	border-radius: 8px;
	margin: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
	cursor: pointer;
}

.payment_method_stripe ul.woocommerce-SavedPaymentMethods li:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-light);
	font-weight: 600;
}

.payment_method_stripe ul.woocommerce-SavedPaymentMethods li:has(input:checked) label {
	color: var(--accent)!important;
}

.payment_method_stripe ul.woocommerce-SavedPaymentMethods input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.payment_method_stripe ul.woocommerce-SavedPaymentMethods label {
	margin: 0;
	font-size: var(--text-s);
	color: var(--text-dark);
	cursor: pointer;
	flex: 1;
}

/* Stripe Elements iframe wrapper — light background so the iframe
 * sits on a white surface regardless of Stripe's auto-appearance.
 */
.wc-stripe-upe-form {
	background: var(--white);
	border: 1px solid rgba(26, 16, 40, 0.12);
	border-radius: 8px;
	padding: 10px 12px;
	margin: 0;
}

.wc-stripe-upe-element {
	margin: 0;
}

.wc-stripe-upe-form #wc-stripe-upe-errors {
	color: var(--error);
	font-size: var(--text-xs);
	margin-top: 6px;
}

/* "Save payment method to my account" row */
.woocommerce-SavedPaymentMethods-saveNew {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	font-size: var(--text-s);
	color: var(--text-mid);
}

.woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
	width: 18px!important;
	height: 18px;
	accent-color: var(--accent);
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
	margin-top: 2px;
}

.woocommerce-SavedPaymentMethods-saveNew label {
	margin: 0;
	cursor: pointer;
}


/* ═══════════════════════════════════════════════
 * Item 17: Confirmation "Your details" card
 *
 * Bespoke replacement for WC's woocommerce-customer-details
 * (removed in item 16 by stripping the woocommerce_thankyou
 * action call).
 * ═══════════════════════════════════════════════ */

.weo-confirmation__customer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 14px;
}

.weo-confirmation__customer-block strong {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-mid);
	margin-bottom: 6px;
}

.weo-confirmation__customer-block p {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	margin: 0;
	line-height: 1.55;
}

/* ═══════════════════════════════════════════
   My-Account login funnel
   ═══════════════════════════════════════════

   The /my-account/ login, /lost-password/, and /lost-password/?show-reset-form=true
   pages all render via the WooCommerce shortcode for logged-out users.
   They share `.weo-myaccount-login` on <body> (added by weo_commerce_body_class
   in inc/setup.php) and pick up the simplified .checkout-header chrome
   via the parallel `.weo-checkout-page` body class. */

/* The simplified `.checkout-header` is `position: sticky; top: 0` so it
 * occupies its own space at the top of the document — no padding-top
 * offset on main#content needed (would double-shift the content).
 *
 * Body bg is also set to surface so any layout gap (e.g. before
 * the first `<div class="woocommerce">` wrapper) doesn't reveal the
 * global midnight bg between the white header and the light content. */
body.weo-myaccount-login {
	background: var(--surface);
}

.weo-myaccount-login main#content {
	padding-bottom: 80px;
	background: var(--surface);
	min-height: calc(100vh - var(--nav-height));
}

/* Hide WC's default page title block — our templates render a contextual
 * <h1> per state ("Welcome back" / "Forgot your password?" / "Set a new
 * password") so the WP page title would duplicate it. */
.weo-myaccount-login .entry-header,
.weo-myaccount-login .page-header,
.weo-myaccount-login .page-title {
	display: none;
}

.weo-login {
	max-width: 480px;
	margin: 56px auto 0;
	padding: 0 var(--space-md);
}

.weo-login__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-h2);
	color: var(--text-dark);
	margin: 0 0 10px;
	text-align: center;
	letter-spacing: -0.01em;
}

.weo-login__subtitle {
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-mid);
	text-align: center;
	margin: 0 0 28px;
	line-height: 1.5;
}

.weo-login__card {
	background: var(--white);
	border-radius: 14px;
	border: 1px solid rgba(26, 16, 40, 0.06);
	box-shadow: 0 1px 3px rgba(26, 16, 40, 0.04), 0 8px 24px rgba(26, 16, 40, 0.04);
	padding: 28px;
}

.weo-login__form {
	margin: 0;
}

.weo-login__row {
	margin: 0 0 16px;
}

.weo-login__row label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--text-dark);
}

/* Stripe-style input chrome — matches Phase 49's account-card rule
 * (woocommerce.css:3597-3624). Kept scoped to `.weo-login__card` so the
 * two contexts can evolve independently (per the Phase 49 convention:
 * any new card that introduces text inputs gets its own selector group). */
.weo-login__card input[type="email"],
.weo-login__card input[type="password"],
.weo-login__card input[type="text"],
.weo-login__card .input-text {
	width: 100%;
	padding: 12px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	background-color: var(--white);
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.02);
	transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.weo-login__card input[type="email"]:focus,
.weo-login__card input[type="password"]:focus,
.weo-login__card input[type="text"]:focus,
.weo-login__card .input-text:focus {
	outline: 0;
	border-color: var(--text-dark);
	box-shadow:
		0 1px 1px rgba(0, 0, 0, 0.03),
		0 3px 6px rgba(0, 0, 0, 0.02),
		0 0 0 3px hsla(265, 43%, 11%, 0.25),
		0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

/* Lost-password link sits between password field and submit — pulled
 * tight to the bottom of the password row so it reads as "associated
 * with the field above". */
.weo-login__lost-link-row {
	margin: -8px 0 16px;
	text-align: right;
}

.weo-login__lost-link {
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
	text-decoration: underline;
	transition: color 0.15s ease;
}

.weo-login__lost-link:hover,
.weo-login__lost-link:focus-visible {
	color: var(--accent);
}

.weo-login__remember-row {
	margin: 0 0 18px;
}

.weo-login__remember {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-dark);
}

.weo-login__remember-input {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.weo-login__submit {
	width: 100%;
	margin-top: 4px;
}

/* Pill strength meter sits between the two password fields on
 * form-reset-password.php. Pull the spacing tight against the
 * field above. */
.weo-login__card .weo-pwmeter {
	margin-top: -6px;
	margin-bottom: 16px;
}

/* Confirmation card body (lost-password-confirmation.php) — no form,
 * just prose. Wider letter spacing + slightly larger leading reads
 * better than form-field padding. */
.weo-login__confirmation-text {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-body);
	color: var(--text-dark);
	line-height: 1.6;
}

.weo-login__footer-note {
	margin: 22px 0 0;
	text-align: center;
	font-family: var(--font-body);
	font-size: var(--text-s);
	color: var(--text-mid);
}

.weo-login__footer-link {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease;
}

.weo-login__footer-link:hover,
.weo-login__footer-link:focus-visible {
	color: var(--accent-hover);
	text-decoration: underline;
}

.weo-login__footer-link--back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-mid);
	transition: color 0.15s ease, transform 0.15s ease;
}

.weo-login__footer-link--back:hover,
.weo-login__footer-link--back:focus-visible {
	color: var(--accent);
	transform: translateX(-2px);
	text-decoration: none;
}

@media (max-width: 559px) {
	.weo-login {
		margin-top: 24px;
	}
	.weo-login__card {
		padding: 20px;
	}
	.weo-login__title {
		font-size: var(--text-h3);
	}
}
