/* ---- Banner shell ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem;
  background-color: #0e0d1d;
  border-top: 3px solid #feeee2;
  font-family: "Vulf Sans", 'sans-serif'
}

.cookie-banner__container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
}

.cookie-banner__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__message {
  color: #feeee2;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* ---- Action buttons ---- */
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner__button {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  color: #feeee2;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 150ms, color 150ms;
}

.cookie-banner__button--secondary {
  background-color: transparent;
  border: 2px solid #feeee2;
}

.cookie-banner__button--secondary:hover {
  background-color: #feeee2;
  color: #000;
}

.cookie-banner__button--primary {
  background-color: #ffefe3;
  color: #000;
  border: 2px solid transparent;
}

.cookie-banner__button--primary:hover {
  background-color: #ddd0c5;
}

/* ---- Modal ---- */
.cookie-banner__overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
}

.cookie-banner__dialog {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  overflow-y: auto;
  background-color: #0e0d1d;
  border: 2px solid #feeee2;
  border-radius: 0.5rem;
}

.cookie-banner__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  color: #ffefe3;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cookie-banner__close:hover {
  color: #ddd0c5;
}

.cookie-banner__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.cookie-banner__header {
  padding: 1.5rem;
  border-bottom: 1px solid #feeee2;
}

.cookie-banner__title {
  color: #feeee2;
  font-size: 1.5rem;
  font-weight: 700;
}

.cookie-banner__content {
  padding: 1.5rem;
}

.cookie-banner__content > * + * {
  margin-top: 1rem;
}

/* ---- Collapsible section ---- */
.cookie-banner__section {
  background-color: #0e0d1d;
  border: 1px solid #feeee2;
  border-radius: 0.5rem;
}

.cookie-banner__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  cursor: pointer;
}

.cookie-banner__summary-label {
  color: #feeee2;
  font-weight: 600;
}

.cookie-banner__summary-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-banner__badge {
  padding: 0.25rem 0.75rem;
  color: #feeee2;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #4b5563;
  border-radius: 0.25rem;
}

.cookie-banner__chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: #feeee2;
}

.cookie-banner__section-body {
  padding: 0 1rem 1rem;
  color: #feeee2;
  font-size: 0.875rem;
}

.cookie-banner__divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- Analytics option ---- */
.cookie-banner__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #0e0d1d;
  border: 1px solid #feeee2;
  border-radius: 0.5rem;
}

.cookie-banner__option-title {
  margin-bottom: 0.25rem;
  color: #feeee2;
  font-weight: 600;
}

.cookie-banner__option-desc {
  color: #feeee2;
  font-size: 0.875rem;
}

/* ---- Toggle switch ---- */
.cookie-banner__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 5px;
}

.cookie-banner__toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-banner__toggle-track {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  background-color: #4b5563;
  border-radius: 9999px;
  transition: background-color 150ms;
}

.cookie-banner__toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #fff;
  border-radius: 9999px;
  transition: transform 150ms;
}

.cookie-banner__toggle-input:checked + .cookie-banner__toggle-track {
  background-color: #ffc50a;
}

.cookie-banner__toggle-input:checked + .cookie-banner__toggle-track::after {
  transform: translateX(20px);
}

.cookie-banner__toggle-input:focus-visible + .cookie-banner__toggle-track {
  outline: 2px solid #ffcf30;
  outline-offset: 2px;
}

/* ---- Responsive (md: 768px) ---- */
@media (min-width: 768px) {
  .cookie-banner__row {
    flex-direction: row;
  }

  .cookie-banner__message {
    font-size: 1rem;
    text-align: left;
  }
}