/* consent.css — restyle per site by overriding these variables, e.g.
   :root { --cc-accent: #e4572e; --cc-font: "Inter", sans-serif; } */
:root {
  --cc-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cc-bg: #ffffff;
  --cc-text: #1c1c1e;
  --cc-muted: #5b5b66;
  --cc-border: rgba(0, 0, 0, .1);
  --cc-accent: #1c1c1e;
  --cc-accent-text: #ffffff;
  --cc-radius: 16px;
  --cc-btn-radius: 999px;
  --cc-shadow: 0 20px 50px -12px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .06);
  --cc-z: 2147483000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-cc-theme="light"]) {
    --cc-bg: #1d1d21;
    --cc-text: #f3f3f5;
    --cc-muted: #a6a6b0;
    --cc-border: rgba(255, 255, 255, .12);
    --cc-accent: #f3f3f5;
    --cc-accent-text: #111114;
  }
}

.cc-banner, .cc-dialog {
  font-family: var(--cc-font);
  color: var(--cc-text);
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  line-height: 1.5;
  box-sizing: border-box;
}
.cc-banner *, .cc-dialog * { box-sizing: border-box; }

.cc-banner {
  position: fixed;
  z-index: var(--cc-z);
  padding: 22px 24px;
  animation: cc-in .35s cubic-bezier(.2, .8, .2, 1);
}
.cc-banner--bottom { left: 16px; right: 16px; bottom: 16px; max-width: 980px; margin: 0 auto; }
.cc-banner--bottom-left { left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px)); }
.cc-banner--center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); }

.cc-title { font-family: var(--cc-heading-font, var(--cc-font)); font-size: 1.05rem; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.cc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-banner .cc-brand { margin-bottom: 8px; }
.cc-logo { display: flex; flex: none; }
.cc-logo img { display: block; width: auto; max-width: 160px; object-fit: contain; }
.cc-logo + .cc-title { padding-left: 12px; border-left: 1px solid var(--cc-border); }
.cc-body { font-size: .92rem; color: var(--cc-muted); margin: 0 0 16px; }
.cc-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn {
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: 10px 20px; border-radius: var(--cc-btn-radius);
  cursor: pointer; border: 1.5px solid var(--cc-accent);
  transition: transform .15s, opacity .15s, background .15s;
}
.cc-btn:hover { opacity: .88; }
.cc-btn:active { transform: scale(.98); }
.cc-btn:focus-visible, .cc-switch:focus-visible, .cc-close:focus-visible {
  outline: 3px solid var(--cc-accent); outline-offset: 2px;
}
.cc-btn--primary { background: var(--cc-accent); color: var(--cc-accent-text); }
.cc-btn--ghost { background: transparent; color: var(--cc-text); border-color: var(--cc-border); }

@media (max-width: 560px) {
  .cc-banner .cc-actions .cc-btn { flex: 1 1 calc(50% - 5px); }
  .cc-banner .cc-btn--ghost { flex-basis: 100%; }
}

/* preferences dialog */
.cc-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0; overflow: auto;
}
.cc-dialog::backdrop { background: rgba(10, 10, 14, .45); backdrop-filter: blur(3px); }
.cc-dialog[open] { animation: cc-pop .25s cubic-bezier(.2, .8, .2, 1); }
.cc-form { padding: 24px; margin: 0; }
.cc-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cc-close {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; padding: 0; margin: -6px -8px -6px 0;
  background: none; border: 0; border-radius: 50%;
  color: var(--cc-muted); cursor: pointer; transition: color .15s, background .15s;
}
.cc-close svg { display: block; }
.cc-close:hover { color: var(--cc-text); background: var(--cc-border); }

.cc-cats { margin-bottom: 18px; }
.cc-cat { padding: 14px 0; border-top: 1px solid var(--cc-border); }
.cc-cat:last-child { border-bottom: 1px solid var(--cc-border); }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.cc-cat-name { font-weight: 600; font-size: .95rem; }
.cc-cat-desc { margin: 4px 0 0; font-size: .85rem; color: var(--cc-muted); }
.cc-always { font-size: .8rem; font-weight: 600; color: var(--cc-muted); }
.cc-foot { margin: 14px 0 0; font-size: .85rem; color: var(--cc-muted); }

/* floating cookie button (shown once a choice has been made) */
.cc-fab {
  position: fixed; z-index: calc(var(--cc-z) - 1); bottom: 16px;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: var(--cc-bg); color: var(--cc-text);
  border: 1px solid var(--cc-border); box-shadow: var(--cc-shadow);
  cursor: pointer; opacity: .9;
  transition: transform .15s, opacity .15s, color .15s;
  animation: cc-pop .25s cubic-bezier(.2, .8, .2, 1);
}
.cc-fab--right { right: 16px; }
.cc-fab--left { left: 16px; }
.cc-fab svg { display: block; }
.cc-fab:hover { opacity: 1; transform: scale(1.06); color: var(--cc-accent); }
.cc-fab:focus-visible { outline: 3px solid var(--cc-accent); outline-offset: 2px; }
@media print { .cc-fab { display: none; } }

/* toggle switch */
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 44px; height: 26px; border-radius: 999px; margin: 0;
  background: var(--cc-border); position: relative; cursor: pointer;
  transition: background .2s;
}
.cc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
.cc-switch:checked { background: var(--cc-accent); }
.cc-switch:checked::after { transform: translateX(18px); background: var(--cc-accent-text); }

/* placeholder shown in place of blocked iframes; keep the blocked frame hidden even if site CSS sets display */
[data-consent][hidden] { display: none !important; }
/* placeholder shown in place of blocked iframes */
.cc-placeholder {
  font-family: var(--cc-font);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center;
  background: repeating-linear-gradient(45deg, rgba(127,127,127,.06) 0 12px, rgba(127,127,127,.1) 12px 24px);
  border: 1px dashed rgba(127, 127, 127, .4); border-radius: 12px;
  color: inherit; font-size: .9rem;
}
.cc-placeholder p { margin: 0; max-width: 40ch; }

@keyframes cc-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes cc-pop { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-dialog[open], .cc-fab { animation: none; }
}
