:root {
  --cc-bg: rgba(var(--blue-rgb), 0.38);
  --cc-panel: #ffffff;
  --cc-text: #0f1e3a;
  --cc-muted: var(--muted);
  --cc-accent: var(--blue-800);
  --cc-accent-strong: var(--blue-900);
  --cc-border: rgba(var(--blue-rgb), 0.18);
  --cc-shadow: var(--shadow-strong);
}

.cc-overlay {
  position: fixed;
  inset: 0;
  background: var(--cc-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.cc-overlay.is-visible {
  display: flex;
}

.cc-modal {
  width: min(640px, 100%);
  background: var(--cc-panel);
  color: var(--cc-text);
  border-radius: 20px;
  box-shadow: var(--cc-shadow);
  padding: 28px 28px 24px;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.cc-modal h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.cc-modal p {
  color: var(--cc-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.cc-modal a {
  color: var(--cc-accent);
  text-decoration: none;
  font-weight: 600;
}

.cc-modal a:hover {
  text-decoration: underline;
}

.cc-section {
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.cc-section strong {
  display: block;
  margin-bottom: 6px;
}

.cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cc-toggle input {
  appearance: none;
  width: 42px;
  height: 24px;
  background: #d9d9d9;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease;
}

.cc-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cc-toggle input:checked {
  background: var(--cc-accent);
}

.cc-toggle input:checked::after {
  transform: translateX(18px);
}

.cc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-button {
  border: 1px solid var(--cc-border);
  background: transparent;
  color: var(--cc-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-button.primary {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  color: #ffffff;
}

.cc-button.primary:hover {
  background: var(--cc-accent-strong);
  border-color: var(--cc-accent-strong);
}

.cc-button.secondary:hover {
  border-color: var(--cc-accent-strong);
  color: var(--cc-accent-strong);
}

.cc-icon {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-800);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  border: none;
  font-weight: 700;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.cc-icon span {
  font-size: 22px;
}

@media (max-width: 640px) {
  .cc-overlay {
    align-items: flex-end;
    padding: 16px;
  }

  .cc-modal {
    width: 100%;
    padding: 20px 18px;
    border-radius: 18px;
    max-height: min(86vh, 560px);
    overflow: auto;
  }

  .cc-modal h2 {
    font-size: 22px;
  }

  .cc-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cc-actions {
    flex-direction: column;
  }

  .cc-button {
    width: 100%;
    justify-content: center;
  }
}
