.cc-banner,
.cc-modal-overlay {
  box-sizing: border-box;
}

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 16px;
  pointer-events: none;
}

.cc-banner__inner {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 14px;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-banner__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.cc-banner__text {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d1d5db;
}

.cc-banner__text a {
  color: inherit;
  text-decoration: underline;
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.cc-btn--primary {
  background: var(--cc-accent, #2563eb);
  color: #fff;
}

.cc-btn--secondary {
  background: transparent;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.72);
}

.cc-modal-overlay.is-open {
  display: flex;
}

.cc-modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  color: #111827;
}

.cc-modal h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.cc-modal p {
  margin: 0 0 18px;
  line-height: 1.5;
  color: #4b5563;
}

.cc-preference {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
}

.cc-preference:last-of-type {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 18px;
}

.cc-preference__title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 600;
}

.cc-preference__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #6b7280;
}

.cc-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}

.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease;
}

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

.cc-toggle input:checked + span {
  background: var(--cc-accent, #2563eb);
}

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

.cc-toggle input:disabled + span {
  opacity: 0.65;
}

.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-settings-link {
  cursor: pointer;
  text-decoration: underline;
}

.cc-settings-fab {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99998;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

@media (max-width: 640px) {
  .cc-banner {
    padding: 10px;
  }

  .cc-banner__inner {
    padding: 14px 14px 12px;
    border-radius: 12px;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
  }

  .cc-banner__title {
    font-size: 0.98rem;
    margin-bottom: 6px;
  }

  .cc-banner__text {
    margin-bottom: 12px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .cc-banner__actions {
    gap: 8px;
  }

  .cc-btn {
    width: 100%;
    padding: 11px 14px;
  }

  .cc-settings-fab {
    left: 10px;
    bottom: 10px;
    font-size: 0.72rem;
    padding: 7px 10px;
  }
}
