/* ============================================================
   MIRA HOME — Global Stylesheet
   Warm, natural, premium rattan & furniture e-commerce
   ============================================================ */

/* Reference numbers (.mira-ref + the self-hosted JetBrains Mono) live in
   their own small file so the standalone order receipt, which does not load
   this stylesheet, can link the very same rules. An @import has to come
   before every other rule, hence its place here. The ?v= is a manual cache
   key (this URL is not rewritten by utils/assetVersion.js, which only
   versions links in the HTML) — bump it whenever ref-number.css changes. */
@import url("/css/ref-number.css?v=2");

/* ------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------------ */
:root {
  /* --- Brand Colors --- */
  --color-primary:        #C8A882;   /* Warm rattan tan — main brand color    */
  --color-primary-dark:   #A8845E;   /* Deeper rattan brown — hover states    */
  --color-primary-light:  #E8D5BC;   /* Pale sand — light accents             */
  --color-primary-xlight: #F5EDE0;   /* Cream — section backgrounds           */

  /* --- Neutral Palette --- */
  --color-charcoal:       #2C2418;   /* Near-black warm charcoal — headings   */
  --color-brown-dark:     #4A3728;   /* Dark wood brown — subheadings         */
  --color-brown-mid:      #7A5C44;   /* Mid brown — body text                 */
  --color-brown-light:    #B08060;   /* Light brown — muted text              */
  --color-stone:          #D4C4B0;   /* Stone gray-beige — borders/dividers   */
  --color-sand:           #EDE0CE;   /* Sand — card backgrounds               */
  --color-cream:          #FAF6F0;   /* Off-white cream — page background     */
  --color-white:          #FFFFFF;

  /* --- Semantic Colors --- */
  --color-success:        #6B8F5E;   /* Muted olive green                     */
  --color-warning:        #C9935A;   /* Warm amber                            */
  --color-danger:         #B85C4A;   /* Terracotta red                        */
  --color-info:           #5A7A8A;   /* Muted teal                            */
  /* Soft tints of the two above, for notice panels behind readable text
     ("no longer available" / "only N left" notes in cart, wishlist, etc.) —
     derived from the same hues, not new colors. */
  --color-danger-soft:    rgba(184, 92, 74, 0.08);
  --color-warning-soft:   rgba(201, 147, 90, 0.14);
  --color-warning-text:   #8a5f2e;   /* Readable amber for text on light bg   */

  /* --- UI Surfaces --- */
  --bg-page:              #FAF6F0;   /* Main page background                  */
  --bg-section-alt:       #F5EDE0;   /* Alternate section background          */
  --bg-card:              #FFFFFF;
  --bg-dark:              #2C2418;   /* Dark section (footer, nav)            */
  --bg-dark-mid:          #3D3025;

  /* --- Typography --- */
  --font-display:         'Cormorant Garamond', Georgia, serif;
  --font-body:            'DM Sans', system-ui, sans-serif;
  /* Technical identifiers (PayMongo reference IDs, etc.). JetBrains Mono is
     self-hosted and declared in ref-number.css (imported above), so it is
     available on every page that loads this stylesheet; the rest of the
     stack is only a fallback while it loads. For a reference number, use
     the shared .mira-ref class rather than this token directly. */
  --font-mono:            'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs:    0.75rem;    /* 12px */
  --fs-sm:    0.875rem;   /* 14px */
  --fs-base:  1rem;       /* 16px */
  --fs-md:    1.125rem;   /* 18px */
  --fs-lg:    1.25rem;    /* 20px */
  --fs-xl:    1.5rem;     /* 24px */
  --fs-2xl:   2rem;       /* 32px */
  --fs-3xl:   2.5rem;     /* 40px */
  --fs-4xl:   3rem;       /* 48px */
  --fs-5xl:   3.75rem;    /* 60px */

  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;

  --lh-tight:   1.15;
  --lh-snug:    1.35;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  /* --- Spacing Scale --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  /* FIX (bug: buttons with no padding, e.g. order-confirmation's Track My
     Order/Continue Shopping and checkout's equivalent — see
     order-confirmation.css/checkout.css): --space-7 was referenced by
     `var()` in 3 places but never defined in this scale at all — an
     undefined custom property with no fallback makes the WHOLE shorthand
     `padding` declaration invalid, not just that one value, so it fell
     back to the browser default (0) instead of just using a slightly
     wrong number. Filling the actual gap here fixes it at the root for
     every current and future var(--space-7) use, instead of patching each
     call site with a different value. */
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* --- Borders & Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;
  --border-color: var(--color-stone);
  --border-light: #EDE0CE;

  /* --- Shadows --- */
  --shadow-xs:  0 1px 3px rgba(44, 36, 24, 0.06);
  --shadow-sm:  0 2px 8px rgba(44, 36, 24, 0.08);
  --shadow-md:  0 4px 16px rgba(44, 36, 24, 0.10);
  --shadow-lg:  0 8px 32px rgba(44, 36, 24, 0.12);
  --shadow-xl:  0 16px 48px rgba(44, 36, 24, 0.14);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout --- */
  --container-max:   1280px;
  --navbar-height:   72px;
  --navbar-height-sm: 60px;
}


/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Belt-and-suspenders alongside body's own overflow-x:hidden below —
     body's overflow alone doesn't reliably stop the VIEWPORT itself from
     growing to fit an overflowing descendant in every browser, which is
     what several admin pages hit on mobile (wide toolbars/tables making
     the whole page appear to render at a smaller effective scale). */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-brown-dark);
  background-color: var(--bg-page);
  /* FIX (direct user ask: shop's branch-filter sidebar "still not sticky"
     even after removing .shop-layout's own overflow-x:clip) — confirmed
     live (Playwright) that `<html>` (above), not `<body>`, is the actual
     scrolling/clipping element on this site (document.scrollingElement is
     HTML; body's own box is never height-constrained, so it never
     independently scrolls regardless of what its overflow says). Per the
     CSS overflow spec, though, an element with overflow-x set but no
     overflow-y computes overflow-y to 'auto' automatically — so this
     line, despite being functionally inert for real scrolling, still made
     `<body>` COUNT as a non-visible-overflow "scroll container" ancestor
     for every position:sticky descendant on every page, which is exactly
     what silently capped their sticky range to zero. html's own
     overflow-x: hidden above already provides the same real horizontal-
     clip protection (it's the element actually doing the clipping/
     scrolling), so this redundant copy is removed rather than kept. */
}

/* FIX (direct user ask: navbar, the shop sidebar, and the chat bubble all
   "disappear" the instant a Buy Now/Add to Cart modal opens) — exactly the
   same bug as the comment right above, just re-triggered by a different
   culprit: Bootstrap's modal component (and this site's own custom
   auth-modal.js) lock background scroll by setting `overflow: hidden`
   directly on <body> while a modal is open. Per the comment above, ANY
   non-visible overflow on <body> makes it count as a scroll-container
   ancestor for every position:sticky descendant on the page (.mira-navbar,
   .shop-sticky-header, .shop-sidebar, etc.) — confirmed live (Playwright):
   scrolled 800px down, setting `document.body.style.overflow = 'hidden'`
   snapped a sticky navbar from rect.top:0 to rect.top:-800 (i.e. off-screen
   above the viewport) with window.scrollY never moving. Since <html> (not
   <body>) is this site's real scrolling element, the fix is the same one
   already applied above: never let <body> end up with a non-visible
   overflow, and lock scroll on <html> instead. An !important stylesheet
   rule beats Bootstrap's plain (non-important) inline style. See main.js's
   'show.bs.modal'/'hidden.bs.modal' listeners for the matching html lock,
   and auth-modal.js (edited to target documentElement directly, since it
   sets body.style.overflow itself rather than going through Bootstrap). */
body.modal-open {
  overflow: visible !important;
}

html.mira-modal-scroll-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-charcoal);
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}

#main-content {
  min-height: calc(100vh - var(--navbar-height) - 320px);
}


/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */

/* Display / Headings use Cormorant Garamond */
h1, h2, h3,
.display-1, .display-2, .display-3, .display-4,
.heading-display {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  color: var(--color-brown-dark);
  line-height: var(--lh-snug);
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl)); }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl)); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
  line-height: var(--lh-relaxed);
  color: var(--color-brown-mid);
}

.text-muted {
  color: var(--color-brown-light) !important;
}

/* Section label — small uppercase label above headings */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

/* Section heading pattern */
.section-heading {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  line-height: var(--lh-tight);
}

/* Decorative italic accent */
.text-italic-accent {
  font-style: italic;
  color: var(--color-primary-dark);
}


/* ------------------------------------------------------------
   4. BOOTSTRAP OVERRIDES
   ------------------------------------------------------------ */

/* Container max-width alignment */
.container,
.container-lg,
.container-xl {
  max-width: var(--container-max);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  transition: all var(--transition-base);
  border-width: 1.5px;
}

.btn-primary {
  background-color: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-cream);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
  color: var(--color-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-cream);
  transform: translateY(-1px);
}

.btn-warm {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-charcoal);
  font-weight: var(--fw-semibold);
}
.btn-warm:hover,
.btn-warm:focus {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-warm {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-brown-dark);
}
.btn-outline-warm:hover {
  background-color: var(--color-primary-xlight);
  border-color: var(--color-primary-dark);
  color: var(--color-charcoal);
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-brown-mid);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover {
  background-color: var(--color-primary-xlight);
  color: var(--color-charcoal);
}

/* Button sizes */
.btn-sm {
  font-size: var(--fs-xs);
  padding: 0.45rem 1rem;
  letter-spacing: 0.05em;
}

.btn-lg {
  font-size: var(--fs-base);
  padding: 0.85rem 2rem;
  letter-spacing: 0.06em;
}

/* --- Form Controls --- */
.form-control,
.form-select {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: 0.65rem 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.20);
  outline: none;
  background-color: var(--bg-card);
  color: var(--color-charcoal);
}
.form-control::placeholder {
  color: var(--color-brown-light);
}
.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-brown-dark);
  margin-bottom: var(--space-2);
}

/* --- Badges --- */
.badge {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  padding: 0.3em 0.65em;
  border-radius: var(--radius-sm);
}

/* --- Cards --- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

/* --- Dropdowns --- */
.dropdown-menu {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-card);
  padding: var(--space-2) 0;
}
.dropdown-item {
  font-size: var(--fs-sm);
  color: var(--color-brown-dark);
  padding: 0.5rem 1rem;
  transition: background-color var(--transition-fast);
}
.dropdown-item:hover {
  background-color: var(--color-primary-xlight);
  color: var(--color-charcoal);
}

/* --- Breadcrumbs --- */
.breadcrumb {
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
}
.breadcrumb-item a {
  color: var(--color-brown-light);
}
.breadcrumb-item a:hover {
  color: var(--color-primary-dark);
}
.breadcrumb-item.active {
  color: var(--color-brown-mid);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-stone);
}

/* --- Pagination --- */
.page-link {
  color: var(--color-brown-dark);
  border-color: var(--border-color);
  font-size: var(--fs-sm);
  padding: 0.45rem 0.85rem;
  transition: all var(--transition-base);
}
.page-link:hover {
  background-color: var(--color-primary-xlight);
  border-color: var(--color-primary);
  color: var(--color-charcoal);
}
.page-item.active .page-link {
  background-color: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-cream);
}


/* ------------------------------------------------------------
   5. UTILITY CLASSES
   ------------------------------------------------------------ */

/* Backgrounds */
.bg-cream       { background-color: var(--bg-page) !important; }
.bg-sand        { background-color: var(--color-sand) !important; }
.bg-warm-light  { background-color: var(--bg-section-alt) !important; }
.bg-dark-warm   { background-color: var(--bg-dark) !important; }
.bg-primary-xlight { background-color: var(--color-primary-xlight) !important; }

/* Text colors */
.text-charcoal     { color: var(--color-charcoal) !important; }
.text-brown-dark   { color: var(--color-brown-dark) !important; }
.text-brown-mid    { color: var(--color-brown-mid) !important; }
.text-brown-light  { color: var(--color-brown-light) !important; }
.text-primary-warm { color: var(--color-primary) !important; }
.text-primary-dark { color: var(--color-primary-dark) !important; }

/* Borders */
.border-warm    { border-color: var(--border-color) !important; }
.border-sand    { border-color: var(--color-sand) !important; }

/* Section spacing */
.section-py     { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.section-py-sm  { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.section-py-lg  { padding-top: var(--space-24); padding-bottom: var(--space-24); }

/* Divider */
.divider-warm {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-8) 0;
}

/* Aspect ratios for product images */
.ratio-product  { aspect-ratio: 1 / 1; }
.ratio-portrait { aspect-ratio: 3 / 4; }
.ratio-landscape{ aspect-ratio: 4 / 3; }

/* Object fit */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Price styling */
.price {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
}
.price-original {
  font-weight: var(--fw-regular);
  color: var(--color-brown-light);
  text-decoration: line-through;
  font-size: 0.9em;
}
.price-sale {
  color: var(--color-danger);
}

/* Stock badge */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
}
.stock-badge.in-stock  { color: var(--color-success); }
.stock-badge.low-stock { color: var(--color-warning); }
.stock-badge.out-stock { color: var(--color-danger); }

/* Star ratings */
.stars {
  color: var(--color-warning);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
}


/* ------------------------------------------------------------
   6. TOAST NOTIFICATIONS
   ------------------------------------------------------------ */
.toast-container .toast {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: var(--fs-sm);
  min-width: 280px;
}
.toast-container .toast .toast-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.toast-container .toast.toast-success {
  border-left: 3px solid var(--color-success);
}
.toast-container .toast.toast-error {
  border-left: 3px solid var(--color-danger);
}
.toast-container .toast.toast-info {
  border-left: 3px solid var(--color-primary);
}


/* ------------------------------------------------------------
   7. SCROLLBAR STYLING
   ------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-sand);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}


/* ------------------------------------------------------------
   8. SELECTION COLOR
   ------------------------------------------------------------ */
::selection {
  background-color: var(--color-primary-light);
  color: var(--color-charcoal);
}


/* ------------------------------------------------------------
   9. PAGE TRANSITION (fade-in on load)
   ------------------------------------------------------------ */
#main-content {
  animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* ------------------------------------------------------------
   10. RESPONSIVE ADJUSTMENTS
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  :root {
    --navbar-height: var(--navbar-height-sm);
  }
  .section-py    { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .section-py-lg { padding-top: var(--space-20); padding-bottom: var(--space-20); }
}

@media (max-width: 767.98px) {
  .container,
  .container-lg,
  .container-xl {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .section-py    { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .section-py-sm { padding-top: var(--space-8);  padding-bottom: var(--space-8);  }
  .section-py-lg { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-sm);
  }
}

/* ============================================================
   QUICK ADD MODAL
   ============================================================ */
.quick-add-dialog { max-width: 420px; }

.quick-add-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.quick-add-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--color-stone);
}

.quick-add-category {
  font-size: var(--fs-xs);
  color: var(--color-brown-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.quick-add-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-charcoal);
  margin-bottom: 0.2rem;
}

.quick-add-price {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-dark);
  margin: 0;
}

/* Session 08 — the sale event banner (home + shop): a slim charcoal bar like the marquee strip, tag pill, name,
   end time and a link to the event's products. Wraps on small screens. */
.promo-banners { display: block; }
.promo-banner {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.promo-banner-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  font-size: var(--fs-sm);
}
.promo-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
}
.promo-banner-text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.promo-banner-desc { opacity: 0.8; }
.promo-banner-end { white-space: nowrap; opacity: 0.9; }
.promo-banner-count { margin-left: 0.25rem; color: var(--color-warning); font-weight: var(--fw-semibold); }
.promo-banner-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-4);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
.promo-banner-cta:hover { background-color: #fff; color: var(--color-charcoal); }
@media (max-width: 575.98px) {
  .promo-banner-inner { gap: var(--space-2); }
  .promo-banner-end { white-space: normal; }
  .promo-banner-cta { width: 100%; justify-content: center; min-height: 44px; }
}

/* Session 08 — sale events. The regular price struck through under the modal's price, and the event's tag. */
/* The same tag on cards (.product-badge--event), the product page (.pd-event-strip) and the cart. Self-contained,
   like .product-badge--rush, so it looks right where a page has no base .product-badge rule. */
.quick-add-price-was {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
  font-size: var(--fs-sm);
  color: var(--color-brown-light);
}
.quick-add-price-was[hidden] { display: none; }
.qa-event-tag,
.cart-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background-color: var(--color-danger-soft);
  color: var(--color-danger);
}
.product-badge--event {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background-color: var(--color-danger-soft);
  color: var(--color-danger);
}
.pd-event-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 0 0 0.6rem;
  padding: 0.45rem 0.75rem;
  font-size: var(--fs-sm);
  color: var(--color-danger);
  background-color: var(--color-danger-soft);
  border: 1px dashed rgba(184, 92, 74, 0.45);
  border-radius: 8px;
}
.pd-event-strip-label { font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.pd-event-strip-end { color: var(--color-brown-mid); }

/* Session 05: "For quotation" in place of a price — a customized item has
   none until Mira Home quotes it (public/js/price-display.js). Also used
   wherever a card or page prints that wording instead of an amount. */
.quick-add-price--quotation,
.price-quotation {
  font-style: italic;
  font-weight: var(--fw-medium);
  color: var(--color-brown-light);
}

/* The "Design Your Own" product card (shop, home, related products,
   wishlist). Its footer is ONE row like every other card: "For Quotation"
   where a price would be, then the bag button and the second button, which
   reads "Get Quote" (LABELS.requestShort in public/js/price-display.js, as
   short as "Buy Now"; the full "Request a Quotation" stays in its
   aria-label). The row only breaks when the card is physically too narrow to
   hold all three (a two-column phone grid): the buttons then drop under the
   pill instead of being squashed. Every other card is untouched. */
/* !important on purpose: the footer is laid out by page stylesheets loaded
   after this one (.products-grid in shop.css, .featured-grid in home.css),
   each fixing it to a single nowrap row. #related (product-detail.css) has
   its own copy of these rules, because an id selector with !important beats
   anything written here. */
.product-card-footer.product-card-footer--quotation {
  flex-wrap: wrap !important;
  gap: 8px 4px !important;
}
.product-card-footer--quotation .product-prices {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  align-items: flex-start;
}
.product-card-footer--quotation .product-card-footer-actions {
  flex: 1 1 auto !important;
  min-width: 0;
  margin-left: 0;
  justify-content: flex-end;
}
.product-card-footer--quotation .btn-add-cart {
  flex: 0 0 auto;
}
.product-card-footer--quotation .btn-buy-now-card {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  justify-content: center;
  padding-left: 0.6rem !important;
  padding-right: 0.6rem !important;
}
.product-card-footer--quotation .btn-buy-now-card .btn-cart-label {
  display: inline !important;
  white-space: nowrap;
}

/* Custom Quote badge - with "Quote" text */
.products-grid .product-card-footer .price-custom-quote,
.price-custom-quote {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary-dark, #6b4226);
  background: var(--color-primary-xlight, #f5ede2);
  border: 1.5px solid var(--color-primary-light, #d4b896);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
  /* FIX (direct user ask: "isn't that supposed to be not clickable since
     it does nothing?"): this is a static informational pill — it has no
     click handler and isn't wrapped in a link, so no transition/hover
     state should imply it's interactive. */
  cursor: default;
  letter-spacing: 0.02em;
}

.products-grid .product-card-footer .price-custom-quote i,
.price-custom-quote i {
  font-size: 0.6rem;
  color: var(--color-primary, #8a5a35);
}

/* Tablet screens, then mobile, then the smallest phones: the widest query comes first so each smaller one wins on the screens it is meant for. */
@media (max-width: 991px) {
  .products-grid .product-card-footer .price-custom-quote,
  .price-custom-quote {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }
  
  .products-grid .product-card-footer .price-custom-quote i,
  .price-custom-quote i {
    font-size: 0.55rem;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .products-grid .product-card-footer .price-custom-quote,
  .price-custom-quote {
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
    gap: 0.2rem;
  }
  
  .products-grid .product-card-footer .price-custom-quote i,
  .price-custom-quote i {
    font-size: 0.5rem;
  }
}

@media (max-width: 375px) {
  .products-grid .product-card-footer .price-custom-quote,
  .price-custom-quote {
    font-size: 0.45rem;
    padding: 0.15rem 0.4rem;
    gap: 0.15rem;
  }
  
  .products-grid .product-card-footer .price-custom-quote i,
  .price-custom-quote i {
    font-size: 0.4rem;
  }
}

/* On the "Design Your Own" card the pill shares its row with two buttons, so it is a little tighter than on a card where it stands alone.
   Same specificity as the shop rules above and later in the file, scoped by width so the phone sizes above keep winning below 768px. */
@media (min-width: 768px) {
  .product-card-footer.product-card-footer--quotation .price-custom-quote {
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
  }
}
@media (max-width: 480px) {
  .product-card-footer.product-card-footer--quotation .price-custom-quote {
    font-size: 0.5rem;
    padding: 0.15rem 0.3rem;
    letter-spacing: 0;
  }
  .product-card-footer--quotation .product-card-footer-actions {
    gap: 3px;
  }
}

.quick-add-close {
  background: none;
  border: none;
  color: var(--color-brown-light);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}
.quick-add-close:hover { color: var(--color-charcoal); }

.quick-add-body {
  padding: 1rem 1.25rem;
  max-height: 60vh;
  overflow-y: auto;
  /* FIX (direct user ask: "when it is customizable... when I scroll the
     modal is not being scrolled but the product page behind it") — once
     this reaches its own top/bottom, stop the scroll here instead of
     letting the browser hand the gesture to the page behind the modal
     (scroll chaining); -webkit-overflow-scrolling adds momentum scrolling
     on iOS Safari, where a fixed-position ancestor can otherwise make this
     inner scroll area feel unresponsive to touch. */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.quick-add-section { margin-bottom: 1.1rem; }

.quick-add-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-brown-dark);
  margin-bottom: 0.5rem;
}

.quick-add-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.qa-option-btn {
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--color-stone);
  border-radius: 20px;
  background: var(--bg-card);
  font-size: var(--fs-sm);
  color: var(--color-brown-mid);
  cursor: pointer;
  transition: all 0.18s;
}
.qa-option-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.qa-option-btn.selected {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-xlight);
  color: var(--color-primary-dark);
  font-weight: var(--fw-semibold);
}
.qa-option-btn:disabled,
.qa-option-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.qa-option-btn:disabled:hover {
  border-color: var(--color-stone);
  color: var(--color-brown-mid);
}

.quick-add-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qa-qty-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-stone);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
}
.qa-qty-btn:hover:not(:disabled) {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-xlight);
}
.qa-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.qa-qty-val {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  min-width: 24px;
  text-align: center;
}

.quick-add-stock {
  font-size: var(--fs-xs);
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.quick-add-error {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  margin-top: 0.3rem;
  margin-bottom: 0;
  min-height: 1rem;
}

/* Pre-order lead-time notice (products.is_preorder) — same dashed
   "heads up" language as the product page's .pd-preorder-note. Amber/
   yellow (--color-warning) so it reads as "needs waiting". */
.qa-preorder-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--color-brown-mid);
  background-color: rgba(201,147,90,0.08);
  border: 1px dashed rgba(201,147,90,0.4);
  border-radius: 8px;
}

.qa-preorder-notice i {
  color: var(--color-warning);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Session 07 — rush orders (products.is_rush_order). Muted teal
   (--color-info): no status pill or other badge uses it, and it reads
   apart from Pre-Order's amber.
   .product-badge--rush is self-contained so it also looks right where a
   page has no base .product-badge rule (wishlist cards, the product
   page's related grid); the shop/home stylesheets load after this one, so
   their own .product-badge size/padding still win and the Rush badge
   matches the badges beside it. */
.product-badge--rush {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background-color: rgba(90,122,138,0.14);
  color: var(--color-info);
}
.product-badge--rush i {
  margin-right: 0.25em;
  font-size: 0.95em;
}
/* The rush note: Add to Cart / Buy Now modal and the AR page. Same dashed
   "heads up" box as the pre-order note, in the rush teal. */
.qa-rush-notice,
.rush-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--color-brown-mid);
  background-color: rgba(90,122,138,0.07);
  border: 1px dashed rgba(90,122,138,0.4);
  border-radius: 8px;
}
.rush-note[hidden] { display: none; }
.qa-rush-notice i,
.rush-note i {
  color: var(--color-info);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Testing-deployment notice (checkout won't actually charge) — same box
   shape as .qa-preorder-notice above and now the SAME amber/--color-warning
   tint too (direct user ask: make it catch the eye, not read as a quiet
   FYI). Kept to one line by design (short wording) rather than truncating/
   ellipsis, which would hide part of the message; overflow-x is a
   defensive fallback only. */
.qa-testing-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--color-brown-mid);
  background-color: rgba(201,147,90,0.14);
  border: 1px dashed rgba(201,147,90,0.55);
  border-radius: 8px;
  white-space: nowrap;
  overflow-x: auto;
}

.qa-testing-notice i {
  color: var(--color-warning);
  flex-shrink: 0;
}

.quick-add-footer {
  padding: 0.75rem 1.25rem 1.25rem;
}

.btn-qa-add {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(74, 55, 40, 0.25);
}
.btn-qa-add:hover {
  background: var(--color-brown-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(44, 36, 24, 0.3);
}
.btn-qa-add:active { transform: translateY(0); }

.btn-qa-buy {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 2px solid var(--color-charcoal, #2c2420);
  color: var(--color-charcoal, #2c2420);
  border-radius: var(--radius-lg, 12px);
  font-size: var(--fs-sm, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
  margin-top: var(--space-2);
}
.btn-qa-buy:hover {
  background: var(--color-charcoal, #2c2420);
  color: var(--color-cream, #faf6f0);
}

/* Note textarea inside modal — replaces inline styles */
.qa-custom-note-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--color-stone);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  resize: vertical;
  line-height: 1.5;
  background: var(--bg-page);
  color: var(--color-charcoal);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 64px;
}

.qa-custom-note-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.15);
}

.qa-custom-note-input::placeholder {
  color: var(--color-stone);
}

.qa-custom-note-hint {
  font-size: 0.72rem;
  color: var(--color-brown-light);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Quantity display in modal */
.qa-qty-val {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  min-width: 28px;
  text-align: center;
  background: var(--bg-section-alt);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* ── Sold Out overlay — shared by every product card image, storefront
   and admin alike (shop, home, related products, wishlist, admin
   product grid). A dark translucent circle centered over the image
   with white "Sold Out" text, matching the marketplace-style treatment
   used across the rest of the industry. Markup: a
   `.product-sold-out-overlay > .product-sold-out-circle > .product-sold-out-text`
   dropped inside any image wrapper that already has
   `position: relative; overflow: hidden`. ── */
.product-sold-out-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.product-sold-out-overlay .product-sold-out-circle {
  width: 58%;
  aspect-ratio: 1 / 1;
  max-width: 190px;
  min-width: 64px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem;
}
.product-sold-out-overlay .product-sold-out-text {
  font-family: var(--font-body);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.85rem, 3.6vw, 1.15rem);
  letter-spacing: normal;
  line-height: 1.2;
}

/* ── Global Mobile Improvements (FIX 23) ── */
@media (max-width: 768px) {
  /* Navbar */
  .mira-navbar { padding: .5rem 0; }
  .navbar-brand { font-size: 1.1rem; }

  /* Hero Section */
  .hero-section { padding: 3rem 1rem; }
  .hero-section h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }

  /* Product Cards in any grid */
  .product-card { border-radius: 8px; }
  .product-card .card-body { padding: .65rem; }
  .product-card .card-title { font-size: .85rem; }
  .product-card .product-price { font-size: .9rem; }

  /* Cart page */
  .cart-item-row { flex-wrap: wrap; gap: .5rem; }
  .cart-item-image { width: 60px; height: 60px; }

  /* Checkout */
  .checkout-layout { flex-direction: column; }
  .checkout-form { width: 100%; }
  .checkout-summary { width: 100%; }

  /* Order history */
  .oh-layout { flex-direction: column; }
  .oh-sidebar { width: 100%; margin-bottom: 1.5rem; }
  .oh-content { width: 100%; }

  /* Profile */
  .profile-layout { flex-direction: column; }
  .profile-sidebar { width: 100%; }

  /* Buttons */
  .btn-primary, .btn-secondary { width: 100%; margin-bottom: .5rem; }

  /* Tables: horizontal scroll */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
}

/* ============================================================
   ADMIN/OWNER VIEWING STORE — HIDE SHOPPING
   ============================================================ */
/* Wishlist heart on product cards — tap area. The heart is only shown on a
   sold-out card now, where it is the one button a customer can press (Add to
   Cart / Buy Now are disabled there), yet at phone widths it is drawn as
   small as 20px. On a touch screen an invisible ring widens what a finger
   can hit to about 40px; nothing moves, and the neighbours it reaches over
   are the disabled buttons. Here (not in shop.css) because the same button
   is used on the home, product and wishlist pages too. */
@media (pointer: coarse) {
  .btn-wishlist-card {
    position: relative;
  }
  .btn-wishlist-card::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
  }
}

body.admin-viewing .btn-add-to-cart,
body.admin-viewing .btn-buy-now,
body.admin-viewing [data-action="add-to-cart"],
body.admin-viewing .btn-wishlist,
body.admin-viewing .btn-wishlist-card,
body.admin-viewing #navCart,
body.admin-viewing #navWishlist {
  display: none !important;
}

body.admin-viewing .navbar-cart-btn,
body.admin-viewing .navbar-wishlist-btn {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   "+N more" ITEM POPOVER (admin Orders list)
   For a collapsed multi-item order row with no room to expand
   inline (see public/js/order-items-popover.js). The up/down
   chevron on the trigger is the ONLY control that opens/closes
   it — it does not close on outside click, scroll, or on viewing
   an image inside it. Trigger stays inline text-sized so the
   collapsed row's footprint never changes; the panel itself is
   appended to <body> and positioned with `fixed` coordinates so
   it always floats above any ancestor's `overflow: hidden`
   (table scroll containers) and is never clipped. My Orders uses
   its own inline expand/collapse instead (see order-history.css)
   — not this component.
   ============================================================ */
.more-items-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--color-brown-light, #A8845E);
  font-weight: var(--fw-medium, 500);
  cursor: pointer;
}

.more-items-trigger:hover,
.more-items-trigger[aria-expanded="true"] {
  color: var(--color-primary-dark, #8A6642);
}

.more-items-trigger i {
  transition: transform var(--transition-fast, 0.15s ease);
}

.more-items-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.more-items-popover {
  position: fixed;
  /* FIX (bug: visibly overlapped the image-viewer modal while it stays
     open behind it — see order-items-popover.js, which deliberately
     leaves the popover open while viewing an item's image). Bootstrap's
     modal backdrop sits at z-index 1050+; keeping this BELOW that (but
     still above ordinary page chrome — admin's sidebar/topbar top out
     around z-index 100) means the backdrop visually covers the popover
     the moment a modal opens, with no need to actually close it. */
  z-index: 1040;
  min-width: 200px;
  max-width: 280px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-card, #fff);
  border: 1px solid var(--color-border, #e8ddd0);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(44, 36, 24, 0.12));
  padding: 6px;
}

.more-items-popover-row {
  display: flex;
  align-items: center;
  /* FIX (correction round: was centered per-row, same as the main table's
     product cell — reverted for the same reason: rows of different name
     lengths don't line up with each other, which read as messy inside a
     compact list. Plain left-aligned, like every other dropdown/menu list
     in the app. */
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: var(--fs-sm, 0.875rem);
  color: var(--color-charcoal, #2C2418);
}

.more-items-popover-row:hover {
  background: var(--bg-page, #FAF7F2);
}

.more-items-popover-row img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--color-border, #e8ddd0);
}

.more-items-popover-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-items-popover-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.more-items-popover-variant {
  font-size: var(--fs-xs, 0.75rem);
  color: var(--adm-nav-text-muted, #A08060);
}

/* Shared "which branch" note for customer-facing pages — order
   confirmation, My Orders, Track Order — wherever a branch name/address is
   shown as lighter secondary info alongside an order. */
.branch-note {
  font-size: 0.8rem;
  color: var(--color-brown-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* Branch addresses that open the branch on Google Maps (footer, policy
   pages, contact page, order confirmation/receipt, admin). Direct user ask:
   "no need to edit the ui, just making them clickable" — the address keeps
   its own colour/size; only an underline on hover shows it's a link. */
.maps-text-link { color: inherit; text-decoration: none; }
.maps-text-link:hover,
.maps-text-link:focus-visible { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.mira-product-link { color: inherit; text-decoration: none; }
.mira-product-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ============================================================
   PROFILE PICTURES (2026-10-24; header + pop-up 2026-10-26)
   views/partials/avatar.ejs draws the picture INSIDE the circle a page already
   draws for the initials (.mh-pichead-avatar, .oh-avatar, .adm-user-avatar, ...):
   the circle keeps its own size and look, the picture fills it. If the file ever
   goes missing the <img> removes itself and the initials show again.
   views/partials/avatar-header.ejs = the picture, name and ONE "Edit photo" button at the
   very top of Profile (customers) and Security Settings (Staff and Admin).
   views/partials/avatar-controls.ejs = the pop-up that button opens.
   ============================================================ */
.has-avatar-img { overflow: hidden; }
.has-avatar-img .mh-avatar-initials { display: none; }
.mh-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---- header: circle with a camera badge, the name, one button ---- */
.mh-pichead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.mh-pichead-photo {
  position: relative;
  flex: none;
  line-height: 0;
  border-radius: 50%;
}
.mh-pichead-photo[data-bs-toggle] { cursor: pointer; }

.mh-pichead-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow-md);
}

.mh-pichead-camera {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-xlight);
  color: var(--color-charcoal);
  border: 3px solid var(--bg-card);
  box-shadow: 0 1px 4px rgba(44, 36, 24, 0.18);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mh-pichead-camera:hover { background: var(--color-charcoal); color: var(--color-cream); }
.mh-pichead-camera:focus-visible,
.mh-pichead-edit:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

.mh-pichead-text {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mh-pichead-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--color-charcoal);
  overflow-wrap: anywhere;
}

.mh-pichead-meta {
  font-size: var(--fs-sm);
  color: var(--color-brown-light);
  overflow-wrap: anywhere;
}

.mh-pichead-edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* customer look (Staff and Admin use .btn-adm-secondary) */
.mh-pichead--pf .mh-pichead-edit {
  padding: 0 var(--space-5);
  border: 1.5px solid var(--color-stone);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.mh-pichead--pf .mh-pichead-edit:hover { background: var(--color-primary-xlight); border-color: var(--color-primary); }

/* Staff / Admin: a plain white card at the top of Security Settings */
.mh-pichead--adm { padding: var(--space-5) var(--space-6); }
.mh-pichead--adm .mh-pichead-avatar { width: 84px; height: 84px; font-size: 1.8rem; border-width: 3px; }
.mh-pichead--adm .mh-pichead-camera { width: 32px; height: 32px; font-size: 0.85rem; }
.mh-pichead--adm .mh-pichead-name {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

/* the notice after a change sits on its own line under the row */
.mh-pichead .mh-avatar-flash { flex: 1 0 100%; margin: 0; }

@media (max-width: 575.98px) {
  .mh-pichead { gap: var(--space-3) var(--space-4); }
  .mh-pichead-avatar { width: 88px; height: 88px; font-size: 1.9rem; }
  .mh-pichead--adm { padding: var(--space-4); }
  .mh-pichead--adm .mh-pichead-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .mh-pichead--adm .mh-pichead-meta { font-size: var(--fs-xs); }
  .mh-pichead-edit { flex: 1 0 100%; margin-left: 0; }
}

/* ---- pop-up: the picture, who can see it, and the choices ---- */
.mh-avatar-modal .modal-dialog { max-width: 420px; }

.mh-avatar-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mh-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.mh-avatar-note,
.mh-avatar-hint {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--color-brown-light);
}

.mh-avatar-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  margin-top: var(--space-5);
}

/* one choice per row; tap-sized on a phone */
.mh-avatar-opt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.mh-avatar-opt i { flex: none; width: 22px; text-align: center; font-size: 1.05rem; color: var(--color-primary-dark); }
.mh-avatar-opt:hover { background: var(--color-primary-xlight); border-color: var(--color-stone); color: var(--color-charcoal); }
.mh-avatar-opt:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }
.mh-avatar-opt:disabled { opacity: 0.55; cursor: not-allowed; }
/* "Take a photo" stays out of sight until the script finds a camera (display: flex above would otherwise beat the hidden attribute) */
.mh-avatar-opt[hidden] { display: none; }

.mh-avatar-opt--main { background: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-cream); }
.mh-avatar-opt--main i { color: var(--color-cream); }
.mh-avatar-opt--main:hover { background: var(--color-brown-dark); border-color: var(--color-brown-dark); color: var(--color-cream); }

.mh-avatar-opt--danger { color: var(--color-danger); }
.mh-avatar-opt--danger i { color: var(--color-danger); }
.mh-avatar-opt--danger:hover { background: var(--color-danger-soft); border-color: rgba(184, 92, 74, 0.35); color: var(--color-danger); }

.mh-avatar-status {
  min-height: 1.2em;
  margin: var(--space-2) 0 0;
  font-size: var(--fs-xs);
  color: var(--color-brown-light);
}
.mh-avatar-status.is-error { color: var(--color-danger); }

/* a phone is short: a smaller picture and tighter gaps keep the choices on one screen */
@media (max-width: 575.98px) {
  .mh-avatar-preview { width: 96px; height: 96px; font-size: 2rem; }
  .mh-avatar-note { margin-top: var(--space-3); }
  .mh-avatar-options { margin-top: var(--space-4); }
}

/* "Take a photo" window (2026-11-02): the shared camera window (views/partials/camera-capture-modal.ejs), with the preview drawn as the
   circle the picture will be. The server keeps the middle square of the shot and object-fit: cover on a square shows that same part. */
#avatarCameraModal .cam-capture-modal-body video {
  width: min(100%, 55vh);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
}
#avatarCameraModal .cam-capture-modal-footer button { min-height: 44px; }
/* a phone held sideways is short: a smaller circle and tighter bands keep Cancel / Capture on screen without the window having to scroll */
@media (max-height: 480px) {
  #avatarCameraModal .cam-capture-modal-header,
  #avatarCameraModal .cam-capture-modal-body { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  #avatarCameraModal .cam-capture-modal-footer { padding-top: 0.6rem; padding-bottom: max(0.6rem, env(safe-area-inset-bottom)); }
  #avatarCameraModal .cam-capture-modal-body video { width: min(100%, 34vh); }
}

/* the notice after a change (drawn by avatar-header.ejs) */
.mh-avatar-flash {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
}
.mh-avatar-flash--success {
  background: rgba(90, 158, 110, 0.08);
  border-color: rgba(90, 158, 110, 0.3);
  color: #3f7a55;
}
.mh-avatar-flash--error {
  background: var(--color-danger-soft);
  border-color: rgba(184, 92, 74, 0.3);
  color: var(--color-danger);
}

/* Big profile picture (2026-11-16): a circle marked `mh-avatar-zoom` (views/partials/avatar.ejs, avatarZoom: true) opens the picture in a pop-up,
   built by public/js/avatar-viewer.js. The hand cursor and the small grow-on-hover only apply once that script has set html.has-avatar-viewer, so a
   page that has the markup but not the script shows nothing misleading. A circle without a picture (no .has-avatar-img) is never marked as clickable. */
html.has-avatar-viewer .mh-avatar-zoom.has-avatar-img {
  cursor: zoom-in;
  transition: transform var(--transition-fast);
}
html.has-avatar-viewer .mh-avatar-zoom.has-avatar-img:hover { transform: scale(1.06); }
.mh-avatar-zoom:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

/* The pop-up itself: a small overlay of its own (public/js/avatar-viewer.js), not a Bootstrap modal, so it can sit on top of another modal (the
   Customers edit pop-up, the Wishlist list) and Escape closes only the picture. Fixed to the screen, above the navbar, the maintenance bar and
   Bootstrap's modals; when a modal is open the script places it INSIDE that modal, which does not change how it looks. */
.mh-avatar-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  background: rgba(44, 36, 24, 0.55);
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility 0s linear 0.16s;
}
.mh-avatar-viewer.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.mh-avatar-viewer-content {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  background: var(--bg-card);
}
.mh-avatar-viewer-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-light);
}
.mh-avatar-viewer-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  color: var(--color-charcoal);
}
/* a 44 px tap target at the right even when the title is short */
.mh-avatar-viewer-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-brown-light);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mh-avatar-viewer-close:hover { background: var(--color-primary-xlight); color: var(--color-charcoal); }
.mh-avatar-viewer-close:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: -2px; }
.mh-avatar-viewer-body { padding: var(--space-4); }
/* The whole stored square (the circles elsewhere only show its middle). The size follows the file (--mh-avz-cap, set by the script: an old 256 px
   picture is not stretched into a blur), the screen width and, on a phone held sideways, the screen height. */
.mh-avatar-viewer-img {
  display: block;
  width: min(78vw, var(--mh-avz-cap, 384px), calc(100vh - 8rem));
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-stone);
  transition: opacity var(--transition-fast);
}
.mh-avatar-viewer-img.is-loading { opacity: 0; }
@media (max-height: 480px) {
  .mh-avatar-viewer-body { padding: var(--space-3); }
}

/* "Choose which part is shown" (2026-11-16): inside the same pop-up, a picked / taken photo is shown in a square frame with the circle the small
   pictures use drawn inside it (public/js/avatar-crop.js draws it, public/js/avatar-upload.js drives it). It takes the place of the choices while a
   photo is being framed (.is-cropping on the panel). The frame is the stored square; outside the circle is dimmed, not hidden, because the big picture
   shows the whole square. */
.mh-avatar-choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.mh-avatar-panel.is-cropping .mh-avatar-choices { display: none; }

.mh-avatar-crop {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.mh-avatar-crop[hidden] { display: none; }

.mh-avatar-crop-help {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--color-brown-light);
}

/* as big as the pop-up, the screen height and 320 px allow, never under 160 px (a phone held sideways is short) */
.mh-avatar-crop-stage {
  position: relative;
  width: min(100%, max(160px, min(320px, 46vh)));
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-charcoal);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.mh-avatar-crop-stage.is-dragging { cursor: grabbing; }
.mh-avatar-crop-stage:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

/* sized and moved by the script; it never takes the pointer, the frame does */
.mh-avatar-crop-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* the circle: a thin white ring, everything outside it dimmed (the frame's own overflow clips the dimming) */
.mh-avatar-crop-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 100vmax rgba(44, 36, 24, 0.55);
  pointer-events: none;
}

.mh-avatar-crop-zoom {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 320px;
  margin-top: var(--space-2);
  color: var(--color-brown-light);
}
.mh-avatar-crop-zoom i { flex: none; font-size: 1rem; }
.mh-avatar-crop-zoom input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  accent-color: var(--color-primary-dark);
  background: transparent;
}
.mh-avatar-crop-zoom input[type="range"]:disabled { opacity: 0.45; }

.mh-avatar-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  width: 100%;
  margin-top: var(--space-2);
}
.mh-avatar-crop-actions .mh-avatar-opt--main { grid-column: 1 / -1; justify-content: center; }
/* the two small choices under "Save photo": text only, centred, so "Choose another" fits two to a row even at 320 px */
.mh-avatar-opt--center {
  justify-content: center;
  text-align: center;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}
@media (max-height: 480px) {
  .mh-avatar-crop-help { display: none; }
}

/* Sidebar footer (Staff and Admin): the circle is a link to Security > Profile Picture. */
.adm-user-avatar-link {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  line-height: 0;
  text-decoration: none;
}
.adm-user-avatar-link:hover .adm-user-avatar { box-shadow: 0 0 0 2px var(--color-primary-light); }
.adm-user-avatar-link:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

/* ============================================================
   EMAIL REMINDER (2026-10-24) - a customer who signed up with Facebook and skipped the email.
   .email-reminder-bar: the calm bar under the navbar (views/partials/navbar.ejs) in two states, "add your email" and "we sent you a link".
   .es-*: small helpers of the "Set up your email first" step (views/partials/email-setup-modal.ejs, public/js/email-setup.js); the step
   itself is built from the address pop-up's own .pf-modal / .pf-input / .btn-pf-* classes.
   ============================================================ */
.email-reminder-bar {
  background: var(--color-primary-xlight, #f5ede2);
  border-bottom: 1px solid var(--color-stone, #D4C4B0);
  color: var(--color-brown-dark, #4A3728);
  font-size: 0.85rem;
  line-height: 1.45;
}
.email-reminder-bar[hidden] { display: none; }
.email-reminder-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.email-reminder-bar__icon { flex-shrink: 0; font-size: 1.1rem; color: var(--color-primary-dark, #A8845E); }
.email-reminder-bar__text { flex: 1 1 auto; min-width: 0; }
.email-reminder-bar__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.email-reminder-bar__btn {
  border: 1px solid var(--color-primary-dark, #A8845E);
  background: transparent;
  color: var(--color-brown-dark, #4A3728);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  min-height: 32px;
}
.email-reminder-bar__btn:hover { background: var(--color-primary-dark, #A8845E); color: #fff; }
.email-reminder-bar__close {
  border: 0;
  background: transparent;
  color: var(--color-brown-mid, #7A5C44);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.email-reminder-bar__close:hover { background: rgba(74, 55, 40, 0.08); }
@media (max-width: 575.98px) {
  .email-reminder-bar__inner { flex-wrap: wrap; padding: 0.6rem 0.75rem; gap: 0.5rem; }
  .email-reminder-bar__text { flex-basis: calc(100% - 3.5rem); }
  .email-reminder-bar__actions { width: 100%; justify-content: space-between; }
}

.es-error { display: block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--color-danger, #B85C4A); }
.es-error:empty { display: none; }
.es-note { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--color-brown-mid, #7A5C44); }
.es-masked { overflow-wrap: anywhere; }

/* ── Password field: bar + checklist + match line + message (2026-11-07) ──────────────────────────────────────
   ONE look for every "choose a password" form (register, sign-up pop-up, Profile, customer / social / Staff / Admin reset, both
   Security pages, Manage Staff, Staff Customers). The markup is built by public/js/password-field.js into an empty placeholder
   <div class="pwf">; the rule is public/js/password-rules.js. Tokens only, so it looks right on every page that loads this file. */
.pwf { margin-top: 0.5rem; }
.pwf-meter { display: flex; align-items: center; gap: 0.6rem; }
.pwf-meter[hidden],
.pwf-hints[hidden],
.pwf-alert[hidden] { display: none; }
.pwf-track { flex: 1; height: 4px; background: var(--border-light); border-radius: 99px; overflow: hidden; }
.pwf-fill { height: 100%; width: 0; border-radius: 99px; background-color: var(--color-danger); transition: width 0.3s ease, background-color 0.3s ease; }
.pwf-label { min-width: 44px; font-size: 0.72rem; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--color-danger); }
.pwf[data-state="weak"] .pwf-fill { background-color: var(--color-danger); }
.pwf[data-state="weak"] .pwf-label { color: var(--color-danger); }
.pwf[data-state="fair"] .pwf-fill { background-color: var(--color-warning); }
.pwf[data-state="fair"] .pwf-label { color: var(--color-warning); }
.pwf[data-state="good"] .pwf-fill { background-color: var(--color-primary-dark); }
.pwf[data-state="good"] .pwf-label { color: var(--color-primary-dark); }
.pwf[data-state="strong"] .pwf-fill { background-color: var(--color-success); }
.pwf[data-state="strong"] .pwf-label { color: var(--color-success); }

.pwf-hints { list-style: none; margin: 0.4rem 0 0; padding: 0; font-size: 0.76rem; line-height: 1.75; color: var(--color-brown-mid); }
.pwf-hints li { display: flex; align-items: center; gap: 0.45rem; }
.pwf-hints li i { flex: 0 0 auto; font-size: 0.8rem; }
.pwf-hints li.is-met { color: var(--color-success); }

/* the part under the confirm input (the placeholder for it adds .pwf-foot) */
.pwf-foot { margin-top: 0.25rem; }
.pwf-match { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.4; }
.pwf-match:empty { display: none; }
.pwf-match.is-ok { color: var(--color-success); }
.pwf-match.is-bad { color: var(--color-danger); }

/* why a click was not sent */
.pwf-alert { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.5rem; padding: 0.55rem 0.8rem; border: 1px solid var(--color-danger); border-radius: var(--radius-md); background: var(--color-danger-soft); color: var(--color-danger); font-size: 0.8rem; line-height: 1.4; overflow-wrap: anywhere; }
.pwf-alert i { flex: 0 0 auto; margin-top: 0.1rem; }

/* the submit button after a password was really changed: locked for 2 minutes with a countdown (the `cooldown` option of password-field.js).
   Plain disabled looks (the admin button fades to 50%, the profile button does not change at all) would either hide the words or look like
   an ordinary button, so it keeps its colours at 75%, shows the not-allowed cursor, does not react to hover, and WRAPS its words instead of
   running past a phone screen (the admin button is white-space: nowrap otherwise). */
button.pwf-cooling:disabled { white-space: normal; text-align: left; line-height: 1.3; opacity: 0.75; cursor: not-allowed; transform: none; box-shadow: none; background-color: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-cream); }
button.pwf-cooling i { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .pwf-fill { transition: none; }
}
