:root {
  --cc-bg: rgba(16, 23, 52, 0.96);
  --cc-panel: #f4efe8;
  --cc-text: #1f2a5a;
  --cc-muted: #5c5f6d;
  --cc-border: rgba(31, 42, 90, 0.18);
  --cc-primary: #1f2a5a;
  --cc-primary-text: #f4efe8;
  --cc-ghost-bg: #e7dfd2;
  --cc-ghost-text: #1f2a5a;
}

body.cc-modal-open {
  overflow: hidden;
}

.cc-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 2.4vw, 26px);
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 24px));
  background: var(--cc-bg);
  color: #f4efe8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 24px 44px rgba(7, 10, 24, 0.38);
  padding: clamp(14px, 2vw, 22px);
  z-index: 1200;
}

.cc-banner.cc-banner-enter {
  animation: ccBannerSlideIn 460ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

.cc-banner[hidden] {
  display: none;
}

@keyframes ccBannerSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(44px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cc-banner-title {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cc-banner-copy {
  margin: 0;
  color: rgba(244, 239, 232, 0.9);
  line-height: 1.55;
}

.cc-banner-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.cc-btn-primary {
  background: var(--cc-primary-text);
  color: var(--cc-primary);
}

.cc-btn-secondary {
  background: transparent;
  color: #f4efe8;
  border-color: rgba(244, 239, 232, 0.46);
}

.cc-btn-ghost {
  background: rgba(244, 239, 232, 0.14);
  color: #f4efe8;
  border-color: rgba(244, 239, 232, 0.2);
}

.cc-btn:focus-visible {
  outline: 2px solid #f4efe8;
  outline-offset: 2px;
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: grid;
  place-items: center;
  padding: 14px;
}

.cc-modal[hidden] {
  display: none;
}

.cc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 38, 0.66);
}

.cc-modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(84vh, 900px);
  overflow: auto;
  background: var(--cc-panel);
  color: var(--cc-text);
  border-radius: 16px;
  border: 1px solid var(--cc-border);
  box-shadow: 0 24px 44px rgba(8, 12, 32, 0.3);
  padding: clamp(16px, 2.2vw, 24px);
}

.cc-modal-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-modal-copy {
  margin: 8px 0 0;
  color: var(--cc-muted);
  line-height: 1.55;
}

.cc-categories {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.cc-category {
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.cc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-category-title {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-category-copy {
  margin: 8px 0 0;
  color: #353845;
  line-height: 1.5;
}

.cc-category-meta {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #4c5062;
  line-height: 1.45;
}

.cc-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #232638;
}

.cc-switch input {
  width: 18px;
  height: 18px;
}

.cc-modal-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-modal .cc-btn-primary {
  background: var(--cc-primary);
  color: var(--cc-primary-text);
}

.cc-modal .cc-btn-secondary {
  background: #fff;
  color: var(--cc-primary);
  border-color: var(--cc-border);
}

.cc-media-placeholder {
  display: none;
  width: 100%;
  min-height: clamp(280px, 34vw, 430px);
  background: linear-gradient(140deg, #eef0f6 0%, #e4e7f0 100%);
  color: #1f2a5a;
  padding: clamp(16px, 2.4vw, 22px);
}

.cc-media-placeholder.is-visible {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.cc-media-placeholder p {
  margin: 0;
  line-height: 1.55;
  color: #2f3350;
}

.cc-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .cc-banner {
    width: calc(100vw - 16px);
    border-radius: 14px;
    padding: 12px;
  }

  .cc-banner-actions,
  .cc-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cc-btn {
    width: 100%;
  }
}
