/* ── Cookie Consent Banner ── */
#cc-banner[hidden],
#cc-settings[hidden] {
  display: none !important;
}

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(241, 245, 249, 0.3);
}

.cc-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cc-banner__text {
  flex: 1;
}

.cc-banner__text p {
  margin: 0;
  color: #cbd5e1;
}

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

/* ── Buttons ── */
.cc-btn {
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
  font-family: inherit;
}

.cc-btn--primary {
  background: #1a73e8;
  color: #fff;
}
.cc-btn--primary:hover {
  background: #1557b0;
}

.cc-btn--secondary {
  background: #334155;
  color: #e2e8f0;
}
.cc-btn--secondary:hover {
  background: #475569;
}

.cc-btn--link {
  background: none;
  color: #94a3b8;
  padding: 10px 12px;
  text-decoration: underline;
}
.cc-btn--link:hover {
  color: #e2e8f0;
}

/* ── Settings Modal ── */
.cc-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cc-settings {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: #1a1a1a;
}

.cc-settings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.cc-settings__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.cc-settings__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
}
.cc-settings__close:hover {
  color: #1a1a1a;
  background: #f1f5f9;
}

.cc-settings__body {
  padding: 16px 24px;
}

.cc-category {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cc-category:last-child {
  border-bottom: none;
}

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

.cc-category__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.cc-category__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a73e8;
  cursor: pointer;
}

.cc-category__label input[disabled] {
  cursor: default;
  opacity: 0.6;
}

.cc-category__badge {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.cc-category__desc {
  margin: 8px 0 0 28px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.cc-settings__footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .cc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cc-banner__actions {
    flex-direction: column;
  }
  .cc-btn {
    text-align: center;
  }
}
