/* Lavori24 consent UI · charcoal, paper and restrained gold · 2026-10-18.
   Scoped to consent; application typography/layout and consent data stay intact. */
.l24-cookie-consent,
.l24-cookie-consent *,
.l24-cookie-access,
.l24-cookie-access *,
.cookie-notice,
.cookie-notice * { box-sizing: border-box; }
.l24-cookie-consent {
  position: fixed; inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  z-index: 2147483000; display: flex; justify-content: center; pointer-events: none;
  font-family: "L24 Barlow", Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111315 !important; text-align: left; letter-spacing: normal; color-scheme: light;
}
.l24-cookie-consent .l24-cookie-consent__shell {
  width: min(920px, 100%); min-width: 0; max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  padding: 24px; border: 1px solid #c7ccd1; border-top: 3px solid #e7ac18; border-radius: 8px;
  background: #fff !important; box-shadow: 0 12px 48px #11131529; backdrop-filter: none; pointer-events: auto;
}
.l24-cookie-consent .l24-cookie-consent__copy { min-width: 0; }
.l24-cookie-consent p.l24-cookie-consent__eyebrow {
  margin: 0 0 8px; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #795400 !important;
}
.l24-cookie-consent h2 {
  margin: 0; color: #111315 !important; font: inherit; font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.2; font-weight: 700; letter-spacing: -.015em; text-transform: none;
}
.l24-cookie-consent p {
  margin: 10px 0 0; max-width: 80ch; font-size: 15px; line-height: 1.5; color: #535b63 !important;
}
.l24-cookie-consent .l24-cookie-consent__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.l24-cookie-consent .l24-cookie-consent__links a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; border-radius: 0;
  color: #343b42 !important; font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; background: transparent; box-shadow: none;
}
.l24-cookie-consent .l24-cookie-consent__panel {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.l24-cookie-consent .l24-cookie-consent__category {
  display: flex; min-height: 116px; align-items: start; justify-content: space-between; gap: 12px;
  margin: 0; padding: 16px; border: 1px solid #d9dde1; border-radius: 6px; background: #f5f6f7 !important;
}
.l24-cookie-consent .l24-cookie-consent__category strong {
  display: block; font-size: 15px; line-height: 1.3; color: #111315 !important; font-weight: 700;
}
.l24-cookie-consent .l24-cookie-consent__category small {
  display: block; margin-top: 7px; font-size: 13px; line-height: 1.45; color: #535b63 !important;
}
.l24-cookie-consent .l24-cookie-consent__category input {
  appearance: auto; flex: none; width: 22px; height: 22px; margin: 0; accent-color: #1b1d23; cursor: pointer;
}
.l24-cookie-consent .l24-cookie-consent__actions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; align-content: start;
}
.l24-cookie-consent .l24-cookie-consent__button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin: 0;
  padding: 10px 16px; border: 1px solid #78828b; border-radius: 6px; background: #fff !important;
  color: #111315 !important; box-shadow: none; font: inherit; font-size: 15px; line-height: 1.25; font-weight: 700;
  letter-spacing: normal; text-transform: none; text-decoration: none; cursor: pointer; transform: none;
  transition: background-color .15s, border-color .15s;
}
.l24-cookie-consent .l24-cookie-consent__button:hover { background: #f1f3f5 !important; border-color: #111315; transform: none; }
.l24-cookie-consent .l24-cookie-consent__button--save {
  grid-column: 1 / -1; background: #1b1d23 !important; color: #fff !important; border-color: #1b1d23;
}
.l24-cookie-consent .l24-cookie-consent__button--save:hover { background: #343b42 !important; }
.l24-cookie-consent :is(button, a, input):focus-visible,
.l24-cookie-access button:focus-visible { outline: 3px solid #b17a00; outline-offset: 3px; }
.l24-cookie-consent [hidden], .l24-cookie-access[hidden] { display: none !important; }
/* Reopen consent in the footer or scrolling content; no fixed widget. */
.l24-cookie-access { display: inline-flex; align-items: center; flex-wrap: wrap; color: inherit; min-width: 0; max-width: 100%; }
.l24-cookie-manage {
  position: static !important; inset: auto !important; z-index: auto; display: inline-flex; align-items: center;
  width: auto; max-width: 100%; min-height: 44px; margin: 0; padding: 4px 0; border: 0; border-radius: 0;
  background: transparent !important; box-shadow: none; backdrop-filter: none; color: inherit !important;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: underline;
  text-underline-offset: 4px; letter-spacing: normal; cursor: pointer; transform: none;
}
.l24-cookie-access-fallback {
  display: flex; justify-content: center; width: 100%; padding: 10px 20px max(18px, env(safe-area-inset-bottom));
  background: #f4f5f6; color: #343b42; border-top: 1px solid #d9dde1; font-family: system-ui, sans-serif;
}
/* The technical/privacy notice used by Nodo shares the same visual language. */
.cookie-notice {
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #c7ccd1 !important; border-top: 3px solid #e7ac18 !important; border-radius: 8px !important;
  background: #fff !important; color: #111315 !important; box-shadow: 0 12px 48px #11131529 !important;
  backdrop-filter: none !important; font-family: "L24 Barlow", Barlow, system-ui, sans-serif !important;
}
.cookie-notice .cookie-notice__eyebrow { color: #795400 !important; }
.cookie-notice :is(.cookie-notice__text, .cookie-notice__check) { color: #535b63 !important; }
.cookie-notice .cookie-notice__link { color: #343b42 !important; }
.cookie-notice .cookie-notice__button {
  min-height: 44px; border-radius: 6px !important; background: #1b1d23 !important; color: #fff !important; box-shadow: none !important;
}
@media (max-width: 600px) {
  .l24-cookie-consent { inset-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
  .l24-cookie-consent .l24-cookie-consent__shell { padding: 18px; gap: 16px; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .l24-cookie-consent .l24-cookie-consent__panel { grid-template-columns: 1fr; }
  .l24-cookie-consent .l24-cookie-consent__category { min-height: 0; padding: 12px; }
  .l24-cookie-consent .l24-cookie-consent__actions { grid-template-columns: 1fr; gap: 8px; }
  .l24-cookie-consent .l24-cookie-consent__button { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .l24-cookie-consent .l24-cookie-consent__button { transition: none; } }
/* Override legacy theme locks as well when an older app stylesheet is cached. */
html[data-suite-theme] .l24-cookie-consent h2,
html[data-suite-theme] .l24-cookie-consent .l24-cookie-consent__category strong,
html[data-suite-theme] .l24-cookie-consent .l24-cookie-consent__button { color: #111315 !important; }
html[data-suite-theme] .l24-cookie-consent p,
html[data-suite-theme] .l24-cookie-consent .l24-cookie-consent__category small { color: #535b63 !important; }
html[data-suite-theme] .l24-cookie-consent .l24-cookie-consent__eyebrow { color: #795400 !important; }
html[data-suite-theme] .l24-cookie-consent .l24-cookie-consent__links a { color: #343b42 !important; }
html[data-suite-theme] .l24-cookie-consent .l24-cookie-consent__button--save { color: #fff !important; }
