#cookie-consent-root {
  --cc-bg: #fff;
  --cc-text: #171717;
  --cc-muted: #666;
  --cc-accent: #171717;
  --cc-border: #e7e7e7;
  color: var(--cc-text);
  font: inherit;
}

#cookie-consent-root *,
#cookie-consent-root *::before,
#cookie-consent-root *::after { box-sizing: border-box; }

#cookie-consent-root [hidden] { display: none !important; }

.cc-banner {
  position: fixed;
  z-index: 99998;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  background: var(--cc-bg);
  color: var(--cc-text);
  box-shadow: 0 12px 48px rgba(0,0,0,.16);
}

#cookie-consent-root[data-position="top"] .cc-banner {
  top: 24px;
  bottom: auto;
}

.cc-banner-copy { max-width: 610px; }
.cc-eyebrow {
  margin: 0 0 8px;
  color: var(--cc-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.cc-banner h2, .cc-dialog h2 {
  margin: 0 0 8px;
  color: var(--cc-text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 650;
}
.cc-banner-copy > p:last-child,
.cc-dialog-intro {
  margin: 0;
  color: var(--cc-muted);
  font-size: 13px;
  line-height: 1.6;
}
.cc-banner-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}
.cc-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--cc-accent);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cc-button-primary { background: var(--cc-accent); color: #fff; }
.cc-button-secondary { background: transparent; color: var(--cc-text); border-color: var(--cc-border); }
.cc-button:hover { opacity: .82; }
.cc-text-button {
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--cc-text);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cc-button:focus-visible, .cc-text-button:focus-visible, .cc-close:focus-visible,
.cc-switch input:focus-visible + span {
  outline: 2px solid var(--cc-accent);
  outline-offset: 3px;
}

.cc-overlay {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.48);
}
.cc-dialog {
  width: min(100%, 560px);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  background: var(--cc-bg);
  color: var(--cc-text);
  box-shadow: 0 20px 70px rgba(0,0,0,.24);
}
.cc-dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.cc-dialog-header h2 { font-size: 22px; }
.cc-close {
  width: 34px; height: 34px; border: 1px solid var(--cc-border);
  border-radius: 50%; background: transparent; color: var(--cc-text);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cc-dialog-intro { margin: 8px 0 18px; }
.cc-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--cc-border);
}
.cc-category h3 { margin: 0 0 5px; font-size: 14px; font-weight: 650; }
.cc-category p { max-width: 390px; margin: 0; color: var(--cc-muted); font-size: 12px; line-height: 1.5; }
.cc-always { flex: 0 0 auto; color: var(--cc-muted); font-size: 11px; font-weight: 600; }
.cc-switch { position: relative; flex: 0 0 auto; display: inline-flex; width: 42px; height: 24px; }
.cc-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cc-switch > span:first-of-type {
  width: 42px; height: 24px; border-radius: 20px;
  background: #b9b9b9; cursor: pointer; transition: background .18s;
}
.cc-switch > span:first-of-type::after {
  content: ""; display: block; width: 18px; height: 18px; margin: 3px;
  border-radius: 50%; background: white; transition: transform .18s;
}
.cc-switch input:checked + span:first-of-type { background: var(--cc-accent); }
.cc-switch input:checked + span:first-of-type::after { transform: translateX(18px); }
.cc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.cc-footnote { margin: 14px 0 18px; color: var(--cc-muted); font-size: 11px; line-height: 1.5; }
.cc-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.cc-no-scroll { overflow: hidden; }

@media (max-width: 700px) {
  .cc-banner {
    left: 12px; right: 12px; bottom: 12px;
    display: block; padding: 19px; gap: 16px;
  }
  #cookie-consent-root[data-position="top"] .cc-banner { top: 12px; }
  .cc-banner h2 { font-size: 18px; }
  .cc-banner-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 17px; }
  .cc-banner-actions .cc-text-button { grid-column: 1 / -1; }
  .cc-dialog { padding: 20px; }
  .cc-category { align-items: flex-start; }
  .cc-dialog-actions { flex-direction: column-reverse; }
  .cc-dialog-actions .cc-button { width: 100%; }
}
