

.cookie-banner {
  position: fixed;
  left: var(--space-2);
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: var(--z-modal);
  margin-inline: auto;
  max-width: 640px;
  background: var(--c-bg-dark);
  color: var(--c-fg-dark);
  border: 1px solid var(--c-border-dark);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  padding: var(--space-4);
  display: none;
  flex-direction: column;
  gap: var(--space-3);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner-text h2 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-1);
  color: var(--c-fg-dark);
}

.cookie-banner-text p {
  font-size: 0.875rem;
  color: #a7abb5;
  line-height: 1.55;
}

.cookie-banner-text a {
  color: var(--c-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-actions .btn {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
}

.cookie-btn-tertiary {
  background: transparent;
  color: #a7abb5;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-tertiary:hover {
  border-color: var(--c-accent);
  color: var(--c-fg-dark);
}

.cookie-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
}

.cookie-banner[data-view="customize"] .cookie-banner-summary {
  display: none;
}

.cookie-banner[data-view="customize"] .cookie-panel {
  display: flex;
}

.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 260px;
  overflow-y: auto;
  padding-right: var(--space-1);
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-sm);
}

.cookie-category-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-category-info .cat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-fg-dark);
}

.cookie-category-info .cat-desc {
  font-size: 0.8125rem;
  color: #a7abb5;
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
}

.cookie-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.cookie-toggle .track {
  position: absolute;
  inset: 0;
  background: #3a3d47;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.cookie-toggle .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.cookie-toggle input:checked + .track {
  background: var(--c-accent);
}

.cookie-toggle input:checked + .track + .thumb {
  transform: translateX(18px);
}

.cookie-toggle input:disabled + .track {
  background: var(--c-accent);
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-toggle input:disabled ~ .thumb {
  transform: translateX(18px);
  cursor: not-allowed;
}

.cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-panel-actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: var(--space-2);
    right: var(--space-2);
    bottom: var(--space-2);
    max-width: none;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn,
  .cookie-actions .cookie-btn-tertiary {
    width: 100%;
  }

  .cookie-panel-actions {
    flex-direction: column;
  }

  .cookie-panel-actions .btn {
    width: 100%;
  }
}

.cookie-category__row input[type="checkbox"]{width:24px;height:24px}
