/* Cookie consent banner and settings modal — light theme */

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #E5E3DE;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
  font-family: "Inter", sans-serif;
  color: #1A1A1A;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cc-banner[data-visible="true"] {
  transform: translateY(0);
}

.cc-banner-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cc-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}

.cc-banner-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #555555;
  margin: 0;
  max-width: 52rem;
}

.cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.cc-btn:hover {
  transform: scale(1.02);
}

.cc-btn:focus-visible {
  outline: 2px solid #1E3A34;
  outline-offset: 2px;
}

.cc-btn-accept {
  background: #1E3A34;
  color: #fff;
}

.cc-btn-reject {
  background: #F4F3EF;
  color: #555555;
  border: 1px solid #E5E3DE;
}

.cc-btn-reject:hover {
  background: #E5E3DE;
}

.cc-btn-customize {
  background: transparent;
  color: #1E3A34;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Settings modal overlay */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cc-overlay[data-visible="true"] {
  opacity: 1;
  visibility: visible;
}

.cc-modal {
  background: #fff;
  border: 1px solid #E5E3DE;
  border-radius: 0.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  font-family: "Inter", sans-serif;
  color: #1A1A1A;
}

.cc-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.cc-category {
  padding: 1rem 0;
  border-top: 1px solid #E5E3DE;
}

.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cc-category-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.cc-category-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #555555;
  margin-top: 0.5rem;
}

.cc-category-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1E3A34;
  white-space: nowrap;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}

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

.cc-toggle-track {
  position: absolute;
  inset: 0;
  background: #E5E3DE;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cc-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.125rem;
  height: 1.125rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cc-toggle input:checked + .cc-toggle-track {
  background: #1E3A34;
}

.cc-toggle input:checked + .cc-toggle-track::after {
  transform: translateX(1.25rem);
  background: #fff;
}

.cc-toggle input:focus-visible + .cc-toggle-track {
  outline: 2px solid #1E3A34;
  outline-offset: 2px;
}

.cc-modal-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cc-btn-save {
  background: #1E3A34;
  color: #fff;
}

.cc-btn-cancel {
  background: #F4F3EF;
  color: #555555;
  border: 1px solid #E5E3DE;
}

.cc-btn-cancel:hover {
  background: #E5E3DE;
}

/* Responsive */
@media (max-width: 640px) {
  .cc-banner {
    padding: 1.25rem 1rem;
  }

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

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

  .cc-modal {
    padding: 1.5rem;
  }

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

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