/* ============================================================
   WIDGETS.CSS · Brebu Nou
   ------------------------------------------------------------
   Floating overlays + the granular cookie modal with 3 tabs.

   Layers (low → high z-index):
     1. Cookie banner   · bottom slide-up               z 9000
     2. Cookie FAB      · bottom-right floating button  z 8500
     3. Cookie modal    · fullscreen overlay            z 10000

   The modal follows the Cookiebot pattern (Consent / Details /
   About tabs) but is dressed in the Brebu Nou aesthetic:
   Essex + Chantilly palette, 1px Stone Hearth hairlines, no
   shadowed cards (modal overlay is the one allowed exception),
   editorial spacing, Helvetica Neue everywhere.

   The dialog reaches a comfortable 720px on desktop, full-screen
   on phones. Tables of cookies are scrollable both vertically
   (within the body) and horizontally (if the screen is narrow).
   ============================================================ */


/* ============================================================
   1. UTILITIES
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   2. COOKIE BANNER · GDPR consent slide-up
   ============================================================ */

/* When cookie banner is visible, the body gets `.has-cookie-banner` so the
   floating toolbar can lift above it on small screens (avoids overlap). */

.cookie-banner {
  position: fixed;
  /* Respect iPhone home indicator + Android nav bar */
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  left: 24px;
  right: 24px;

  background: var(--chantilly-pure);
  border: 1px solid var(--stone-hearth);
  box-shadow: 0 12px 48px rgba(43, 35, 27, 0.16);

  padding: 30px 40px;
  z-index: 9000;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1),
    opacity 0.3s ease;
}
.cookie-banner.hidden {
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  pointer-events: none;
}

/* Container inherits page gutters; inside the floating banner we don't need them. */
.cookie-banner > .container {
  max-width: 100%;
  padding: 0;
}

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cookie-text h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  margin-bottom: 8px;
  color: var(--essex);
}
.cookie-text p {
  font-size: 0.875rem;
  color: var(--essex);
  line-height: 1.65;
  margin-bottom: 8px;
  font-weight: 300;
}
.cookie-text p:last-of-type {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-bottom: 0;
}
.cookie-text a {
  color: var(--essex);
  text-decoration: underline;
}
.cookie-text a:hover {
  color: var(--rustic-taupe);
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 220px;
}
/* Galaxy Fold (280px) needs to shrink the min-width to avoid container
   overflow → horizontal scrollbar on the body. */
@media (max-width: 320px) {
  .cookie-buttons { min-width: 0; }
}

.cookie-btn {
  padding: 14px 22px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.cookie-btn.primary {
  background: var(--essex);
  color: var(--chantilly);
  border-color: var(--essex);
}
.cookie-btn.primary:hover {
  background: var(--essex-light);
  border-color: var(--essex-light);
}
.cookie-btn.secondary {
  background: transparent;
  color: var(--essex);
  border-color: var(--rustic-taupe);
}
.cookie-btn.secondary:hover {
  background: var(--essex);
  color: var(--chantilly);
  border-color: var(--essex);
}
.cookie-btn.tertiary {
  background: transparent;
  color: var(--text-soft);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0.01em;
  border-color: transparent;
  padding: 12px 14px;
}
.cookie-btn.tertiary:hover {
  color: var(--essex);
}


/* ============================================================
   3. FLOATING TOOLBAR · dark dock anchored to right edge
   ------------------------------------------------------------
   All persistent action buttons (scroll-top, cookie modules,
   accessibility) live inside a single essex-green container
   that sticks out from the right edge of the viewport like
   a side-anchored toolbox. Inside the dark container, buttons
   are light (chantilly-pure) ghost squares with rustic-taupe
   borders, giving high contrast against the green backing.

   Visual stack order, top to bottom:
     1. Scroll-to-top (visible only when scrolled)
     2. Cookie modules
     3. Accessibility
   ============================================================ */

.floating-toolbar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 8500;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.floating-toolbar > * {
  pointer-events: auto;
}

/* Icon-only square button · base style for FAB + scroll-top + a11y */
.floating-btn,
.cookie-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--chantilly-pure);
  color: var(--essex);
  border: 1px solid var(--rustic-taupe);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1),
    opacity 0.3s ease;
}
.floating-btn:hover,
.cookie-fab:hover {
  background: var(--rustic-taupe);
  color: var(--chantilly);
  border-color: var(--rustic-taupe);
}
.floating-btn:focus-visible,
.cookie-fab:focus-visible {
  outline: 2px solid var(--essex);
  outline-offset: 3px;
}
.floating-btn.hidden,
.cookie-fab.hidden {
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  /* Collapse height so the stack doesn't reserve empty space */
  height: 0;
  width: 0;
  border-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Icon containers */
.floating-btn-icon,
.cookie-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floating-btn-icon svg,
.cookie-fab-icon svg { display: block; }

/* Text labels are hidden by default · icons + aria-label + title suffice */
.floating-btn-text,
.cookie-fab-text {
  display: none;
}


/* ============================================================
   3b. SKIP-TO-CONTENT · WCAG 2.1 AA · invisible until focused
   ============================================================ */

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--essex);
  color: var(--chantilly);
  padding: 12px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10001;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 16px;
  outline: 2px solid var(--essex);
  outline-offset: 3px;
}


/* ============================================================
   3c. A11Y MODAL · accessibility panel
   ------------------------------------------------------------
   Opens from the floating accessibility button. Same visual
   language as the cookie modal: chantilly-pure bg, stone-hearth
   borders, no rounded corners. Lists toggle options.
   ============================================================ */

.a11y-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.2s ease;
}
.a11y-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.a11y-modal.hidden .a11y-modal-dialog {
  transform: translateY(12px);
}

.a11y-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 38, 0.55);
  cursor: pointer;
}

.a11y-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--chantilly-pure);
  border: 1px solid var(--stone-hearth);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.a11y-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--stone-hearth);
}
.a11y-modal-header h2 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--essex);
  margin: 0;
}
.a11y-modal-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
}
.a11y-modal-close:hover {
  color: var(--essex);
  border-color: var(--stone-hearth);
}

.a11y-modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  flex: 1;
}

.a11y-group {
  margin-bottom: 24px;
}
.a11y-group:last-child {
  margin-bottom: 0;
}
.a11y-group-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rustic-taupe);
  margin: 0 0 12px;
}

.a11y-fontsize-controls {
  display: flex;
  gap: 8px;
}
.a11y-fontsize-btn {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: 1px solid var(--stone-hearth);
  color: var(--essex);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.a11y-fontsize-btn:hover {
  border-color: var(--essex);
}
.a11y-fontsize-btn.active {
  background: var(--essex);
  color: var(--chantilly);
  border-color: var(--essex);
}

.a11y-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--stone-hearth);
}
.a11y-toggle-row:first-child {
  border-top: none;
  padding-top: 0;
}
.a11y-toggle-label {
  font-size: 0.9375rem;
  color: var(--essex);
  font-weight: 300;
  cursor: pointer;
}

/* Reuse the cookie-toggle visual for a11y toggles. */
/* Shared toggle switch · used by both a11y panel and cookie modal.
   Track + thumb dimensions and motion are identical; only selectors differ.
   Inputs are visually hidden but keyboard-accessible. */
.a11y-toggle,
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.a11y-toggle input,
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.a11y-toggle-track,
.cookie-toggle-track {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--chantilly-pure);
  border: 1px solid var(--stone-hearth);
  position: relative;
  transition: border-color 0.25s ease;
}
.a11y-toggle-track::before,
.cookie-toggle-track::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--stone-hearth);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1),
    background 0.25s ease;
}
.a11y-toggle input:checked ~ .a11y-toggle-track,
.cookie-toggle input:checked ~ .cookie-toggle-track {
  border-color: var(--essex);
}
.a11y-toggle input:checked ~ .a11y-toggle-track::before,
.cookie-toggle input:checked ~ .cookie-toggle-track::before {
  background: var(--essex);
  transform: translateX(20px);
}
.a11y-toggle input:focus-visible ~ .a11y-toggle-track,
.cookie-toggle input:focus-visible ~ .cookie-toggle-track {
  outline: 2px solid var(--rustic-taupe);
  outline-offset: 2px;
}

.a11y-modal-footer {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--stone-hearth);
  display: flex;
  justify-content: flex-end;
}
.a11y-reset-btn {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--rustic-taupe);
  color: var(--essex);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.a11y-reset-btn:hover {
  background: var(--essex);
  color: var(--chantilly);
  border-color: var(--essex);
}


/* ============================================================
   3d. A11Y PAGE-LEVEL STATES · applied to html via toggles
   ============================================================ */

html.a11y-grayscale {
  filter: grayscale(1);
}
html.a11y-high-contrast {
  filter: contrast(1.4);
}
html.a11y-invert {
  filter: invert(1) hue-rotate(180deg);
}
html.a11y-invert img,
html.a11y-invert video {
  filter: invert(1) hue-rotate(180deg);
}
html.a11y-underline-links a {
  text-decoration: underline !important;
}
html.a11y-readable-font,
html.a11y-readable-font * {
  font-family: Verdana, Tahoma, Geneva, sans-serif !important;
}


/* ============================================================
   4. COOKIE MODAL · shell, tabs, body, footer
   ============================================================ */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.2s ease;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.hidden .cookie-modal-dialog {
  transform: translateY(12px);
}

html.cookie-modal-open,
html.cookie-modal-open body {
  overflow: hidden;
}

/* Pause page animations while modal is open · prevents background 'movement' through transparent backdrop. */
html.cookie-modal-open .hero-slide {
  animation-play-state: paused;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 32, 27, 0.55);  /* essex-deep at 55% · page visible behind */
  cursor: pointer;
}

.cookie-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--chantilly-pure);
  border: 1px solid var(--stone-hearth);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}


/* ----- Header · title + close ----- */

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 36px 22px;
  border-bottom: 1px solid var(--stone-hearth);
  flex-shrink: 0;
}
.cookie-modal-header h2 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--essex);
  margin: 0;
}

.cookie-modal-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
}
.cookie-modal-close:hover {
  color: var(--essex);
  border-color: var(--stone-hearth);
}
.cookie-modal-close:focus-visible {
  outline: 2px solid var(--rustic-taupe);
  outline-offset: 2px;
}


/* ----- Tabs · Consent / Details / About ----- */

.cookie-modal-tabs {
  display: flex;
  gap: 0;
  padding: 0 36px;
  border-bottom: 1px solid var(--stone-hearth);
  flex-shrink: 0;
}
.cookie-tab {
  padding: 16px 0;
  margin-right: 36px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}
.cookie-tab:hover {
  color: var(--rustic-taupe);
}
.cookie-tab.active {
  color: var(--essex);
}
.cookie-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--essex);
}
.cookie-tab:focus-visible {
  outline: 2px solid var(--rustic-taupe);
  outline-offset: 4px;
}


/* ----- Body · scrollable panel container ----- */

.cookie-modal-body {
  padding: 26px 36px;
  overflow-y: auto;
  flex: 1;
}

/* Tab panels are visible by default; only the .hidden modifier hides them. */
.cookie-tab-panel.hidden {
  display: none;
}


/* ============================================================
   5. CONSIMTAMANT TAB · per-category items with toggle/pill
   ============================================================ */

.cookie-modal-intro {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--essex);
  font-weight: 300;
  margin: 0 0 28px;
}
.cookie-modal-intro strong {
  font-weight: 500;
  color: var(--essex);
}
.cookie-modal-intro em {
  font-style: normal;
  font-weight: 500;
  color: var(--essex);
}

.cookie-category {
  padding: 22px 0;
  border-top: 1px solid var(--stone-hearth);
}
.cookie-category:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category-header h3 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--essex);
  margin: 0;
}
.cookie-category-header h3 label {
  cursor: pointer;
}
.cookie-category p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--essex);
  font-weight: 300;
  margin: 0;
}
.cookie-category p strong {
  font-weight: 500;
  color: var(--essex);
}
.cookie-category--forbidden .cookie-category-header h3 {
  color: var(--text-mute);
}
.cookie-category--forbidden p {
  color: var(--text-soft);
}


/* ----- Pills (mandatory / forbidden) ----- */

.cookie-category-pill {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 11px;
  border: 1px solid var(--rustic-taupe);
  color: var(--rustic-taupe);
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-category-pill--off {
  border-color: var(--stone-hearth);
  color: var(--text-mute);
}


/* Toggle switch styles are defined alongside .a11y-toggle (shared selectors). */


/* ============================================================
   6. DETALII TAB · per-category cookie tables
   ============================================================ */

.cookie-detail-block {
  padding: 24px 0;
  border-top: 1px solid var(--stone-hearth);
}
.cookie-detail-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cookie-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-detail-header h3 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--essex);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cookie-detail-count {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--rustic-taupe);
  padding: 3px 9px;
  border: 1px solid var(--stone-hearth);
}

.cookie-detail-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--essex);
  font-weight: 300;
  margin: 0 0 18px;
}

.cookie-detail-placeholder {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-soft);
  font-weight: 300;
  margin: 0;
  padding: 16px 18px;
  background-color: var(--chantilly);
  background-image: linear-gradient(var(--stone-hearth-soft), var(--stone-hearth-soft));
  border-left: 2px solid var(--rustic-taupe);
}


/* ----- Cookie table ----- */

.cookie-table-wrap {
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--stone-hearth);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: transparent;
}
.cookie-table thead th {
  text-align: left;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 12px 14px;
  border-bottom: 1px solid var(--stone-hearth);
  white-space: nowrap;
  background: var(--stone-hearth-soft);
}
.cookie-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--stone-hearth-soft);
  color: var(--essex);
  font-weight: 300;
  vertical-align: top;
  line-height: 1.55;
}
.cookie-table tbody tr:first-child td {
  border-top: none;
}
.cookie-table tbody code {
  font-family: "SF Mono", Menlo, Consolas, Monaco, monospace;
  font-size: 0.78rem;
  color: var(--essex);
  background: transparent;
  padding: 1px 6px;
  border: 1px solid var(--stone-hearth);
  word-break: break-all;
}


/* ============================================================
   7. DESPRE TAB · legal text blocks
   ============================================================ */

.cookie-about-block {
  padding: 18px 0;
  border-top: 1px solid var(--stone-hearth);
}
.cookie-about-block:first-of-type {
  border-top: none;
  padding-top: 0;
}
.cookie-about-block h3 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rustic-taupe);
  margin: 0 0 12px;
}
.cookie-about-block p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--essex);
  font-weight: 300;
  margin: 0 0 12px;
}
.cookie-about-block p:last-child { margin-bottom: 0; }
.cookie-about-block p strong {
  font-weight: 500;
  color: var(--essex);
}
.cookie-about-block a {
  color: var(--essex);
  text-decoration: underline;
}
.cookie-about-block a:hover {
  color: var(--rustic-taupe);
}

.cookie-about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.cookie-about-list li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--essex);
  font-weight: 300;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.cookie-about-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 0;
  line-height: inherit;
  color: var(--stone-hearth);
  font-weight: 400;
}
.cookie-about-list li strong {
  font-weight: 500;
  color: var(--essex);
}

.cookie-about-links a {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--essex);
  text-decoration: none;
  margin-right: 0;
}


/* ============================================================
   8. FOOTER · legal note + 3 actions
   ============================================================ */

.cookie-modal-footer {
  padding: 20px 36px 28px;
  background: var(--chantilly-pure);
  border-top: 1px solid var(--stone-hearth);
  flex-shrink: 0;
}
.cookie-modal-legal {
  font-size: 0.72rem;
  color: var(--text-mute);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}
.cookie-modal-legal a {
  color: var(--essex);
  text-decoration: underline;
}
.cookie-modal-legal a:hover {
  color: var(--rustic-taupe);
}

.cookie-modal-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}
.cookie-modal-actions .cookie-btn {
  padding: 13px 16px;
  font-size: 0.66rem;
}


/* ============================================================
   9. RESPONSIVE · ≤ 700px
   ============================================================ */

@media (max-width: 700px) {

  .cookie-modal { padding: 0; }
  .cookie-modal-dialog {
    max-width: 100%;
    max-height: 100vh;
    max-height: 100svh;
    border: none;
  }

  .cookie-modal-header  { padding: 22px 22px 16px; }
  .cookie-modal-header h2 { font-size: 1.125rem; }

  .cookie-modal-tabs    { padding: 0 22px; overflow-x: auto; }
  .cookie-tab           { margin-right: 24px; padding: 14px 0; font-size: 0.65rem; }

  .cookie-modal-body    { padding: 22px; }
  .cookie-modal-footer  { padding: 18px 22px 24px; }

  .cookie-modal-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Cookie table · stack rows on phones */
  .cookie-table { font-size: 0.78rem; }
  .cookie-table thead { display: none; }
  .cookie-table tbody tr { display: block; padding: 14px 12px; border-top: 1px solid var(--stone-hearth-soft); }
  .cookie-table tbody tr:first-child { border-top: none; }
  .cookie-table tbody td { display: block; border: none; padding: 4px 0; }
  .cookie-table tbody td:first-child { padding-bottom: 8px; }
  .cookie-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: inline-block;
    width: 80px;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-mute);
  }

  /* FAB · icon-only on small screens */
  .cookie-fab {
    right: 16px;
    bottom: 16px;
    padding: 10px 12px;
  }
  .cookie-fab-text { display: none; }
}