/* FLORAÉ — accessibility menu (button + panel) and the adjustments it applies. */

/* ---------- Button ---------- */
.a11y-btn {
  position: fixed; z-index: 45;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(16px + env(safe-area-inset-left, 0px));
  width: 48px; height: 48px; padding: 11px; border-radius: 50%;
  border: 2px solid var(--cream); background: var(--cocoa); color: var(--cream);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(46, 38, 34, .55);
  transition: transform .3s var(--ease);
}
.a11y-btn:hover { transform: scale(1.06); }
.a11y-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.a11y-btn svg { width: 24px; height: 24px; }
@media (min-width: 980px) { .a11y-btn { width: 52px; height: 52px; bottom: 22px; inset-inline-end: 22px; } .a11y-btn svg { width: 26px; height: 26px; } }

/* ---------- Panel ---------- */
.a11y-panel {
  position: fixed; z-index: 46;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 16px;
  width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 16px; font-family: var(--sans); font-size: 15px; line-height: 1.4;
}
@media (min-width: 980px) { .a11y-panel { bottom: 88px; inset-inline-end: 22px; } }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.a11y-head h2 { margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--cocoa); }
.a11y-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ivory); color: var(--cocoa); cursor: pointer; font-size: 18px; line-height: 1; }
.a11y-x:focus-visible, .a11y-opt:focus-visible, .a11y-size button:focus-visible, .a11y-reset:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.a11y-size span { font-weight: 700; }
.a11y-size output { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; color: var(--taupe-deep); }
.a11y-size button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--cream); color: var(--cocoa); font-weight: 700; font-size: 17px; cursor: pointer; }
.a11y-size button[disabled] { opacity: .4; cursor: not-allowed; }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opt {
  display: grid; justify-items: center; gap: 4px; text-align: center;
  min-height: 74px; padding: 10px 6px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--taupe-deep);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.a11y-opt svg { width: 24px; height: 24px; }
.a11y-opt[aria-pressed="true"] { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.a11y-reset { width: 100%; margin-top: 10px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--cocoa); font: inherit; font-weight: 700; cursor: pointer; }
.a11y-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Adjustments (classes on <html>) ---------- */
/* Text size: scale the page content only. The menu button and panel keep their size and place,
   so the controls are always reachable to undo it (zooming <body> pushed them off small screens). */
html.a11y-zoomed main, html.a11y-zoomed .site-header, html.a11y-zoomed .page-header,
html.a11y-zoomed .site-footer, html.a11y-zoomed .modal, html.a11y-zoomed .toasts { zoom: var(--a11y-zoom, 1); }

html.a11y-contrast {
  --cream: #ffffff; --ivory: #ffffff; --white: #ffffff; --sand: #f2f2f2;
  --ink: #000000; --cocoa: #000000; --muted: #1a1a1a; --taupe: #1a1a1a; --taupe-deep: #000000;
  --gold-ink: #5a3a00; --line: #555555; --line-strong: #222222;
}
html.a11y-contrast body.home { background: #ffffff; }
html.a11y-contrast .hero-lead, html.a11y-contrast .section-lead, html.a11y-contrast .bridal-copy p, html.a11y-contrast .story-copy p { color: #111111; }

html.a11y-gray main, html.a11y-gray .site-header, html.a11y-gray .page-header, html.a11y-gray .site-footer, html.a11y-gray .wa-float, html.a11y-gray .modal { filter: grayscale(1); }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #8a6a3d; outline-offset: 2px; }
html.a11y-links .btn, html.a11y-links .chip, html.a11y-links .product { outline: 2px dashed #8a6a3d; outline-offset: 2px; }

html.a11y-font body, html.a11y-font body *:not(svg):not(svg *) { font-family: Arial, 'Assistant', sans-serif !important; letter-spacing: normal !important; }

html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing dd, html.a11y-spacing label, html.a11y-spacing .hint { line-height: 2 !important; letter-spacing: .03em !important; word-spacing: .12em !important; }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 3l24 13-11 2-5 11z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto !important;
}
