/* ============================================================
   Cookie consent banner (built by cookie-consent.js)
   Loaded on every page. Every color/font is defined on
   .cc-banner itself (--cc-*), because the pages define
   different global tokens, and every property the buttons
   need is set explicitly so page-level button rules can't leak in.

   Reject and Accept must look identical (same size, same style):
   rejecting has to be as easy as accepting.
   ============================================================ */
.cc-banner {
  --cc-accent: #b89968;
  --cc-ink: #1a1714;
  --cc-ink-body: #39342d;
  --cc-ink-soft: #6b6760;
  --cc-line: #ece6dc;
  --cc-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  position: fixed; z-index: 2000;              /* above the editor's drawers, overlays and phone tab bar */
  left: 50%; bottom: 20px; transform: translateX(-50%);
  box-sizing: border-box; width: calc(100% - 40px); max-width: 880px;
  display: flex; align-items: center; gap: 28px;
  padding: 20px 24px;
  background: #fff; border: 1px solid var(--cc-line); border-top: 3px solid var(--cc-accent); border-radius: 16px;
  box-shadow: 0 10px 40px rgba(26,23,20,.18);
  font-family: var(--cc-sans); font-size: 14px; line-height: 1.55; color: var(--cc-ink-body); text-align: left;
}
.cc-banner[hidden] { display: none; }
.cc-banner *, .cc-banner *::before, .cc-banner *::after { box-sizing: border-box; }
.cc-banner p { margin: 0; }
.cc-title { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--cc-ink); }
.cc-banner a { color: var(--cc-ink); text-decoration: underline; text-underline-offset: 2px; }
.cc-banner a:hover { color: var(--cc-accent); }
.cc-current { margin-top: 6px !important; font-size: 13px; color: var(--cc-ink-soft); }

.cc-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cc-btn {
  min-width: 112px; height: auto; margin: 0; padding: 12px 20px;
  background: #fff; color: var(--cc-ink); border: 1px solid var(--cc-ink); border-radius: 10px; box-shadow: none;
  font-family: var(--cc-sans); font-size: 14px; font-weight: 600; line-height: 1;
  letter-spacing: normal; text-transform: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cc-btn:hover { background: var(--cc-ink); color: #fff; }
.cc-btn:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .cc-banner {
    flex-direction: column; align-items: stretch; gap: 16px;
    bottom: 12px; width: calc(100% - 24px);
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .cc-btn { flex: 1; min-height: 46px; font-size: 15px; }
}

@media print { .cc-banner { display: none !important; } }
