/* ── Cookie Banner ─────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  max-width: 360px;
  z-index: 9999;
  background: var(--bs-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  border-top: 3px solid var(--bs-primary);
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
}
.cookie-banner p {
  margin: 0 0 1rem;
}
.cookie-banner a:hover {
  color: var(--bs-secondary);
}

.cookie-banner__title {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.cookie-banner__body {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}

.cookie-banner__body a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

/* Category rows */
.cookie-categories {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 0.75rem;
}

.cookie-category__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cookie-category__name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

.cookie-category__desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.cookie-always-active {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bs-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,0.2);
  border-radius: 24px;
  transition: background-color 0.25s;
}

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

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: var(--bs-secondary);
}

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

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
  outline: 3px solid var(--bs-secondary);
  outline-offset: 2px;
}

/* Action buttons inside banner */
.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--bs-border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.cookie-btn--primary {
  background-color: var(--bs-secondary);
  color: var(--bs-dark);
  border-color: var(--bs-secondary);
}
.cookie-btn--primary:hover {
  background-color: #d49c00;
  border-color: #d49c00;
}

.cookie-btn--outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cookie-btn--outline:hover {
  border-color: #fff;
  background-color: rgba(255,255,255,0.08);
}

.cookie-btn--link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.25rem;
}
.cookie-btn--link:hover {
  color: rgba(255,255,255,0.85);
}

/* Reload warning */
.cookie-warning {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.cookie-warning__text {
  font-size: 0.82rem;
  color: var(--bs-secondary);
  margin: 0 0 0.75rem;
}

/* Re-open trigger button (e.g. in footer) */
.cookie-settings-btn {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-settings-btn:hover {
  color: var(--bs-secondary);
}
