body.cc-modal-open {
  overflow: hidden;
}

body.cc-has-banner {
  padding-bottom: 77px;
}

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 32, 0.38);
  z-index: 99998;
  backdrop-filter: blur(2px);
}

.cc-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(96%, 680px);
  max-height: 92vh;
  background: #f7f8fc;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  z-index: 99999;
  overflow: hidden;
}

.cc-modal.is-hidden,
.cc-overlay.is-hidden,
.cc-banner.is-hidden,
.cc-category.is-hidden,
.cc-summary-card.is-hidden {
  display: none;
}

.cc-badge.is-hidden {
  display: none;
}

.cc-switch input:disabled + .cc-slider {
  cursor: not-allowed;
}

.cc-modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.cc-header {
  position: relative;
  min-height: 56px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #dde2ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-logo-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #007bffb5, #007bff);
}

.cc-header-right {
  text-align: right;
  line-height: 1.1;
  margin-right: 44px;
}

.cc-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.cc-brand-subtitle {
  font-size: 10px;
  color: #6b7280;
}

.cc-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

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

.cc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #dde2ee;
  background: #f7f8fc;
}

.cc-tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #2f3545;
  cursor: pointer;
}

.cc-tab.is-active {
  color: #007bff;
}

.cc-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #007bff;
}

.cc-body {
  overflow-y: auto;
  background: #f7f8fc;
}

.cc-panel {
  display: none;
  padding: 20px 16px 16px;
}

.cc-panel.is-active {
  display: block;
}

.cc-intro h2,
.cc-about h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  color: #111827;
}

.cc-intro p,
.cc-about p,
.cc-category-content {
  color: #414b5a;
  line-height: 1.7;
  font-size: 14px;
}

.cc-summary-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cc-summary-card {
  background: #fff;
  border: 1px solid #e4e8f2;
  border-radius: 12px;
  padding: 16px;
}

.cc-summary-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.cc-summary-card p {
  margin: 0;
  font-size: 13px;
  color: #5b6474;
  line-height: 1.6;
}

.cc-category {
  border-top: 1px solid #dde2ee;
}

.cc-category:last-of-type {
  border-bottom: 1px solid #dde2ee;
}

.cc-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-category-header {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: left;
}

.cc-category-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cc-arrow {
  width: 14px;
  display: inline-block;
  color: #4b5563;
  transition: transform 0.2s ease;
}

.cc-category-header.is-open .cc-arrow {
  transform: rotate(180deg);
}

.cc-category-title {
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8ebf3;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}

.cc-category-content {
  display: none;
  padding: 0 18px 16px 24px;
}

.cc-category-content.is-open {
  display: block;
}

.cc-toggle-wrap {
  flex: 0 0 auto;
  padding-left: 12px;
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

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

.cc-slider {
  position: absolute;
  inset: 0;
  background: #111827;
  border-radius: 999px;
  transition: 0.25s ease;
}

.cc-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.25s ease;
}

.cc-switch input:checked + .cc-slider {
  background: #007bff;
}

.cc-switch input:checked + .cc-slider::before {
  transform: translateX(18px);
}

.cc-slider.is-disabled {
  background: #007bff;
}

.cc-slider.is-disabled::before {
  transform: translateX(18px);
}

.cc-footer {
  background: #fff;
  border-top: 1px solid #dde2ee;
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 10px;
}

.cc-footer .cc-btn {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.cc-btn {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 18px;
  transition: all 0.2s ease;
}

.cc-btn-primary {
  background: #007bff;
  color: #fff;
  border: 1px solid #007bff;
  box-shadow: 0 8px 18px rgba(111, 120, 221, 0.24);
}

.cc-btn-primary:hover {
  background: #14296c;
  border-color: #5f68d4;
}

.cc-btn-outline {
  background: #fff;
  color: #243047;
  border: 1px solid #d5ddf1;
}

.cc-btn-outline:hover {
  background: #f7f9ff;
}

.cc-btn-muted {
  background: #fff;
  color: #5b6474;
  border: 1px solid #e1e6f2;
  opacity: 0.78;
}

.cc-btn-muted:hover {
  opacity: 1;
  background: #f7f9ff;
}

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99997;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e5eaf5;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.06);
}

.cc-banner-inner {
  max-width: 1285px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cc-banner-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

.cc-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  body.cc-has-banner {
    padding-bottom: 148px;
  }

  .cc-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cc-banner-actions .cc-btn {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 768px) {
  body.cc-has-banner {
    padding-bottom: 190px;
  }

  .cc-summary-grid {
    grid-template-columns: 1fr;
  }

  .cc-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cc-footer .cc-btn {
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .cc-intro h2,
  .cc-about h2 {
    font-size: 24px;
  }

  .cc-banner-inner {
    padding: 14px 16px;
  }

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

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

@media (max-width: 480px) {
  .cc-footer {
    grid-template-columns: 1fr;
  }
}

/* Provider details */
.cc-provider.is-hidden,
.cc-badge.is-hidden,
.cc-provider-count.is-hidden {
  display: none;
}

.cc-provider-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}

.cc-category-content > p {
  margin: 0 0 14px;
}

.cc-provider-list {
  display: grid;
  gap: 10px;
}

.cc-provider {
  padding: 14px;
  border: 1px solid #dde2ee;
  border-radius: 12px;
  background: #fff;
}

.cc-provider h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.cc-provider > p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

.cc-provider-meta {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 10px 16px;
}

.cc-provider-meta div {
  min-width: 0;
}

.cc-provider-meta dt {
  margin: 0 0 3px;
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cc-provider-meta dd {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* YouTube consent placeholder */
.cc-youtube-placeholder {
  width: 100%;
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d9deea;
  border-radius: 14px;
  background: #f4f6fb;
}

.cc-youtube-placeholder-inner {
  width: min(92%, 560px);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.cc-youtube-placeholder-title {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.cc-youtube-placeholder-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.cc-youtube-settings {
  margin-top: 4px;
}

@media (max-width: 600px) {
  .cc-provider-meta {
    grid-template-columns: 1fr;
  }

  .cc-youtube-placeholder {
    min-height: 190px;
  }
}
