:root {
  --ink: #3D3A35;
  --camel: #A8875A;
  --azure: #308CE7;
  --white: #FFFFFF;
  --line: rgba(61, 58, 53, 0.14);
}

/* ---------- Banner ---------- */
.cc-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 30px;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Alegreya', serif;
  color: var(--ink);
}

.cc-banner-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-banner-head {
  font-family: 'Julius Sans One', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--camel);
}

.cc-banner p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(61, 58, 53, 0.92);
  margin: 0;
}

.cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

/* ---------- Modal ---------- */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(61, 58, 53, 0.22);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cc-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 42px 44px 38px;
}

.cc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--azure);
  transition: color 0.25s ease;
}

.cc-modal-close:hover {
  color: var(--ink);
}

.cc-modal-close svg {
  width: 22px;
  height: 22px;
}

.cc-modal-head {
  margin-bottom: 30px;
}

.cc-modal-eyebrow {
  font-family: 'Julius Sans One', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 10px;
}

.cc-modal-head h2 {
  font-family: 'Julius Sans One', sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.cc-modal-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- Categories ---------- */
.cc-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
}

.cc-category-disabled {
  opacity: 0.85;
}

.cc-category-text {
  flex: 1;
}

.cc-category-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Julius Sans One', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.cc-required {
  font-family: 'Alegreya', serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--camel);
}

.cc-category-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(61, 58, 53, 0.85);
  margin: 8px 0 0;
}

/* ---------- Toggle switch ---------- */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(61, 58, 53, 0.18);
  transition: background 0.25s ease;
}

.cc-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.25s ease;
}

.cc-switch input:checked + .cc-switch-track {
  background: var(--azure);
}

.cc-switch input:checked + .cc-switch-track .cc-switch-thumb {
  transform: translateX(20px);
}

.cc-switch input:disabled + .cc-switch-track {
  opacity: 0.55;
}

.cc-switch input:focus-visible + .cc-switch-track {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-family: 'Julius Sans One', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cc-btn-primary {
  background: var(--azure);
  color: var(--white);
  border: 1px solid var(--azure);
}

.cc-btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.cc-btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.cc-btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.cc-btn-ghost {
  background: transparent;
  color: var(--camel);
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-btn-ghost:hover {
  color: var(--ink);
}

.cc-btn-text {
  background: transparent;
  color: var(--camel);
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 0;
}

.cc-btn-text:hover {
  color: var(--azure);
}

.cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

/* ---------- Policy page inline panel ---------- */
.cc-policy-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.cc-policy-wrap .cc-category {
  padding: 16px 18px;
}

.cc-policy-wrap .cc-modal-actions {
  padding-top: 0;
}

/* ---------- Floating reopen button ---------- */
.cc-floating-prefs {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 850;
  min-height: 38px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: 'Julius Sans One', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--camel);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cc-floating-prefs:hover {
  color: var(--azure);
  border-color: var(--azure);
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .cc-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 20px 22px;
  }

  .cc-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-banner-actions .cc-btn {
    width: 100%;
  }

  .cc-modal {
    padding: 30px 24px 28px;
  }

  .cc-modal-head h2 {
    font-size: 1.5rem;
  }

  .cc-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cc-category-label {
    flex-wrap: wrap;
  }

  .cc-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-modal-actions .cc-btn {
    width: 100%;
  }

  .cc-floating-prefs {
    left: 16px;
    bottom: 16px;
  }
}
