:root {
  --cc-bg: #ffffff;
  --cc-panel: #ffffff;
  --cc-text: #111827;
  --cc-muted: #43506a;
  --cc-border: #dce2eb;
  --cc-primary: #c92d38;
  --cc-primary-hover: #df3541;
  --cc-gold: #b5a264;
  --cc-focus: #d7c57f;
  --cc-radius: 14px;
  --cc-shadow: 0 18px 55px rgba(0, 0, 0, .42);
  --cc-font: Arial, Helvetica, sans-serif;
}

.cc-lock-scroll { overflow: hidden; }

.cc-root,
.cc-root * { box-sizing: border-box; }

.cc-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  font-family: var(--cc-font);
  color: var(--cc-text);
}

.cc-root.cc-visible { display: block; }

.cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .54);
  backdrop-filter: blur(2px);
}

.cc-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  background: var(--cc-bg);
  box-shadow: var(--cc-shadow);
}

.cc-heading {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}

.cc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cc-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cc-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cc-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  background: #fff;
  color: var(--cc-text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.cc-close:hover { background: #f5f7fa; }

.cc-copy {
  max-width: 780px;
  margin: 0;
  color: var(--cc-muted);
  font-size: 16px;
  line-height: 1.55;
}

.cc-copy a,
.cc-settings-link {
  color: var(--cc-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cc-button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #bfc8d5;
  border-radius: 8px;
  background: transparent;
  color: var(--cc-text);
  font: 700 15px/1.2 var(--cc-font);
  cursor: pointer;
}

.cc-button:hover { background: #f3f5f8; }
.cc-button-primary { border-color: var(--cc-primary); background: var(--cc-primary); color: #fff; }
.cc-button-primary:hover { border-color: var(--cc-primary-hover); background: var(--cc-primary-hover); }

.cc-button:focus-visible,
.cc-switch input:focus-visible + .cc-slider,
.cc-floating-settings:focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 3px;
}

.cc-settings { display: none; }
.cc-root.cc-settings-open .cc-summary { display: none; }
.cc-root.cc-settings-open .cc-settings { display: block; }

.cc-categories {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--cc-border);
  border-bottom: 1px solid var(--cc-border);
}

.cc-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cc-border);
  background: transparent;
}

.cc-category:last-child { border-bottom: 0; }

.cc-category h3 { margin: 0 0 6px; font-size: 17px; }
.cc-category p { margin: 0; color: var(--cc-muted); font-size: 14px; line-height: 1.45; }
.cc-always-on {
  align-self: center;
  padding: 7px 11px;
  border: 1px solid #9be7b1;
  border-radius: 999px;
  background: #effcf3;
  color: #167236;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cc-switch { position: relative; align-self: center; width: 50px; height: 28px; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-slider { position: absolute; inset: 0; border-radius: 999px; background: #62656c; cursor: pointer; transition: .2s; }
.cc-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 4px; top: 4px; border-radius: 50%; background: #fff; transition: .2s; }
.cc-switch input:checked + .cc-slider { background: var(--cc-primary); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(22px); }

.cc-floating-settings {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147482000;
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--cc-gold);
  border-radius: 50%;
  background: #111214;
  color: var(--cc-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  cursor: pointer;
}

.cc-floating-settings.cc-visible { display: grid; place-items: center; }
.cc-floating-settings:hover { color: #090a0b; background: var(--cc-gold); }
.cc-floating-settings svg { width: 27px; height: 27px; display: block; }

.cc-external-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed #777a82;
  border-radius: 10px;
  background: #f3f3f3;
  color: #202124;
  text-align: center;
}

.cc-external-placeholder[hidden],
[data-cookie-category="external"][hidden] {
  display: none !important;
}

.cc-external-placeholder p { max-width: 560px; margin: 0 0 14px; line-height: 1.45; }
.cc-external-placeholder .cc-button { color: #fff; background: var(--cc-primary); }

@media (max-width: 640px) {
  .cc-panel { left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); max-height: calc(100vh - 20px); overflow-y: auto; padding: 20px; }
  .cc-actions { display: grid; }
  .cc-button { width: 100%; }
  .cc-category { grid-template-columns: 1fr auto; padding: 14px; }
  .cc-category { padding-left: 0; padding-right: 0; }
  .cc-floating-settings { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-slider,
  .cc-slider::before { transition: none; }
}

.cc-root {
  bottom: auto;
  height: 100vh;
  height: 100dvh;
}

.cc-panel {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .cc-panel {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
}
