/**
 * ZYMARG OS — WooCommerce: My Account (Redesign v3.6.5)
 * -----------------------------------------------------------------------------
 * A premium, app-like My Account experience with a fixed sidebar, section
 * panels, card grids, tab bars, toggle switches, and a mobile bottom nav.
 * Uses the ZYMARG design-token system (--color-*, --zymarg-*) where possible,
 * with hardcoded values from the mockup for bespoke elements.
 *
 * @package ZYMARG_OS
 */

/* ==========================================================================
   Base resets scoped to the account page
   ========================================================================== */
.zymarg-myaccount-wrap *,
.zymarg-myaccount-wrap *::before,
.zymarg-myaccount-wrap *::after {
	box-sizing: border-box;
}

/* On the My Account page, the parent wrappers (.zymarg-container, .zymarg-entry,
   .zymarg-entry__content) must be full-width with no padding so our fixed
   sidebar + fluid main layout can own the full viewport. These overrides are
   scoped to body.zymarg-myaccount-active so they only fire on the account page. */
body.zymarg-myaccount-active .zymarg-container,
body.zymarg-myaccount-active .zymarg-site-content {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}
body.zymarg-myaccount-active .zymarg-entry,
body.zymarg-myaccount-active .zymarg-entry__content,
body.zymarg-myaccount-active .zymarg-main,
body.zymarg-myaccount-active .zymarg-woo-main {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

/* The wrapper itself is simply full width — no 50vw tricks needed because
   the parent is already full-width thanks to the body-class overrides above. */
.zymarg-myaccount-wrap {
	width: 100%;
}
/* Desktop: flex row so the sticky sidebar + main sit side by side and the
   sidebar stops at content end (never covers the footer). Mobile is left
   untouched — the sidebar stays a fixed slide-in overlay. */
@media (min-width: 768px) {
	.zymarg-myaccount-wrap {
		display: flex;
		align-items: flex-start;
	}
}


/* ==========================================================================
   Sidebar
   ========================================================================== */
.zymarg-acc-sidebar {
	display: none;
	flex-direction: column;
	padding: 24px 14px;
	gap: 4px;
	height: 100dvh;
	width: 260px;
	position: fixed;
	left: 0;
	top: 0;
	background: var(--color-surface-low, #eff3ff);
	border-right: 1px solid var(--color-outline-variant, #d6c0d2);
	z-index: 40;
	overflow-y: auto;
}
@media (min-width: 768px) {
	.zymarg-acc-sidebar {
		display: flex;
		position: sticky;
		top: 0;
		height: 100dvh;
		flex-shrink: 0;
		border-top-right-radius: 18px;
		border-bottom-right-radius: 18px;
	}
}
.zymarg-acc-sidebar::-webkit-scrollbar { width: 4px; }
.zymarg-acc-sidebar::-webkit-scrollbar-thumb { background: var(--color-outline-variant, #d6c0d2); border-radius: 4px; }


/* Sidebar user header */
.zymarg-acc-sidebar .user-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
	padding: 0 8px;
	position: relative;
}
.zymarg-acc-sidebar .user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--color-outline-variant, #d6c0d2);
	flex-shrink: 0;
	position: relative;
}
.zymarg-acc-sidebar .user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.zymarg-acc-sidebar .user-avatar-upload {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-primary, #C518C5);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 2px solid var(--color-surface-low, #eff3ff);
}
.zymarg-acc-sidebar .user-avatar-upload svg {
	width: 16px;
	height: 16px;
	color: #fff;
}

/* Once the user has uploaded a real photo, fade the camera overlay out so
   the avatar reads clean. The .has-photo class is added server-side on
   render (when _zymarg_avatar_url user meta exists) and client-side
   immediately after a successful upload (see assets/js/avatar-upload.js).
   On hover/focus, the overlay fades back in so the user can always change
   or remove their photo. On touch devices (no hover capability), the
   overlay stays visible — the clean-look benefit doesn't apply on touch. */
.zymarg-acc-sidebar .user-avatar-upload {
	transition: opacity 0.18s ease, visibility 0.18s ease;
}
.zymarg-acc-sidebar .user-avatar.has-photo .user-avatar-upload {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.zymarg-acc-sidebar .user-avatar.has-photo:hover .user-avatar-upload,
.zymarg-acc-sidebar .user-avatar.has-photo:focus-within .user-avatar-upload {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
@media (hover: none) {
	/* No-op on touch devices — see assets/js/avatar-upload.js for the
	   tap-on-avatar handler that opens the picker directly when a photo
	   is set, so mobile users get the same clean-look benefit (camera
	   stays hidden until the user actually wants to change/remove). */
}

/* Remove-photo option in the picker: red text + red icon for danger affordance. */
.zymarg-acc-sidebar .avatar-picker-opt--remove {
	color: #c92a2a;
}
.zymarg-acc-sidebar .avatar-picker-opt--remove svg {
	color: #c92a2a;
}
.zymarg-acc-sidebar .avatar-picker-opt--remove:hover {
	background: #fff5f5;
}

/* Avatar source picker (Camera / Gallery popup) — shows right of username */
.user-avatar-picker {
	position: fixed;
	top: 80px;
	left: 70px;
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
	padding: 10px;
	z-index: 9999;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.user-avatar-picker {
		top: 80px;
		left: 50%;
		transform: translateX(-50%);
	}
}
.zymarg-acc-sidebar .avatar-picker-opt {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 12px;
	border: none;
	background: transparent;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-body, #131b2e);
	cursor: pointer;
	transition: background .15s;
}
.zymarg-acc-sidebar .avatar-picker-opt:hover {
	background: var(--color-surface-container, #eaedff);
}
.zymarg-acc-sidebar .avatar-picker-opt svg {
	width: 16px;
	height: 16px;
	color: var(--color-primary, #C518C5);
}
.zymarg-acc-sidebar .user-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-primary, #6f007b);
}
.zymarg-acc-sidebar .user-role {
	font-size: 11px;
	color: var(--color-text-muted, #524250);
	margin-top: 1px;
}


/* Sidebar navigation */
.zymarg-acc-sidebar nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.zymarg-acc-sidebar .nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text-muted, #524250);
	transition: all .2s ease;
	cursor: pointer;
	text-decoration: none;
}
.zymarg-acc-sidebar .nav-link:hover {
	color: var(--color-primary, #6f007b);
	background: var(--color-surface-container, #dde9ff);
}
.zymarg-acc-sidebar .nav-link:hover svg { color: var(--color-primary, #6f007b); }
.zymarg-acc-sidebar .nav-link:hover span:last-child { transform: translateX(2px); }
.zymarg-acc-sidebar .nav-link span:last-child { transition: transform .2s ease; }
.zymarg-acc-sidebar .nav-link svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--color-text-muted, #524250);
	transition: color .2s;
}
.zymarg-acc-sidebar .nav-link.active {
	background: var(--zym-color-button-pop);
	color: var(--zym-button-text);
	font-weight: 700;
}
.zymarg-acc-sidebar .nav-link.active svg { color: var(--color-primary, #7d3582); }
.zymarg-acc-sidebar .nav-link .zymarg-nav-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	margin-left: auto;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--zym-color-danger, #e0245e);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	box-shadow: none;
}
.zymarg-acc-sidebar .nav-link .zymarg-nav-count[hidden] { display: none; }
.zymarg-acc-sidebar .nav-link.active .zymarg-nav-count {
	background: var(--zym-color-danger, #e0245e);
	color: #fff;
	box-shadow: none;
}
.zymarg-acc-sidebar .nav-link:hover .zymarg-nav-label { transform: translateX(2px); }
.zymarg-acc-sidebar .nav-link .zymarg-nav-label { transition: transform .2s ease; }
.zymarg-acc-sidebar .nav-divider {
	border: 0;
	border-top: 1px solid var(--color-outline-variant, #d6c0d2);
	margin: 10px 0;
}

/* Dashboard row: home icon links to homepage, text links to dashboard */
.zymarg-acc-sidebar .nav-link-row {
	display: flex;
	align-items: center;
	gap: 0;
	border-radius: 10px;
	transition: background .15s;
}
.zymarg-acc-sidebar .nav-link-row.active {
	background: var(--color-primary-container, #faf5fb);
}
.zymarg-acc-sidebar .nav-link-home-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	color: var(--color-primary, #C518C5);
	transition: background .15s, color .15s;
	flex-shrink: 0;
}
.zymarg-acc-sidebar .nav-link-home-icon:hover {
	background: var(--color-primary, #C518C5);
	color: #fff;
}
.zymarg-acc-sidebar .nav-link-row .nav-link {
	padding-left: 0;
}

.zymarg-acc-sidebar .nav-link.logout:hover {
	color: #ba1a1a;
	background: #ffdad6;
}
.zymarg-acc-sidebar .nav-link.logout:hover svg { color: #ba1a1a; }


/* ==========================================================================
   Main Layout
   ========================================================================== */
.zymarg-acc-main {
	margin-left: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
}
@media (min-width: 768px) {
	.zymarg-acc-main { margin-left: 0; flex: 1; min-width: 0; overflow: hidden; }
}
.zymarg-acc-main .orb-1 {
	position: fixed;
	top: -5%;
	left: -5%;
	width: 50vw;
	height: 50vw;
	background: transparent;
	filter: blur(60px);
	pointer-events: none;
	z-index: 0;
}
.zymarg-acc-main .orb-2 {
	position: fixed;
	bottom: -5%;
	right: -5%;
	width: 60vw;
	height: 60vw;
	background: transparent;
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
}

/* My Account orbs are LIGHT-MODE-OFF by default for a clean flat-white look.
   They reappear in dark mode (explicit + auto-on-dark-OS) where the soft
   purple glow gives the dark UI atmospheric depth. Pattern matches the
   selectors tokens/dark.css uses so the auto-mode edge case is handled. */
.zymarg-acc-main .orb-1,
.zymarg-acc-main .orb-2 {
	display: none;
}
[data-theme="dark"] .zymarg-acc-main .orb-1,
[data-theme="dark"] .zymarg-acc-main .orb-2 {
	display: block;
}
@media (prefers-color-scheme: dark) {
	[data-theme="auto"] .zymarg-acc-main .orb-1,
	[data-theme="auto"] .zymarg-acc-main .orb-2 {
		display: block;
	}
}
.zymarg-acc-main .main-content {
	position: relative;
	z-index: 10;
	flex: 1;
	width: 100%;
	/* No 960px cap and no auto-centering: the column used to float in the middle
	   of the main area on wide screens but sit flush against the sidebar on
	   laptops, so panel alignment changed with the viewport. One flat gutter now
	   applies at every width. */
	max-width: none;
	margin: 0;
	padding: 16px;
}
@media (min-width: 768px) {
	.zymarg-acc-main .main-content { padding: 24px; }
}


/* ==========================================================================
   Section Panels
   ========================================================================== */
.section-panel { display: none; }
.section-panel.active { display: block; }
.section-panel .panel-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--color-surface-container, #eaedff);
}
.section-panel .panel-header svg {
	color: var(--color-primary, #C518C5);
	width: 26px;
	height: 26px;
}

/* Clickable home icon in Dashboard panel header */
.section-panel .panel-header-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	color: var(--color-primary, #C518C5);
	transition: background .15s, color .15s, transform .15s;
	text-decoration: none;
}
.section-panel .panel-header-home:hover {
	background: var(--color-primary, #C518C5);
	color: #fff;
	transform: scale(1.1);
}
.section-panel .panel-header-home svg {
	width: 26px;
	height: 26px;
}
/* v5.16.10 / v5.16.11 — hide the panel-header block entirely on every
   section (Dashboard, Orders, Wishlist, Recently Viewed, Addresses, Profile,
   Notifications, Reviews, Vouchers, Returns & Refunds, Support, Security).
   The panel-header carried three things that all read as visual noise once
   the sidebar's active state already tells you which section you're on:
     1. the section-name h2                       (5.16.10)
     2. the small icon on its left                (5.16.11)
     3. the 2px divider under the whole header    (5.16.11)

   Handled here in three linked rules:

   Rule 1 — Zero out the panel-header's own box.
   Removes the 2px border-bottom (the "line under the section name") and
   the 1rem padding + 1.5rem margin that gave it the spacer role. The
   .panel-header itself keeps `display: flex` so it stays valid layout;
   with all its in-flow children hidden it collapses to zero height. */
.section-panel .panel-header {
	padding-bottom: 0 !important;
	border-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Rule 2 — hide the section icon (svg) and, on Dashboard, the
   "Go to Homepage" home-icon button that sat in the same spot. Both were
   decorative once the section name they framed is invisible. `display: none`
   is correct here because they carry no accessible name — the svg has no
   aria-label and the home link is redundant with the site nav.

   NB: this rule doesn't touch svg elements anywhere else on the page —
   it's scoped to a direct-child svg of a .panel-header on My Account. */
.section-panel .panel-header > svg,
.section-panel .panel-header-home {
	display: none !important;
}

/* Rule 3 — the h2 itself: kept in the DOM and in the accessibility tree
   via the .screen-reader-text clip pattern so screen readers still hear
   "Support" / "Orders" / etc. and the page outline stays valid, but nothing
   paints. `position: absolute` takes the h2 out of normal flow so the
   flex-parent panel-header collapses to zero height cleanly.

   Kept commented for context so the next reader can see what the visible
   size was, and revert to visible with a one-line CSS change. */
.section-panel .panel-header h2 {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	/* was: font-size: 24px; font-weight: 700; color: var(--color-text-body, #131b2e); margin: 0; */
	/* was: @media (min-width: 768px) { font-size: 28px; } */
}
.section-panel .panel-desc {
	font-size: 14px;
	color: var(--color-text-muted, #534152);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}


/* ==========================================================================
   Cards Grid + Action Cards
   ========================================================================== */
.cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 1.5rem;
}
@media (min-width: 480px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.action-card {
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: 12px;
	padding: 1.25rem;
	cursor: pointer;
	transition: all .2s ease;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	/* v5.16.8 — text-align:start so <button class="action-card"> matches
	   <a class="action-card">. Browsers default <button> to text-align:center,
	   and .ac-label/.ac-sub are block-level divs that inherit it, so the
	   Contact Support tile rendered its text centred within its column while
	   every other action-card (all anchors) rendered left-aligned. Applies to
	   the tile itself, not to the inner divs, so any future tile using this
	   class is normalised at the source. */
	text-align: start;
}
.action-card:hover {
	background: #fef6ff;
	border-color: var(--color-primary, #C518C5);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(197, 24, 197,.08);
}
.action-card .ac-icon {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--color-surface-container, #eaedff);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.action-card .ac-icon svg { width: 18px; height: 18px; color: var(--color-primary, #6f007b); }
/* v5.16.9 — one-notch bump from 13px to 14px so the tile title reads well
   next to the 38x38 icon square, especially when the tile has no subtitle
   (Contact Support after 5.16.8). Matching change in the paired VD 1.46.11
   .zvd-support-tile__title keeps the two Support surfaces identical. */
.action-card .ac-label { font-size: 14px; font-weight: 600; color: var(--color-text-body, #131b2e); }
.action-card .ac-sub { font-size: 11px; color: var(--color-text-muted, #534152); margin-top: 2px; }


/* ==========================================================================
   Status Badges
   ========================================================================== */
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
}
/*
 * Order / return status chips.
 *
 * These were twelve hardcoded Bootstrap-era pairs (#d4edda green, #cce5ff blue,
 * #fff3cd amber, #f8d7da red) — the last un-tokenised colours in the account
 * area, and the reason a "Delivered" chip looked like it came from a different
 * product than the rest of the screen.
 *
 * Now grouped into three brand-safe families instead of six random hues:
 *   settled / done  → brand accent
 *   in progress     → --zym-color-warning
 *   failed          → --zym-color-danger
 *
 * Every chip prints its own status text ("Delivered", "Cancelled"), so meaning
 * never depends on the hue alone. --color-primary is used rather than
 * --zym-color-primary because it is the dark-aware channel.
 */
.status-badge.delivered,
.status-badge.completed,
.status-badge.approved,
.status-badge.shipped,
.status-badge.refunded {
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	color: var(--color-primary);
}

.status-badge.processing,
.status-badge.pending,
.status-badge.on-hold,
.status-badge.requested {
	background: color-mix(in srgb, var(--zym-color-warning) 12%, transparent);
	color: var(--zym-color-warning);
}

.status-badge.cancelled,
.status-badge.failed,
.status-badge.rejected {
	background: color-mix(in srgb, var(--zym-color-danger) 10%, transparent);
	color: var(--zym-color-danger);
}


/* ==========================================================================
   Forms
   ========================================================================== */
.zymarg-myaccount-wrap .form-group { margin-bottom: 1rem; }
.zymarg-myaccount-wrap .form-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-text-muted, #524250);
	margin-bottom: 4px;
	letter-spacing: .03em;
}
.zymarg-myaccount-wrap .form-group input,
.zymarg-myaccount-wrap .form-group select,
.zymarg-myaccount-wrap .form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 8px;
	font-size: 14px;
	color: var(--color-text-body, #131b2e);
	background: var(--color-surface-lowest, #fff);
	transition: border-color .2s;
}
.zymarg-myaccount-wrap .form-group input:focus,
.zymarg-myaccount-wrap .form-group select:focus,
.zymarg-myaccount-wrap .form-group textarea:focus {
	outline: none;
	border-color: var(--color-primary, #C518C5);
	box-shadow: 0 0 0 3px rgba(197, 24, 197,.08);
}
.zymarg-myaccount-wrap .form-group textarea {
	min-height: 80px;
	resize: vertical;
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.zymarg-myaccount-wrap .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: var(--zym-button-padding-y-medium) var(--zym-button-padding-x-medium);
	border-radius: var(--zym-radius-button);
	font-size: var(--zym-button-font-size-medium);
	font-weight: var(--zym-button-font-weight);
	cursor: pointer;
	transition: all .2s;
	border: none;
	text-decoration: none;
}
.zymarg-myaccount-wrap .btn-primary {
	background: var(--zym-color-button-pop);
	color: var(--zym-button-text);
}
.zymarg-myaccount-wrap .btn-primary:hover {
	background: var(--zym-button-theme-glow-bg);
	color: var(--zym-button-theme-glow-text);
	box-shadow: var(--zym-button-theme-glow-shadow);
}
.zymarg-myaccount-wrap .btn-outline {
	background: transparent;
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	color: var(--color-text-muted, #524250);
}
.zymarg-myaccount-wrap .btn-outline:hover {
	border-color: var(--color-primary, #C518C5);
	color: var(--color-primary, #C518C5);
}
.zymarg-myaccount-wrap .btn-danger { background: #ba1a1a; color: #fff; }
.zymarg-myaccount-wrap .btn-danger:hover { background: #9c1515; }
.zymarg-myaccount-wrap .btn-sm { padding: 7px 14px; font-size: 12px; }


/* ==========================================================================
   Toggle Switch
   ========================================================================== */
.toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-surface-container, #eaedff);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 14px; font-weight: 500; color: var(--color-text-body, #131b2e); }
.toggle-sub { font-size: 11px; color: var(--color-text-muted, #534152); margin-top: 2px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider {
	position: absolute;
	inset: 0;
	background: var(--color-outline-variant, #d6c0d2);
	border-radius: 24px;
	transition: .3s;
	cursor: pointer;
}
.toggle-switch .slider::before {
	content: '';
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: .3s;
}
.toggle-switch input:checked + .slider { background: var(--color-primary, #C518C5); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }

/* --------------------------------------------------------------------------
   Buyer notification preferences — desktop matrix + mobile accordion.
   The desktop matrix remains unchanged. Phones get a separate, non-scrolling
   representation so each notification can expand into named channel toggles.
   -------------------------------------------------------------------------- */
.zymarg-preferences-mobile { display: none; }

@media (max-width: 767px) {
	.zymarg-preferences-card { overflow: visible !important; }
	.zymarg-preferences-inner {
		width: 100% !important;
		min-width: 0 !important;
	}
	.zymarg-preferences-desktop { display: none !important; }
	.zymarg-preferences-mobile { display: block; }
	.zymarg-preference-mobile-row {
		border-bottom: 1px solid var(--color-surface-container, #eaedff);
	}
	.zymarg-preference-mobile-row:first-child {
		border-top: 1px solid var(--color-surface-container, #eaedff);
	}
	.zymarg-preference-mobile-row summary {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 14px 2px;
		cursor: pointer;
		list-style: none;
	}
	.zymarg-preference-mobile-row summary::-webkit-details-marker { display: none; }
	.zymarg-preference-mobile-row summary:focus-visible {
		outline: 2px solid var(--color-primary, #C518C5);
		outline-offset: -2px;
		border-radius: 8px;
	}
	.zymarg-preference-mobile-summary-text {
		display: flex;
		flex: 1 1 auto;
		min-width: 0;
		flex-direction: column;
		gap: 3px;
	}
	.zymarg-preference-mobile-summary-text strong {
		font-size: 14px;
		line-height: 1.35;
		color: var(--color-text-body, #131b2e);
	}
	.zymarg-preference-mobile-summary-text > span {
		font-size: 11px;
		line-height: 1.4;
		color: var(--color-text-muted, #534152);
	}
	.zymarg-preference-mobile-status {
		flex: 0 0 auto;
		padding: 4px 8px;
		border-radius: 999px;
		background: var(--color-surface-container, #eaedff);
		color: var(--color-text-muted, #534152);
		font-size: 10px;
		font-weight: 700;
		white-space: nowrap;
	}
	.zymarg-preference-mobile-chevron {
		flex: 0 0 auto;
		width: 10px;
		height: 10px;
		margin: -4px 3px 0 4px;
		color: var(--color-text-muted, #534152);
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s ease;
	}
	.zymarg-preference-mobile-row[open] .zymarg-preference-mobile-chevron {
		margin-top: 4px;
		transform: rotate(225deg);
	}
	.zymarg-preference-mobile-controls {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0 2px 12px;
	}
	.zymarg-preference-mobile-control {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-height: 48px;
		padding: 9px 0;
		border-top: 1px solid color-mix(in srgb, var(--color-outline-variant, #d6c0d2) 55%, transparent);
		font-size: 13px;
		font-weight: 600;
		color: var(--color-text-body, #131b2e);
		cursor: pointer;
	}
	.zymarg-preference-mobile-control.is-unavailable {
		color: var(--color-text-muted, #534152);
		cursor: default;
		font-weight: 500;
	}
}


/* ==========================================================================
   Tabs
   ========================================================================== */
.tab-bar {
	display: flex;
	gap: 4px;
	margin-bottom: 1.5rem;
	overflow-x: auto;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--color-surface-container, #eaedff);
}
 .tab-bar button {
	padding: var(--zym-button-padding-y-medium) var(--zym-button-padding-x-medium);
	border-radius: var(--zym-radius-button);
	font-size: var(--zym-button-font-size-medium);
	font-weight: var(--zym-button-font-weight);
	letter-spacing: var(--zym-button-letter-spacing);
	line-height: 1;
	color: var(--zym-color-text);
	border: 1px solid transparent;
	background: transparent;
	white-space: nowrap;
	transition: background-color var(--zym-motion-standard) var(--zym-ease), color var(--zym-motion-standard) var(--zym-ease), box-shadow var(--zym-motion-standard) var(--zym-ease), transform var(--zym-motion-standard) var(--zym-ease);
	cursor: pointer;
}
.tab-bar button.active {
	color: var(--zym-button-text);
	border-color: transparent;
	background: var(--zym-color-button-pop);
	box-shadow: none;
}
.tab-bar button:not(.active):hover {
	color: var(--zym-button-theme-glow-text);
	background: var(--zym-button-theme-glow-bg);
	box-shadow: var(--zym-button-theme-glow-shadow);
	transform: translateY(-1px);
}
.tab-bar button.active:hover {
	color: var(--zym-button-text);
	background: var(--zym-color-button-pop);
	box-shadow: var(--zym-button-theme-glow-shadow);
	transform: translateY(-1px);
}

/* v5.38.1 — Tab count badges (e.g. Orders: All/Processing/Shipped/Delivered/Cancelled),
   matching the numbered pill badges already shown on the Vendor Dashboard's Orders tabs. */
.zymarg-myaccount-wrap .tab-bar button[data-count]::after {
	content: attr(data-count);
	display: inline-block;
	min-width: 18px;
	height: 18px;
	margin-left: 6px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--zym-color-danger, #e0245e);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	vertical-align: middle;
}
.zymarg-myaccount-wrap .tab-bar button.active[data-count]::after {
	background: var(--zym-color-danger, #e0245e);
	color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }


/* ==========================================================================
   Dashboard Cards (top row)
   ========================================================================== */
.dash-cards {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 4px 0 8px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	cursor: grab;
}
.dash-cards.is-grabbing {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}
.dash-cards.is-grabbing .dash-card {
	pointer-events: none;
}
.dash-cards::-webkit-scrollbar { height: 0; display: none; }
.dash-cards { -ms-overflow-style: none; scrollbar-width: none; }
@media (min-width: 1200px) {
	.dash-cards { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; scroll-snap-type: none; cursor: default; }
}
.dash-card {
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: 12px;
	padding: 1.25rem;
	cursor: pointer;
	transition: all .25s ease;
	min-width: 160px;
	flex-shrink: 0;
	scroll-snap-align: start;
}
.dash-card:hover {
	transform: translateY(-3px);
	background: #fef6ff;
	border-color: var(--color-primary, #C518C5);
	box-shadow: 0 8px 24px rgba(197, 24, 197,.08);
}
/* Disable hover lift on touch devices — prevents the card from jumping
   upward on tap and clipping its top edge off-screen. */
@media (hover: none) {
	.dash-card:hover {
		transform: none;
	}
}
.dash-card.selected {
	background: var(--color-primary-fixed, #ffd6fb) !important;
	border-color: var(--color-primary, #C518C5) !important;
	box-shadow: 0 6px 20px rgba(197, 24, 197,.12);
}
.dash-card.selected .dc-icon { background: #fff; }
.dash-card.selected .dc-icon svg { color: var(--color-primary, #C518C5); }
.dash-card.selected .dc-title { color: var(--color-on-primary-fixed, #36003d); }
.dash-card .dc-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--color-surface-container, #eaedff);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}
.dash-card .dc-icon svg { width: 20px; height: 20px; color: var(--color-primary, #6f007b); }
.dash-card .dc-title { font-size: 14px; font-weight: 600; color: var(--color-text-body, #131b2e); margin-bottom: 3px; }
.dash-card .dc-desc { font-size: 11px; color: var(--color-text-muted, #534152); line-height: 1.4; }


/* ==========================================================================
   Dashboard Inline Detail
   ========================================================================== */
.dash-detail {
	margin-top: 1.5rem;
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 8px 24px rgba(0,0,0,.04);
	position: relative;
	overflow: hidden;
}
.dash-detail .gradient-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--color-primary, #C518C5);
}
.dash-detail h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text-body, #131b2e);
	margin-bottom: 8px;
	margin-top: 8px;
}
.dash-detail p {
	font-size: 14px;
	color: var(--color-text-muted, #534152);
	line-height: 1.6;
	margin-bottom: 6px;
}


/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 1rem;
	color: var(--color-text-muted, #534152);
}
.empty-state svg { width: 48px; height: 48px; color: var(--color-outline-variant, #d6c0d2); margin-bottom: 12px; }
.empty-state p { font-size: 14px; margin-top: 8px; max-width: 320px; margin-inline: auto; text-wrap: balance; }

/* ==========================================================================
   Delete Account Modal
   ========================================================================== */
.zymarg-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	backdrop-filter: blur(4px);
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.zymarg-modal-overlay.is-open { display: flex; }
.zymarg-modal-box {
	background: var(--color-surface-lowest, #fff);
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	padding: 2rem;
	box-shadow: 0 24px 48px rgba(0,0,0,.15);
	animation: zymAccModalSlide .3s ease;
}
@keyframes zymAccModalSlide {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
.zymarg-modal-box .modal-header-danger {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}
.zymarg-modal-box .modal-header-danger svg {
	color: #ba1a1a;
	background: #ffdad6;
	border-radius: 50%;
	padding: 10px;
	width: 52px;
	height: 52px;
}
.zymarg-modal-box .modal-title {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: var(--color-text-body, #131b2e);
	margin-bottom: 1rem;
}
.zymarg-modal-box .modal-warnings {
	background: #fff5f5;
	border: 1px solid #fecaca;
	border-radius: 10px;
	padding: 1rem;
	margin-bottom: 1.25rem;
}
.zymarg-modal-box .warning-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
	color: #7f1d1d;
	line-height: 1.4;
}
.zymarg-modal-box .warning-item svg { flex-shrink: 0; color: #ba1a1a; margin-top: 1px; }
.zymarg-modal-box .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.zymarg-modal-box .modal-actions .btn { flex: 1; }


/* ==========================================================================
   Bottom Navigation (Mobile) — DISABLED
   The user doesn't want a dedicated mobile footer. Kept as comment for
   reference in case it's re-enabled later.
   ========================================================================== */

/* ==========================================================================
   Mobile Arrow Toggle + Sidebar Slide-in
   ========================================================================== */
.zymarg-acc-hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	z-index: 51;
	width: 28px;
	height: 48px;
	border-radius: 0 10px 10px 0;
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-left: none;
	box-shadow: 2px 2px 8px rgba(0,0,0,.08);
	cursor: pointer;
	color: var(--color-text-muted, #524250);
	transition: background .2s, color .2s;
}
.zymarg-acc-hamburger:hover {
	background: var(--color-primary, #C518C5);
	color: #fff;
}
.zymarg-acc-hamburger svg {
	width: 16px;
	height: 16px;
	transition: transform .3s ease;
}
/* Flip arrow to point left when sidebar is open */
.zymarg-acc-hamburger.is-open svg {
	transform: rotate(180deg);
}
@media (min-width: 768px) {
	.zymarg-acc-hamburger { display: none; }
}

/* Overlay behind sidebar on mobile */
.zymarg-acc-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.4);
	z-index: 39;
}
.zymarg-acc-overlay.is-open { display: block; }

/* Sidebar: slide in from left on mobile when .is-open is added */
@media (max-width: 767px) {
	.zymarg-acc-sidebar {
		display: flex;
		transform: translateX(-100%);
		transition: transform .3s ease;
	}
	.zymarg-acc-sidebar.is-open {
		transform: translateX(0);
	}
}

/* ==========================================================================
   Orders list items
   ========================================================================== */
.order-item {
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	transition: border-color .2s, box-shadow .2s;
}
.order-item:hover {
	border-color: var(--color-primary, #C518C5);
	box-shadow: 0 4px 12px rgba(197, 24, 197,.06);
}
.order-item .order-info { flex: 1; min-width: 0; }
.order-item .order-id { font-size: 13px; font-weight: 700; color: var(--color-text-body, #131b2e); }
.order-item .order-date { font-size: 11px; color: var(--color-text-muted, #534152); margin-top: 2px; }
.order-item .order-total { font-size: 13px; font-weight: 600; color: var(--color-primary, #C518C5); }
.order-item .order-actions { display: flex; gap: 8px; align-items: center; }

/* ==========================================================================
   Notification / preference panel card
   ========================================================================== */
.settings-card {
	max-width: 480px;
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 12px;
	padding: 1.25rem;
}

/* ==========================================================================
   WooCommerce form overrides (addresses, edit-account)
   ========================================================================== */
.zymarg-myaccount-wrap .woocommerce-EditAccountForm .form-row,
.zymarg-myaccount-wrap .woocommerce-address-fields .form-row {
	margin-bottom: 1rem;
}
.zymarg-myaccount-wrap .woocommerce-EditAccountForm label,
.zymarg-myaccount-wrap .woocommerce-address-fields label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--color-text-muted, #524250);
	margin-bottom: 4px;
	letter-spacing: .03em;
}
.zymarg-myaccount-wrap .woocommerce-EditAccountForm input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.zymarg-myaccount-wrap .woocommerce-address-fields input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.zymarg-myaccount-wrap .woocommerce-EditAccountForm select,
.zymarg-myaccount-wrap .woocommerce-address-fields select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 8px;
	font-size: 14px;
	color: var(--color-text-body, #131b2e);
	background: var(--color-surface-lowest, #fff);
	transition: border-color .2s;
}
.zymarg-myaccount-wrap .woocommerce-EditAccountForm input:focus,
.zymarg-myaccount-wrap .woocommerce-address-fields input:focus,
.zymarg-myaccount-wrap .woocommerce-EditAccountForm select:focus,
.zymarg-myaccount-wrap .woocommerce-address-fields select:focus {
	outline: none;
	border-color: var(--color-primary, #C518C5);
	box-shadow: 0 0 0 3px rgba(197, 24, 197,.08);
}
.zymarg-myaccount-wrap .woocommerce-EditAccountForm button[type="submit"],
.zymarg-myaccount-wrap .woocommerce-address-fields button[type="submit"],
.zymarg-myaccount-wrap .woocommerce button.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: var(--zym-button-padding-y-medium) var(--zym-button-padding-x-medium);
	border-radius: var(--zym-radius-button);
	font-size: var(--zym-button-font-size-medium);
	font-weight: var(--zym-button-font-weight);
	cursor: pointer;
	transition: all .2s;
	border: 1px solid transparent;
	background: var(--zym-color-button-pop);
	background-image: none;
	color: var(--zym-button-text);
	box-shadow: none;
}
.zymarg-myaccount-wrap .woocommerce-EditAccountForm button[type="submit"]:hover,
.zymarg-myaccount-wrap .woocommerce-address-fields button[type="submit"]:hover,
.zymarg-myaccount-wrap .woocommerce button.button:hover {
	background: var(--zym-button-theme-glow-bg);
	background-image: none;
	color: var(--zym-button-theme-glow-text);
	box-shadow: var(--zym-button-theme-glow-shadow);
	transform: translateY(-2px) scale(1.03);
}

/* ==========================================================================
   Hide default WooCommerce My Account nav + content wrapper
   (We render our own layout via the template override at
   woocommerce/myaccount/my-account.php — the default WC nav/content
   never renders for logged-in users. This rule is a safety net in case
   any plugin still injects the nav markup.)
   ========================================================================== */
.zymarg-myaccount-wrap .woocommerce-MyAccount-navigation { display: none !important; }
.zymarg-myaccount-wrap .woocommerce-MyAccount-content {
	width: 100%;
	float: none;
	padding: 0;
	margin: 0;
}

/* Remove any WooCommerce grid/flex from the wrapper — our .zymarg-acc-main
   handles the full layout. */
.zymarg-myaccount-wrap .woocommerce {
	display: block !important;
	grid-template-columns: unset !important;
}



/* ==========================================================================
   Address Book (custom multi-address, Bangladesh)
   ========================================================================== */
.zymarg-addr-add {
	display: inline-flex;
	align-items: center;
	margin-bottom: 1.25rem;
}

.zymarg-addr-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
@media (min-width: 600px) { .zymarg-addr-grid { grid-template-columns: repeat(2, 1fr); } }

/* Card — matches the action-card / dash-card look (white, rounded, bordered, hover-lift). */
.zymarg-addr-card {
	position: relative;
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: 12px;
	padding: 1.25rem;
	transition: all .2s ease;
}
.zymarg-addr-card:hover {
	background: #fef6ff;
	border-color: var(--color-primary, #C518C5);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(197, 24, 197,.08);
}
.zymarg-addr-card.is-default {
	border-color: var(--color-primary, #C518C5);
	box-shadow: 0 4px 16px rgba(197, 24, 197,.10);
}
.zymarg-addr-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--color-primary, #C518C5);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 3px 9px;
	border-radius: 20px;
}
.zymarg-addr-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--color-primary, #C518C5);
	background: var(--color-surface-container, #eaedff);
	padding: 2px 10px;
	border-radius: 6px;
	margin-bottom: 8px;
}
.zymarg-addr-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text-body, #131b2e);
	margin-bottom: 6px;
}
.zymarg-addr-lines {
	font-size: 13px;
	color: var(--color-text-muted, #534152);
	line-height: 1.6;
}
.zymarg-addr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--color-surface-container, #eaedff);
}


/* ==========================================================================
   SPA section loading state
   No mark, no spinner, no animation — the min-height simply reserves the
   panel so the page does not collapse and jump while the section swaps.
   ========================================================================== */
.zymarg-acc-main .main-content.is-loading {
	min-height: 300px;
}

/* Belt and braces. The Discovery Spark is no longer rendered anywhere in the
   account panels, and its stylesheet is no longer loaded here either — which
   is exactly why a stray one must be suppressed rather than left to chance.
   An unstyled `.zymarg-spark` has no width or height of its own, so its inner
   SVG expands to fill the container: a 48px mark becomes a full-width one and
   takes the panel layout with it. If an older cached account.js, a plugin, or
   a stale page cache injects one, this keeps the page intact. */
.zymarg-acc-main .zymarg-spark,
.zymarg-acc-loading .zymarg-spark {
	display: none !important;
}

/* ...and the chip it sits in. The Login & Security plugin renders its panel
   headings as `.zls-chip > .zymarg-spark`, where the chip is a 44x44 white
   box with a border, a radius and a shadow. Hiding only the spark above left
   that box standing: an empty rounded square to the left of "Active sessions"
   and "Recent activity". The chip exists solely to frame the spark, so with
   no spark it has nothing to frame. The plugin is left untouched; this is the
   theme declining to show a decoration it has already suppressed.
   `.zls-card__header` is flex with a gap, so hiding the chip closes the gap
   too and the title sits flush against the panel edge. */
.zymarg-acc-main .zls-chip {
	display: none !important;
}
.zymarg-acc-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	width: 100%;
}


/* ==========================================================================
   Logout Confirmation Modal
   ========================================================================== */
.zymarg-logout-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.zymarg-logout-modal[hidden] {
	display: none;
}

.zymarg-logout-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(28, 6, 30, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.zymarg-logout-modal.is-open .zymarg-logout-modal__overlay {
	opacity: 1;
}

.zymarg-logout-modal__dialog {
	position: relative;
	width: 380px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	border-radius: 24px;
	padding: 32px 28px;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15), 0 12px 24px -8px rgba(197, 24, 197,0.1);
	opacity: 0;
	transform: translateY(14px) scale(0.97);
	transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.zymarg-logout-modal.is-open .zymarg-logout-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.zymarg-logout-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	color: var(--color-on-surface-variant, #524250);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color 150ms ease, background-color 150ms ease;
}

.zymarg-logout-modal__close:hover {
	color: var(--color-primary, #C518C5);
	background: var(--color-surface-container, #eaedff);
}

.zymarg-logout-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: color-mix(in srgb, var(--color-primary, #C518C5) 10%, transparent);
	border-radius: 50%;
	color: var(--color-primary, #C518C5);
}

.zymarg-logout-modal__icon svg {
	width: 24px;
	height: 24px;
}

.zymarg-logout-modal__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-on-surface, #131b2e);
}

.zymarg-logout-modal__desc {
	margin: 0 0 24px;
	font-size: 0.875rem;
	color: var(--color-on-surface-variant, #524250);
	line-height: 1.5;
}

.zymarg-logout-modal__actions {
	display: flex;
	gap: 12px;
}

.zymarg-logout-modal__btn {
	flex: 1;
	padding: 12px 16px;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 12px;
	cursor: pointer;
	transition: background-color 150ms ease, transform 100ms ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
}

.zymarg-logout-modal__btn:active {
	transform: scale(0.97);
}

.zymarg-logout-modal__btn--cancel {
	background: var(--color-surface-container, #eaedff);
	color: var(--color-on-surface, #131b2e);
}

.zymarg-logout-modal__btn--cancel:hover {
	background: var(--color-surface-container-high, #e1e7ff);
}

.zymarg-logout-modal__btn--confirm {
	background: #dc2626;
	color: #ffffff;
}

.zymarg-logout-modal__btn--confirm:hover {
	background: #b91c1c;
}


/* Ensure logout modal is perfectly centered on all devices */
@media (max-width: 480px) {
	.zymarg-logout-modal__dialog {
		width: calc(100vw - 32px);
		padding: 28px 20px;
	}
}



/* ==========================================================================
   v4.11 — Vendor Dashboard Harmonization
   --------------------------------------------------------------------------
   Brings the customer My Account in line with the ZYMARG Vendor Dashboard
   visual language: a white sidebar, the gradient active-nav pill, a card-style
   user header, and a unified card radius / shadow / hover across every panel.

   This is a VISUAL layer only. It overrides appearance via higher-specificity
   selectors (prefixed with body.zymarg-myaccount-active) placed at the end of
   the cascade — no markup, scripts, endpoints, or behaviour are changed, so
   all existing functionality (SPA nav, avatar upload, forms, modals) is intact.
   ========================================================================== */

body.zymarg-myaccount-active {
	--zv-radius: 18px;
	--zv-shadow: 0 1px 2px rgba(19, 27, 46, .04), 0 8px 24px rgba(19, 27, 46, .06);
	--zv-grad: var(--zymarg-gradient);
}

/* ---- Sidebar: white surface like the vendor dashboard ---------------- */
body.zymarg-myaccount-active .zymarg-acc-sidebar {
	background: var(--color-surface-lowest, #fff);
	border-right: 1px solid var(--color-outline-variant, #d8bfd3);
	gap: 2px;
}

/* User header → card treatment that echoes the vendor "store card". */
body.zymarg-myaccount-active .zymarg-acc-sidebar .user-header {
	gap: 11px;
	margin: 0 0 14px;
	padding: 12px;
	border-radius: 14px;
	background: var(--color-surface-container, #eaedff);
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .user-avatar {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 0;
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .user-avatar img { border-radius: 12px; }
body.zymarg-myaccount-active .zymarg-acc-sidebar .user-avatar-upload {
	border-color: var(--color-surface-container, #eaedff);
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .user-name {
	color: var(--color-text-body, #131b2e);
	font-size: 14px;
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .user-role {
	color: var(--color-text-muted, #534152);
}

/* Nav links use navigation-specific geometry and shared Theme Glow state tokens. */
body.zymarg-myaccount-active .zymarg-acc-sidebar .nav-link {
	padding: 10px 12px;
	border-radius: var(--zym-radius-button);
	font-size: 14px;
	font-weight: 600;
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .nav-link:hover {
	background: var(--color-surface-container, #eaedff);
	color: var(--color-text-body, #131b2e);
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .nav-link:hover svg {
	color: var(--color-text-body, #131b2e);
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .nav-link.active {
	background: var(--zym-color-button-pop);
	color: var(--zym-button-text);
	font-weight: 700;
	box-shadow: none;
}
body.zymarg-myaccount-active .zymarg-acc-sidebar .nav-link.active svg {
	color: var(--color-on-primary, #fff);
}

/* ---- Unified card radius + shadow across every panel ----------------- */
body.zymarg-myaccount-active .dash-card,
body.zymarg-myaccount-active .action-card,
body.zymarg-myaccount-active .order-item,
body.zymarg-myaccount-active .settings-card,
body.zymarg-myaccount-active .zymarg-addr-card,
body.zymarg-myaccount-active .dash-detail {
	border-radius: var(--zv-radius);
	box-shadow: var(--zv-shadow);
}

/* Consistent hover lift, matching the vendor cards. */
body.zymarg-myaccount-active .dash-card:hover,
body.zymarg-myaccount-active .action-card:hover,
body.zymarg-myaccount-active .zymarg-addr-card:hover {
	transform: translateY(-2px);
	border-color: var(--color-primary, #C518C5);
	box-shadow: 0 10px 26px rgba(197, 24, 197, .16);
	background: var(--color-surface-lowest, #fff);
}
body.zymarg-myaccount-active .order-item:hover {
	border-color: var(--color-primary, #C518C5);
	box-shadow: 0 10px 26px rgba(197, 24, 197, .12);
}

/* Card icon tiles → match the vendor stat-icon radius. */
body.zymarg-myaccount-active .dash-card .dc-icon,
body.zymarg-myaccount-active .action-card .ac-icon {
	border-radius: 13px;
}

/* ---- Panel headings → deep brand purple like the vendor titles ------- */
body.zymarg-myaccount-active .section-panel .panel-header h2 {
	color: var(--color-on-primary-fixed, #36003d);
	font-weight: 800;
}
body.zymarg-myaccount-active .section-panel .panel-header {
	border-bottom-color: var(--color-outline-variant, #d8bfd3);
}


/* ==========================================================================
   v4.11.1 — Deepen the in-panel match to the Vendor Dashboard
   --------------------------------------------------------------------------
   The sidebar already matches; this brings the CONTENT that loads when you
   press a menu item (Dashboard cards, Orders, Support, Profile, etc.) fully
   in line with the dashboard look: gradient icon tiles, gradient primary
   buttons, pill status chips and brand-purple totals. Visual only.
   ========================================================================== */

/* Icon tiles inside cards → the signature gradient (like dashboard Quick Actions). */
body.zymarg-myaccount-active .dash-card .dc-icon,
body.zymarg-myaccount-active .action-card .ac-icon {
	background: var(--zv-grad);
}
body.zymarg-myaccount-active .dash-card .dc-icon svg,
body.zymarg-myaccount-active .action-card .ac-icon svg {
	color: var(--color-on-primary, #fff);
}
/* Keep the "selected" dashboard card readable (white tile on the pink fill). */
body.zymarg-myaccount-active .dash-card.selected .dc-icon {
	background: var(--color-surface-lowest, #fff);
}
body.zymarg-myaccount-active .dash-card.selected .dc-icon svg {
	color: var(--color-primary, #C518C5);
}

/* Primary actions consume the canonical ZYMARG Button System tokens. */
body.zymarg-myaccount-active .btn-primary,
body.zymarg-myaccount-active .woocommerce-EditAccountForm button[type="submit"],
body.zymarg-myaccount-active .woocommerce-address-fields button[type="submit"],
body.zymarg-myaccount-active .woocommerce button.button {
	background: var(--zym-color-button-pop);
	background-image: none;
	border: 1px solid transparent;
	color: var(--zym-button-text);
	padding: var(--zym-button-padding-y-medium) var(--zym-button-padding-x-medium);
	border-radius: var(--zym-radius-button);
	font-size: var(--zym-button-font-size-medium);
	font-weight: var(--zym-button-font-weight);
	letter-spacing: var(--zym-button-letter-spacing);
	box-shadow: none;
}
body.zymarg-myaccount-active .btn-primary:hover,
body.zymarg-myaccount-active .woocommerce-EditAccountForm button[type="submit"]:hover,
body.zymarg-myaccount-active .woocommerce-address-fields button[type="submit"]:hover,
body.zymarg-myaccount-active .woocommerce button.button:hover {
	background: var(--zym-button-theme-glow-bg);
	background-image: none;
	color: var(--zym-button-theme-glow-text);
	box-shadow: var(--zym-button-theme-glow-shadow);
	transform: translateY(-2px) scale(1.03);
}

/* Status chips → fully rounded pills like the dashboard order statuses. */
body.zymarg-myaccount-active .status-badge {
	border-radius: 999px;
	padding: 4px 11px;
}

/* Order total in brand purple, consistent with the dashboard. */
body.zymarg-myaccount-active .order-item .order-total {
	color: var(--color-primary, #C518C5);
	font-weight: 800;
}

/* ==========================================================================
   Messages panel: edge-to-edge column (5.12.17)
   Every other account panel keeps the shared reading padding
   (2rem 1rem mobile / 2.5rem 2rem desktop). The Messages panel hosts a full
   chat UI that owns its own internal padding, so the column padding around it
   only produced a dead gap. We zero it and release the width cap for that one
   section, keyed off the body class emitted by zymarg_os_account_body_classes().
   The 260px sidebar is untouched: .main-content is a child of .zymarg-acc-main,
   which is a flex sibling of the sidebar, so the panel can only grow into the
   space to the right of it and can never overlap it.
   ========================================================================== */
body.zymarg-acc-section-messages .zymarg-acc-main .main-content {
	max-width: none;
	padding: 0;
}

/* --------------------------------------------------------------------------
   Messages: square the sidebar's right edge (5.12.20)

   The sidebar rounds its top-right and bottom-right corners by 18px so it
   reads as a panel floating against the page. That works everywhere the
   content column has a gutter. In Messages the gutter is 0 and the inbox now
   squares its own outer frame, so those two curves would peel away from the
   flush edge and show small notches of background at the sidebar's top and
   bottom corners. Squaring only the side that touches keeps the seam clean.

   Scoped to the Messages section, so every other account panel keeps the
   rounded sidebar exactly as it is. Desktop only -- below 768px the sidebar is
   an off-canvas drawer and is not adjacent to the content at all.
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	body.zymarg-acc-section-messages .zymarg-acc-sidebar {
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
	}
}


/* ==========================================================================
   Dashboard redesign (5.33.2)

   The Dashboard used to be five navigation tiles and a welcome line, so the
   panel was mostly empty space below the fold. It is now five stacked layers:
   greeting, quick-action chips, stat strip, content grid, empty states.

   Mobile-first throughout, reusing the breakpoints already in this file
   (480 / 768 / 1200) rather than introducing new ones. The old .dash-cards /
   .dash-card rules above are intentionally left in place: they still style any
   third-party markup that reuses those classes.
   ========================================================================== */

/* ---- Layer 1: greeting ------------------------------------------------- */
.zym-dash-greet {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 16px;
}
/* Squircle, not a circle: matches the established brand avatar treatment in
   .zymarg-acc-sidebar .user-avatar (12px, borderless, under the
   body.zymarg-myaccount-active layer) and .zym-identity__avatar in
   assets/css/account-accordion.css. */
.zym-dash-greet__avatar {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--color-surface-low, #f2f3ff);
}
.zym-dash-greet__body { min-width: 0; }
.zym-dash-greet__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--color-on-primary-fixed, #36003d);
}
.zym-dash-greet__wave { margin-left: 2px; }
.zym-dash-greet__sub {
	margin: 2px 0 0;
	font-size: 0.8125rem;
	color: var(--color-text-muted, #534152);
}

/* ---- Layer 2: quick-action chips --------------------------------------- */
.zym-dash-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.zym-dash-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	/* 44px min height keeps every chip a comfortable touch target. */
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: 999px;
	background: var(--color-surface-lowest, #fff);
	color: var(--color-on-primary-fixed, #36003d);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s ease, background .2s ease;
}
.zym-dash-chip__icon {
	display: inline-flex;
	color: var(--color-primary, #C518C5);
}
.zym-dash-chip__icon svg { width: 16px; height: 16px; }
/* Numeric count badges use the seller notification danger token, not the brand accent. */
.zym-dash-chip__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--zym-color-danger, #e0245e);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
}

/* ---- Layer 3: stat strip ---------------------------------------------- */
/* 2x2 on phones on purpose: a horizontal scroller would hide stats
   off-screen, which is the problem this redesign is fixing. */
.zym-dash-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
/* Metrics come from the approved mockup: 16px radius (--zym-radius-card) and
   16px padding. They were shipped as 12px/12px, which are the OLD card
   metrics (.dash-card, .order-item), so the stat strip still read as the
   previous generation next to the redesigned cards. */
.zym-dash-stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: var(--zym-radius-card, 16px);
	background: var(--color-surface-lowest, #fff);
	/* Elevation is what actually reads as "the new card design" — a flat card
	   looks like the old generation no matter what its radius is. Same shadow
	   token as .zym-dash-card so the whole Dashboard sits on one surface
	   language. NOTE: .zym-dash-stats is an overflow-x scroller, so it needs
	   vertical padding or this shadow gets clipped (see the stat strip block
	   at the bottom of this file). */
	box-shadow: var(--zym-shadow-card, 0 4px 24px rgba(53, 0, 61, .10), 0 1px 4px rgba(53, 0, 61, .06));
}
.zym-dash-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 12px;
	background: var(--zymarg-gradient, var(--color-primary, #C518C5));
	color: #fff;
}
.zym-dash-stat__icon svg { width: 18px; height: 18px; }
.zym-dash-stat__body { min-width: 0; }
.zym-dash-stat__label {
	display: block;
	font-size: 0.75rem;
	color: var(--color-text-muted, #534152);
}
.zym-dash-stat__value {
	display: block;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-on-primary-fixed, #36003d);
}

/* ---- Layer 4: content grid -------------------------------------------- */
/* minmax(0, 1fr) rather than 1fr: grid items default to min-width auto, which
   would let a wide child (an injected Recently Viewed strip) stretch the grid
   and give the whole page a horizontal scrollbar on mobile. */
.zym-dash-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}
/* Also from the approved mockup: 20px padding and the standard card shadow.
   Shipping these flat (16px, no shadow) is what made the redesigned cards look
   plainer in production than in the mockup that was signed off. */
.zym-dash-card {
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	border-radius: var(--zym-radius-card, 16px);
	background: var(--color-surface-lowest, #fff);
	box-shadow: var(--zym-shadow-card, 0 4px 24px rgba(53, 0, 61, .10), 0 1px 4px rgba(53, 0, 61, .06));
}
.zym-dash-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.zym-dash-card__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--color-on-primary-fixed, #36003d);
}
.zym-dash-card__more {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-primary, #C518C5);
	text-decoration: none;
	white-space: nowrap;
}
.zym-dash-card__hint {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text-muted, #534152);
}

/* Order tracker */
.zym-dash-track__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	color: var(--color-text-muted, #534152);
}
.zym-dash-track__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
/* Recent-order rows */
.zym-dash-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid var(--color-outline-variant, #d8bfd3);
}
.zym-dash-row:first-of-type { border-top: 0; }
.zym-dash-row__main { flex: 1; min-width: 0; }
.zym-dash-row__id {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-on-primary-fixed, #36003d);
}
.zym-dash-row__date {
	font-size: 0.75rem;
	color: var(--color-text-muted, #534152);
}
.zym-dash-row__total {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--color-primary, #C518C5);
	white-space: nowrap;
}

/* Vouchers */
.zym-dash-vouch {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	margin-bottom: 8px;
	border: 1px dashed var(--color-outline-variant, #d8bfd3);
	border-radius: 12px;
}
.zym-dash-vouch:last-of-type { margin-bottom: 0; }
.zym-dash-vouch__amt {
	font-size: 1rem;
	font-weight: 800;
	color: var(--color-primary, #C518C5);
	white-space: nowrap;
}
.zym-dash-vouch__body { min-width: 0; font-size: 0.8125rem; }
.zym-dash-vouch__desc { display: block; }
.zym-dash-vouch__code {
	display: inline-block;
	margin-top: 2px;
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--color-surface-low, #f2f3ff);
	font-size: 0.75rem;
}
.zym-dash-vouch__exp {
	display: block;
	margin-top: 2px;
	font-size: 0.6875rem;
	color: #e53e3e;
}

/* Recently viewed strip (content injected by ZYMARG Insights) */
.zym-dash-strip {
	display: flex;
	gap: 12px;
	min-width: 0;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.zym-dash-strip::-webkit-scrollbar { height: 0; display: none; }
.zym-dash-strip { -ms-overflow-style: none; scrollbar-width: none; }
.zym-dash-strip > * { flex: 0 0 auto; scroll-snap-align: start; }

/* Profile completeness */
.zym-dash-meter {
	height: 8px;
	border-radius: 999px;
	background: var(--color-surface-low, #f2f3ff);
	overflow: hidden;
}
.zym-dash-meter__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--zymarg-gradient, var(--color-primary, #C518C5));
}
.zym-dash-checks {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.zym-dash-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 0.8125rem;
}
.zym-dash-check__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #e8f1ec;
	color: #46a171;
	font-size: 0.6875rem;
	font-weight: 700;
}
.zym-dash-check__mark--todo {
	background: var(--color-surface-low, #f2f3ff);
	color: var(--color-primary, #C518C5);
}
.zym-dash-check a {
	color: var(--color-primary, #C518C5);
	font-weight: 600;
	text-decoration: none;
}
.zym-dash-empty__text {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--color-text-muted, #534152);
}

/* ---- Responsive ------------------------------------------------------- */
@media (min-width: 480px) {
	.zym-dash-greet__title { font-size: 1.375rem; }
	.zym-dash-step__label { font-size: 0.6875rem; }
}
@media (min-width: 768px) {
	.zym-dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.zym-dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zym-dash-card--wide { grid-column: 1 / -1; }
	.zym-dash-card { padding: 20px; }
	.zym-dash-step__label { font-size: 0.75rem; }
}
@media (min-width: 1200px) {
	.zym-dash-greet__title { font-size: 1.5rem; }
}

/* Hover affordances only where hovering exists. On touch, a hover rule would
   stick after tapping — the same reason .dash-card's lift is neutralised above. */
@media (hover: hover) {
	.zym-dash-chip:hover {
		border-color: var(--color-primary, #C518C5);
		background: #fdf7fe;
	}
	.zym-dash-card__more:hover,
	.zym-dash-check a:hover { text-decoration: none; opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
	.zym-dash-chip { transition: none; }
}


/* ==========================================================================
   Card design unification (5.33.3)

   The 5.33.2 Dashboard introduced .zym-dash-card: a 16px, flat, bordered card.
   Every other panel still used the older treatment applied further up this
   file — 18px (--zv-radius) plus a drop shadow (--zv-shadow) — so the account
   area showed two different card languages depending on which section you were
   in. The newer flat card wins, and the older cards are retuned to match it
   here rather than by rewriting the markup of eight sections, so all the list
   and grid logic (Orders, Notifications, Reviews, Coupons, Returns, Support,
   Addresses) is left completely untouched.

   These selectors carry the body.zymarg-myaccount-active prefix on purpose:
   they must outrank the earlier "Unified card radius + shadow" block, which is
   written at that same specificity.
   ========================================================================== */
body.zymarg-myaccount-active .order-item,
body.zymarg-myaccount-active .action-card,
body.zymarg-myaccount-active .settings-card,
body.zymarg-myaccount-active .zymarg-addr-card {
	border-radius: 16px;
	border: 1px solid var(--color-outline-variant, #d8bfd3);
	background: var(--color-surface-lowest, #fff);
	box-shadow: none;
}

/* Match the 16px interior rhythm of .zym-dash-card. */
body.zymarg-myaccount-active .order-item {
	padding: 14px 16px;
}

/* The flat card does not lift; it warms its border and casts a short,
   brand-tinted shadow. Hover-only so touch devices keep the resting state. */
@media (hover: hover) {
	body.zymarg-myaccount-active .order-item:hover,
	body.zymarg-myaccount-active .action-card:hover,
	body.zymarg-myaccount-active .settings-card:hover,
	body.zymarg-myaccount-active .zymarg-addr-card:hover {
		transform: none;
		border-color: var(--color-primary, #C518C5);
		box-shadow: 0 4px 16px rgba(197, 24, 197, .08);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.zymarg-myaccount-active .action-card {
		transition: none;
	}
}


/* ==========================================================================
   Stat strip — one line, swipeable (5.33.5)

   Was a 2-column grid, which meant an odd number of stats left a visible empty
   cell (3 stats = a hole bottom-right whenever no wishlist provider reports a
   count). Now it is a single row on every screen size: horizontally swipeable
   below 768px, and evenly divided above it, so there is never a gap.

   Same treatment as .dash-cards and .zym-dash-chips — x scroll-snap, hidden
   scrollbar, grab cursor — and .zym-dash-stats is registered in
   SWIPE_SELECTOR in assets/js/account.js for the desktop mouse drag.

   Declared after the base .zym-dash-stats rule on purpose: same specificity,
   so source order is what flips grid -> flex.
   ========================================================================== */
.zym-dash-stats {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 12px;
	/* overflow-x: auto makes overflow-y compute to auto as well, so without this
	   padding the card shadow would be sliced off top and bottom. Horizontal
	   padding gives the first and last card's shadow room too. */
	padding: 8px 2px 14px;
	margin-bottom: 6px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	cursor: grab;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.zym-dash-stats::-webkit-scrollbar { height: 0; display: none; }

.zym-dash-stats.is-grabbing {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

/* Fixed basis so a partial card peeks in at the right edge — that overhang is
   what tells the customer the row scrolls. */
.zym-dash-stat {
	flex: 0 0 auto;
	min-width: 156px;
	scroll-snap-align: start;
}

/* From 768px up every stat fits, so divide the line evenly and switch the
   scroller off rather than leaving a grab cursor on a row that cannot move.
   This supersedes the earlier repeat(4, ...) grid rule, which no longer
   applies now that the strip is flex. */
@media (min-width: 768px) {
	.zym-dash-stats {
		overflow-x: visible;
		scroll-snap-type: none;
		cursor: default;
	}
	.zym-dash-stat {
		flex: 1 1 0;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zym-dash-stats { scroll-behavior: auto; }
}

/* Account summary: all three stats remain visible without a swipe on mobile. */
.zym-dash-stats.zym-dash-stats--summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	overflow: visible;
	padding: 0;
	margin-bottom: 16px;
	cursor: default;
}
.zym-dash-stats--summary .zym-dash-stat { min-width: 0; }
.zym-dash-stats--summary .zym-dash-stat__value { overflow-wrap: anywhere; }


/* ==========================================================================
   Quick-action chips — swipeable row (5.33.5)

   Mirrors the original .dash-cards treatment above (flex row, x scroll-snap,
   hidden scrollbar, grab cursor, static at >=1200px) so the chips feel exactly
   like the tile row they replaced, and stay on ONE line instead of wrapping.
   Touch swipe is native via overflow-x; the desktop mouse-drag comes from the
   delegated drag-scroller at the bottom of assets/js/account.js.

   Declared after the base .zym-dash-chips rule on purpose: same specificity,
   so source order is what flips wrap -> nowrap.
   ========================================================================== */
.zym-dash-chips {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding: 2px 0 6px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	cursor: grab;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.zym-dash-chips::-webkit-scrollbar { height: 0; display: none; }

.zym-dash-chips.is-grabbing {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}
/* While actually dragging, swallow pointer events on the chips so the drag
   never lands as a navigation. The JS only adds is-grabbing past an 8px
   threshold, so plain taps and clicks are unaffected. */
.zym-dash-chips.is-grabbing .zym-dash-chip {
	pointer-events: none;
}

/* Chips must not shrink or wrap, or there is nothing to swipe. */
.zym-dash-chip {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

/* Wide screens: all six chips fit, so drop the scroller entirely rather than
   leaving a grab cursor on a row that cannot move. */
@media (min-width: 1200px) {
	.zym-dash-chips {
		flex-wrap: wrap;
		overflow-x: visible;
		scroll-snap-type: none;
		cursor: default;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zym-dash-chips { scroll-behavior: auto; }
}

/* ======================================================================
   WOOCOMMERCE DEFAULT "VIEW ORDER" CONTENT — order overview, itemised
   table, and billing/shipping address columns that WooCommerce core
   renders unstyled below our branded .zym-track header (further below).
   Without this, that half of the page still looked like a bare
   WooCommerce fallback instead of belonging to this theme.
   ====================================================================== */
.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	list-style: none;
	margin: 0 0 20px;
	padding: 16px 20px;
	background: var(--color-surface-low, #f2f3ff);
	border-radius: 14px;
}
.woocommerce-order-overview li {
	font-size: 13px;
	color: var(--color-text-muted, #524250);
}
.woocommerce-order-overview li strong {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: var(--color-text-body, #131b2e);
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text-body, #131b2e);
	margin: 28px 0 12px;
}

table.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 8px;
}
table.woocommerce-table--order-details thead th {
	background: var(--color-surface-low, #f2f3ff);
	color: var(--color-text-muted, #524250);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-align: left;
	padding: 12px 16px;
}
table.woocommerce-table--order-details tbody td,
table.woocommerce-table--order-details tfoot td,
table.woocommerce-table--order-details tfoot th {
	padding: 12px 16px;
	font-size: 13.5px;
	color: var(--color-text-body, #131b2e);
	border-top: 1px solid var(--color-outline-variant, #d6c0d2);
}
table.woocommerce-table--order-details tfoot tr:last-child td,
table.woocommerce-table--order-details tfoot tr:last-child th {
	font-weight: 700;
}
table.woocommerce-table--order-details .woocommerce-table__product-name a {
	color: var(--color-text-body, #131b2e);
	font-weight: 600;
	text-decoration: none;
}
table.woocommerce-table--order-details .wc-item-meta {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	font-size: 12px;
	color: var(--color-text-muted, #524250);
}

.woocommerce-customer-details {
	margin-top: 24px;
}
.woocommerce-customer-details .woocommerce-columns--addresses {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
}
.woocommerce-customer-details .woocommerce-column {
	flex: 1 1 240px;
	background: var(--color-surface-low, #f2f3ff);
	border-radius: 14px;
	padding: 18px 20px;
}
.woocommerce-customer-details .woocommerce-column address {
	font-style: normal;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--color-text-muted, #524250);
}
.woocommerce-customer-details .woocommerce-column a {
	color: var(--color-primary, #C518C5);
}

/* WooCommerce core's own ".button" class (Pay, Cancel order, Order again)
   ships bare/grey by default — re-skin it to match the theme's .btn-outline
   instead of leaving WooCommerce's default styling on the page. */
.zymarg-myaccount-wrap .main-content .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	background: transparent;
	color: var(--color-text-muted, #524250);
	text-decoration: none;
}
.zymarg-myaccount-wrap .main-content .button:hover {
	border-color: var(--color-primary, #C518C5);
	color: var(--color-primary, #C518C5);
}

/* ======================================================================
   ORDER TRACKING — buyer-facing "View Order" page (view-order endpoint)
   Added alongside zymarg_os_acc_render_order_tracking() in
   inc/account-sections.php. Reuses existing design tokens and the
   existing .status-badge component rather than inventing new ones.
   ====================================================================== */
.zym-track { margin-bottom: 24px; }

.zym-track__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 16px;
}
.zym-track__meta-item { min-width: 110px; }
.zym-track__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--color-text-muted, #524250);
	margin-bottom: 4px;
}
.zym-track__value,
.zym-track__order-id {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-body, #131b2e);
}
.zym-track__meta .status-badge { margin-left: auto; }

.zym-track__progress {
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 16px;
}
.zym-track__progress-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
}
.zym-track__progress-title { font-size: 15px; font-weight: 700; color: var(--color-primary, #C518C5); }

.zym-track__steps {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}
.zym-track__step {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}
.zym-track__step::before {
	content: "";
	position: absolute;
	top: 17px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--color-outline-variant, #d6c0d2);
	z-index: 0;
}
.zym-track__step:first-child::before { display: none; }
.zym-track__step.is-done::before { background: var(--zym-color-success-text, #22a35a); }
.zym-track__step-icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--color-surface-container, #eaedff);
	color: var(--color-text-muted, #524250);
	border: 2px solid var(--color-surface-lowest, #fff);
}
.zym-track__step.is-done .zym-track__step-icon {
	background: var(--zym-color-success-text, #22a35a);
	color: var(--color-on-primary, #fff);
}
.zym-track__step.is-current .zym-track__step-icon {
	background: var(--color-primary, #C518C5);
	color: var(--color-on-primary, #fff);
}
.zym-track__step-label { font-size: 12px; font-weight: 600; color: var(--color-text-muted, #524250); }
.zym-track__step.is-done .zym-track__step-label { color: var(--zym-color-success-text, #22a35a); }
.zym-track__step.is-current .zym-track__step-label { color: var(--color-text-body, #131b2e); }

.zym-track__alert {
	background: var(--color-surface-container, #eaedff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-body, #131b2e);
}

.zym-track__package {
	background: var(--color-surface-lowest, #fff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
	border-radius: 14px;
	margin-bottom: 14px;
	overflow: hidden;
}
.zym-track__pkg-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	background: var(--color-surface-low, #f2f3ff);
}
.zym-track__pkg-header-left { display: flex; align-items: center; gap: 12px; }
.zym-track__pkg-number {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	background: var(--color-primary, #C518C5);
	color: var(--color-on-primary, #fff);
	flex-shrink: 0;
}
.zym-track__pkg-seller { font-size: 14px; font-weight: 700; color: var(--color-text-body, #131b2e); }
.zym-track__pkg-count { font-size: 12px; color: var(--color-text-muted, #524250); }
.zym-track__pkg-body { padding: 18px 20px; }

.zym-track__mini-track { display: flex; gap: 4px; margin-bottom: 8px; }
.zym-track__mini-step { flex: 1; height: 5px; border-radius: 3px; background: var(--color-outline-variant, #d6c0d2); }
.zym-track__mini-step.is-done { background: var(--zym-color-success-text, #22a35a); }
.zym-track__mini-step.is-current { background: var(--color-primary, #C518C5); }
.zym-track__mini-labels { display: flex; justify-content: space-between; margin-bottom: 16px; }
.zym-track__mini-labels span { font-size: 10px; color: var(--color-text-muted, #524250); flex: 1; text-align: center; }
.zym-track__mini-labels span:first-child { text-align: left; }
.zym-track__mini-labels span:last-child { text-align: right; }
.zym-track__mini-labels span.is-current { color: var(--color-primary, #C518C5); font-weight: 700; }

.zym-track__pkg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}
.zym-track__info-item { background: var(--color-surface-low, #f2f3ff); border-radius: 10px; padding: 10px 12px; }
.zym-track__mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

.zym-track__divider { height: 1px; background: var(--color-outline-variant, #d6c0d2); margin: 14px 0; }

.zym-track__timeline { display: flex; flex-direction: column; gap: 14px; }
.zym-track__event { display: flex; gap: 12px; }
.zym-track__event-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 4px;
	border-radius: 50%;
	background: var(--color-outline-variant, #d6c0d2);
}
.zym-track__event-dot.is-active { background: var(--color-primary, #C518C5); box-shadow: 0 0 0 3px var(--color-primary-fixed, #ffd6fb); }
.zym-track__event-time { font-size: 11px; color: var(--color-text-muted, #524250); margin-bottom: 2px; }
.zym-track__event-text { font-size: 13px; color: var(--color-text-body, #131b2e); }

.zym-track__eta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--color-primary-container, #bd00d1);
	background: color-mix(in srgb, var(--color-primary, #C518C5) 10%, var(--color-surface-low, #f2f3ff));
	font-size: 12.5px;
	font-weight: 600;
	color: var(--color-primary, #C518C5);
}
.zym-track__eta-icon { display: inline-flex; flex-shrink: 0; }
.zym-track__eta-icon svg { width: 15px; height: 15px; }

/* "Latest update" narrative banner shown right under the Overall Progress
   stepper — a plain-English sentence instead of icons alone, plus a small
   "we emailed you" line when a lifecycle email has actually been sent. */
.zym-track__latest {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--color-primary, #C518C5) 10%, var(--color-surface-low, #f2f3ff));
}
.zym-track__latest-icon { display: inline-flex; flex-shrink: 0; margin-top: 1px; color: var(--color-primary, #C518C5); }
.zym-track__latest-icon svg { width: 16px; height: 16px; }
.zym-track__latest-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--color-primary, #C518C5); margin-bottom: 2px; }
.zym-track__latest-text { font-size: 13.5px; font-weight: 600; color: var(--color-text-body, #131b2e); }
.zym-track__notice-sent { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; font-weight: 500; color: var(--color-text-muted, #524250); }
.zym-track__notice-sent svg { width: 13px; height: 13px; flex-shrink: 0; }

/* State-aware per-package tip — icon + tone + message that actually changes
   per current step (e.g. orange "keep your phone accessible" once out for
   delivery), replacing the old always-purple ETA-only line. */
.zym-track__tip {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 600;
}
.zym-track__tip-icon { display: inline-flex; flex-shrink: 0; margin-top: 1px; }
.zym-track__tip-icon svg { width: 15px; height: 15px; }
.zym-track__tip--neutral { background: var(--color-surface-container, #eaedff); color: var(--color-secondary, #505f76); }
.zym-track__tip--info { background: color-mix(in srgb, var(--color-primary, #C518C5) 10%, var(--color-surface-low, #f2f3ff)); color: var(--color-primary, #C518C5); }
.zym-track__tip--warning { background: color-mix(in srgb, var(--zym-color-warning) 14%, transparent); color: var(--zym-color-warning); }
.zym-track__tip--success { background: var(--zym-color-success-bg, #e6f4ea); color: var(--zym-color-success-text, #1a7f37); }

/* "Need help with your order?" card — Message Seller (per seller on the
   order) + Contact Support, shown at the bottom of Order Tracking. */
.zym-track__help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 16px;
	padding: 16px 20px;
	border-radius: 14px;
	background: var(--color-surface-low, #f2f3ff);
	border: 1px solid var(--color-outline-variant, #d6c0d2);
}
.zym-track__help-title { font-size: 14px; font-weight: 700; color: var(--color-text-body, #131b2e); }
.zym-track__help-sub { font-size: 12px; color: var(--color-text-muted, #524250); margin-top: 2px; }
.zym-track__help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zym-track__help-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.zym-track__help-actions .btn svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
	.zym-track__help { flex-direction: column; align-items: flex-start; }
	.zym-track__help-actions { width: 100%; }
	.zym-track__help-actions .btn { flex: 1 1 auto; justify-content: center; }
}


/* Per-package status badges use the tracking step key as the class
   (e.g. "picked_up", "in_transit") — extend .status-badge with these
   additional, non-conflicting keys rather than inventing a new component. */
.status-badge.placed,
.status-badge.ready { background: var(--color-surface-container, #eaedff); color: var(--color-secondary, #505f76); }
.status-badge.picked_up,
.status-badge.in_transit,
.status-badge.out_for_delivery { background: var(--color-primary-fixed, #ffd6fb); color: var(--color-primary, #C518C5); }
.status-badge.received { background: color-mix(in srgb, var(--zym-color-success-text, #22a35a) 16%, transparent); color: var(--zym-color-success-text, #22a35a); }

@media (max-width: 640px) {
	.zym-track__step-label { display: none; }
	.zym-track__mini-labels span:not(:first-child):not(:last-child) { display: none; }
}

/* ==========================================================================
   Orders — branded card + in-page dropdown.

   Ported from the seller Vendor Dashboard's .zymarg-vo-* order cards (see
   the sibling Vendor Dashboard plugin's assets/css/vendor-dashboard.css) so
   My Account -> Orders matches the same brand window/layout instead of the
   plain WooCommerce-style rows it used before. VD-only tokens are swapped
   for the equivalent My Account tokens already used above:
     --zv-border  -> --color-outline-variant
     --zv-card-bg -> --color-surface-lowest
     --zv-shadow  -> the same soft shadow already used on dashboard cards
     --zv-grad    -> --color-primary / --color-primary-container gradient
   ========================================================================== */
.zymarg-vo-list { display: flex; flex-direction: column; gap: 12px; }

.zymarg-vo-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--color-outline-variant);
	border-radius: 14px;
	background: var(--color-surface-lowest);
	box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.zymarg-vo-info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.zymarg-vo-sep { color: var(--color-text-muted); }
.zymarg-vo-order__id { font-weight: 700; color: var(--color-text-body); }
.zymarg-vo-order__meta,
.zymarg-vo-order__total { font-size: 13px; color: var(--color-text-muted); }
.zymarg-vo-order__total { font-weight: 600; color: var(--color-primary); }

.zymarg-vo-btns { display: flex; align-items: center; gap: 10px; }

.zymarg-vo-view {
	appearance: none;
	border: 1px solid var(--color-outline-variant);
	background: transparent;
	color: var(--color-text-body);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}
.zymarg-vo-view:hover { border-color: var(--color-primary); color: var(--color-primary); }
.zymarg-vo-view:disabled { opacity: .6; cursor: default; }

.zymarg-vo-detail {
	flex-basis: 100%;
	width: 100%;
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px dashed var(--color-outline-variant);
}
.zymarg-vo-detail[hidden] { display: none; }

.zymarg-vo-detail__progress { margin-bottom: 16px; }

.zymarg-vo-detail__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
}

.zymarg-vo-detail__col { display: flex; flex-direction: column; gap: 16px; }

.zymarg-vo-detail__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--color-text-muted);
	margin-bottom: 6px;
}

.zymarg-vo-detail__items { display: flex; flex-direction: column; gap: 6px; }
.zymarg-vo-detail__item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: var(--color-text-body);
}
.zymarg-vo-detail__item-qty { color: var(--color-text-muted); white-space: nowrap; }
.zymarg-vo-detail__item--empty { color: var(--color-text-muted); }

.zymarg-vo-detail__total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	border-top: 1px solid var(--color-outline-variant);
}
.zymarg-vo-detail__total-label { font-size: 13px; color: var(--color-text-muted); }
.zymarg-vo-detail__total-amount { font-size: 15px; font-weight: 700; color: var(--color-primary); }

.zymarg-vo-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.zymarg-vo-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	background: var(--color-primary, #C518C5);
	color: #fff;
	border: 1px solid transparent;
	transition: opacity .2s;
}
.zymarg-vo-action:hover { opacity: .9; }
.zymarg-vo-action--cancel {
	background: transparent;
	color: var(--zym-color-danger);
	border-color: var(--zym-color-danger);
}

.zymarg-vo-detail__line { margin: 0 0 4px; font-size: 13px; color: var(--color-text-body); }
.zymarg-vo-detail__line--strong { font-weight: 600; }
.zymarg-vo-detail__line--muted { color: var(--color-text-muted); }
.zymarg-vo-detail__meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zymarg-vo-detail__meta-text { font-size: 13px; color: var(--color-text-muted); }
.zymarg-vo-detail__dot { color: var(--color-text-muted); }
.zymarg-vo-detail__pill {
	display: inline-flex;
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	color: var(--color-primary);
	font-size: 11px;
	font-weight: 600;
}

@media (max-width: 720px) {
	.zymarg-vo-detail__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.zymarg-vo-order { flex-direction: column; align-items: flex-start; }
	.zymarg-vo-btns { width: 100%; justify-content: space-between; }
	.zymarg-vo-info { width: 100%; }
}


/* ==========================================================================
   Reviews — accordion rows (My Reviews / Pending Reviews) + scroll panels.

   Same visual language as the Orders .zymarg-vo-* cards above, reused here
   as .zymarg-rv-* so both lists share one design instead of the old plain
   .order-item rows. Both lists are wrapped in a max-height scroll panel so
   a buyer with many reviews never pushes the rest of the page down.
   ========================================================================== */
.zymarg-rv-list-scroll {
	max-height: 520px;
	overflow-y: auto;
	padding-right: 4px;
}

.zymarg-rv-list { display: flex; flex-direction: column; gap: 12px; }

.zymarg-rv-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--color-outline-variant);
	border-radius: 14px;
	background: var(--color-surface-lowest);
	box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.zymarg-rv-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zymarg-rv-title {
	font-weight: 700;
	color: var(--color-text-body);
	text-decoration: none;
	width: fit-content;
}
.zymarg-rv-title:hover,
.zymarg-rv-title:focus-visible { color: var(--color-primary); text-decoration: underline; }
.zymarg-rv-meta { font-size: 13px; color: var(--color-text-muted); }

.zymarg-rv-btns { display: flex; align-items: center; gap: 10px; }

.zymarg-rv-view {
	appearance: none;
	border: 1px solid var(--color-outline-variant);
	background: transparent;
	color: var(--color-text-body);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}
.zymarg-rv-view:hover { border-color: var(--color-primary); color: var(--color-primary); }

.zymarg-rv-detail {
	flex-basis: 100%;
	width: 100%;
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px dashed var(--color-outline-variant);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.zymarg-rv-detail[hidden] { display: none; }

.zymarg-rv-detail__view[hidden],
.zymarg-rv-edit-form[hidden] { display: none; }

.zymarg-rv-stars { font-size: 15px; color: var(--color-primary); letter-spacing: 2px; }
.zymarg-rv-body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-text-body); white-space: pre-wrap; }

.zymarg-rv-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.zymarg-rv-delete--danger { color: var(--zym-color-danger); border-color: var(--zym-color-danger); }
.zymarg-rv-delete--danger:hover { background: var(--zym-color-danger); color: #fff; }

.zymarg-rv-star-input { display: flex; gap: 4px; }
.zymarg-rv-star {
	appearance: none;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: var(--color-outline-variant);
	padding: 2px;
	transition: color .15s;
}
.zymarg-rv-star:hover,
.zymarg-rv-star.is-active { color: #f5a623; }

.zymarg-rv-textarea {
	width: 100%;
	resize: vertical;
	min-height: 72px;
	border: 1px solid var(--color-outline-variant);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13px;
	font-family: inherit;
	color: var(--color-text-body);
	background: var(--color-surface-lowest);
}

.zymarg-rv-form-msg { margin: 0; font-size: 12px; color: var(--color-text-muted); min-height: 16px; }
.zymarg-rv-form-msg.is-error { color: var(--zym-color-danger); }

/* "Add Media" field on the Reviews-to-Write form -- mirrors the Reviews
   Engine plugin's own .zymarg-media-field / .zymarg-media-button so both
   forms look and behave the same way. */
.zymarg-rv-media-field { display: flex; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.zymarg-rv-media-button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--color-outline-variant);
	background: transparent;
	color: var(--color-text-body);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}
.zymarg-rv-media-button:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-surface-lowest); }
.zymarg-rv-media-button svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.zymarg-rv-media-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zymarg-rv-media-field:focus-within .zymarg-rv-media-button { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.zymarg-myaccount-wrap .zymarg-rv-media-clear[hidden] { display: none; }
.zymarg-myaccount-wrap .zymarg-rv-media-clear:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.zymarg-rv-media-count { font-size: 12px; color: var(--color-text-muted); }
.zymarg-rv-media-preview:empty { display: none; }
.zymarg-rv-media-preview {
	display: flex;
	margin-block: 2px;
	flex-wrap: wrap;
	gap: 8px;
}
.zymarg-rv-media-thumb {
	position: relative;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--color-outline-variant);
	background: var(--color-surface-lowest);
}
/* Fill the fixed thumbnail even when global image rules set height:auto. */
.zymarg-myaccount-wrap .zymarg-rv-media-thumb img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
}
.zymarg-rv-media-thumb__remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 18px;
	height: 18px;
	line-height: 16px;
	text-align: center;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,.6);
	color: #fff;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
}

@media (max-width: 480px) {
	.zymarg-rv-row { flex-direction: column; align-items: flex-start; }
	.zymarg-rv-btns { width: 100%; justify-content: space-between; }
	.zymarg-rv-info { width: 100%; }
}
/* ZYMARG Vouchers compact wallet — 5.42.2 */
.zymarg-voucher-wallet__status{min-height:22px;color:#1a7f37;font-weight:600}.zym-wallet-groups{display:grid;gap:18px}.zym-wallet-group{padding:16px;border:1px solid var(--color-outline-variant,#d8bfd3);border-radius:16px;background:var(--color-surface,#fff)}.zym-wallet-group__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.zym-wallet-group__head h3{margin:0;color:var(--color-on-surface,#36003d);font-size:1.05rem}.zym-wallet-group__head span{padding:4px 9px;border-radius:999px;background:var(--zym-color-danger,#e0245e);color:#fff;font-size:.68rem;font-weight:800}.zym-wallet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.zym-wallet-card{direction:ltr;position:relative;min-width:0;min-height:104px;display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:stretch;border:1px solid var(--color-outline-variant,#d8bfd3);border-radius:16px;background:var(--color-surface,#fff);box-shadow:0 8px 22px rgba(197, 24, 197,.1);overflow:hidden}.zym-wallet-card:before,.zym-wallet-card:after{content:"";position:absolute;left:85px;width:20px;height:20px;border:1px solid var(--color-outline-variant,#d8bfd3);border-radius:50%;background:var(--color-surface,#fff);z-index:2}.zym-wallet-card:before{top:-11px}.zym-wallet-card:after{bottom:-11px}.zym-wallet-card__benefit{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 7px;background:var(--color-primary, #C518C5);color:#fff;text-align:center}.zym-wallet-card__benefit svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.zym-wallet-card__benefit strong{font-size:.76rem;line-height:1.15}.zym-wallet-card__body{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:12px 14px;border-left:1px dashed var(--color-outline-variant,#d8bfd3)}.zym-wallet-card__scope{display:-webkit-box;max-width:100%;overflow:hidden;color:var(--color-text-muted,#646970);font-size:.58rem;font-weight:800;line-height:1.25;letter-spacing:.08em;text-transform:uppercase;-webkit-box-orient:vertical;-webkit-line-clamp:2}.zym-wallet-card__body h4{margin:2px 0 4px;color:var(--color-on-surface,#36003d);font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zym-wallet-card__body p{margin:0;color:var(--color-text-muted,#646970);font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zym-wallet-card__state{display:block;width:100%;max-width:100%;margin-top:5px;padding:4px 7px;border-radius:9px;background:#f8f5f8;color:#665b65;font-size:.58rem;line-height:1.35;white-space:normal;overflow:visible}.zym-wallet-card__state--available{background:#edf8f0;color:#176329}.zym-wallet-card__state--reserved{background:#f8f2ff;color:#5b2b82}.zym-wallet-card__action{display:flex;align-items:center;padding:10px 12px 10px 0}.zym-wallet-card__action a{display:inline-flex;align-items:center;justify-content:center;min-width:68px;min-height:38px;padding:0 12px;border-radius:10px;background:var(--color-primary,#c518c5);color:#fff;text-decoration:none;font-size:.72rem;font-weight:800;white-space:nowrap}.zym-wallet-card__action>span{padding:5px 8px;border-radius:999px;background:#f8f5f8;color:#665b65;font-size:.58rem;font-weight:700}.zym-wallet-remove{align-self:flex-start;margin:4px 0 0;padding:0;border:0;background:transparent;color:#b3261e;font-size:.62rem;font-weight:700;cursor:pointer}.zym-wallet-issued{margin-top:4px;color:var(--color-text-muted,#646970);font-size:.58rem;font-weight:600}@media(max-width:900px){.zym-wallet-grid{grid-template-columns:1fr}}@media(max-width:480px){.zym-wallet-group{padding:10px}.zym-wallet-card{min-height:92px;grid-template-columns:68px minmax(0,1fr) auto}.zym-wallet-card:before,.zym-wallet-card:after{left:59px;width:18px;height:18px}.zym-wallet-card:before{top:-10px}.zym-wallet-card:after{bottom:-10px}.zym-wallet-card__benefit{padding:8px 4px}.zym-wallet-card__benefit svg{width:22px;height:22px}.zym-wallet-card__benefit strong{font-size:.62rem}.zym-wallet-card__body{padding:9px 7px}.zym-wallet-card__scope{font-size:.5rem}.zym-wallet-card__body h4{font-size:.76rem}.zym-wallet-card__body p{font-size:.52rem}.zym-wallet-card__action{padding:7px 7px 7px 0}.zym-wallet-card__action a{min-width:54px;min-height:34px;padding:0 8px;font-size:.62rem}.zym-wallet-card__state{font-size:.5rem}}[dir=rtl] .zym-wallet-card__body{direction:rtl;text-align:right}
/* 5.42.4 compact voucher context: optional promotion label stays inline. */
.zym-wallet-card{height:92px;min-height:92px}.zym-wallet-card__body{padding-top:7px;padding-bottom:7px}.zym-wallet-card__context{display:-webkit-box;max-width:100%;overflow:hidden;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.zym-wallet-card__promo{display:inline-block;margin:0 4px 1px 0;padding:1px 5px;border-radius:999px;background:var(--color-surface-low,#faf5fb);color:var(--color-primary,#C518C5);font-size:.46rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.zym-wallet-card__scope{display:inline;overflow:visible;-webkit-line-clamp:unset}.zym-wallet-card__body p{margin-top:2px}.zym-wallet-card__state{margin-top:3px;padding-top:3px;padding-bottom:3px}.zym-wallet-remove,.zym-wallet-issued{margin-top:2px}@media(max-width:480px){.zym-wallet-card{height:92px;min-height:92px}.zym-wallet-card__body{padding-top:6px;padding-bottom:6px}}

/* 5.42.5 — Compact spacing for the native voucher wallet only. */
.zymarg-os-voucher-wallet > .tab-bar {
	margin-bottom: .5rem;
}
.zymarg-os-voucher-wallet > .zymarg-voucher-wallet__status:empty {
	display: none;
}

/* 5.42.6 — Keep wallet removal/issued controls visible with wrapped or translated text. */
.zym-wallet-card {
	height: auto;
	min-height: 104px;
}
.zym-wallet-card__body {
	display: grid;
	grid-template-rows: auto auto auto minmax(12px, auto);
	align-content: center;
	justify-content: stretch;
}
.zym-wallet-card__context { grid-row: 1; }
.zym-wallet-card__body > p { grid-row: 2; }
.zym-wallet-card__state { grid-row: 3; }
.zym-wallet-remove,
.zym-wallet-issued {
	grid-row: 4;
	min-height: 12px;
	line-height: 1.2;
}
@media (max-width: 480px) {
	.zym-wallet-card {
		height: auto;
		min-height: 104px;
	}
}

/* v5.42.23 — Legacy Messages unread badge on buyer accounts only.
 * Current sidebar uses .zymarg-nav-count; retain support for the plugin's
 * .zymarg-nav-badge without changing vendor navigation or any counter logic.
 */
body.zymarg-myaccount-active .zymarg-myaccount-wrap .zymarg-nav-badge,
body.zymarg-myaccount-active .woocommerce-MyAccount-navigation .zymarg-nav-badge {
	background: var(--zym-color-danger, #e0245e);
	color: #fff;
	box-shadow: none;
}

/* 5.43.2 — Keep buyer purchase actions usable at narrow breakpoints. */
.zymarg-myaccount-wrap .zymarg-vo-view {
	min-width: 44px;
	min-height: 44px;
}
.zymarg-myaccount-wrap .zymarg-vo-btns {
	flex-wrap: wrap;
}

/* Receipt confirmation remains a usable touch target, including the compact button skin. */
.zymarg-myaccount-wrap .zymarg-ship-receive-btn.btn { min-height: 44px; }

.zymarg-myaccount-wrap .zymarg-ship-receive-btn.is-received:disabled {
 opacity: 1; color: inherit; background: transparent; border: 1px solid currentColor; box-shadow: none;
}
.zymarg-myaccount-wrap .zymarg-ship-receive-btn.btn:not(:disabled):hover,
.zymarg-myaccount-wrap .zymarg-ship-receive-btn.btn:not(:disabled):focus-visible {
 background: #a000ae; color: #fff;
}
.zymarg-myaccount-wrap .zymarg-ship-receive-btn.btn:focus-visible {
 outline: 2px solid #b347cc; outline-offset: 3px;
}
.zymarg-myaccount-wrap .zymarg-ship-receive-btn.btn { font-size: 14px; }
.zymarg-myaccount-wrap .zymarg-ship-receive-msg:not(:empty) { margin-top: 8px; }
