/* === Cookie Consent – Subtle Bottom Bar === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary, #32373c);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.6rem 1rem;
  z-index: 10000;
  font-size: 0.82rem;
  line-height: 1.45;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 0;
  min-width: 200px;
}

.cookie-banner-text a {
  color: #5bc0de;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #fff;
}

/* Inline button group */
.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #00a32a;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #008a23;
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  text-decoration: underline;
  font-weight: 400;
  padding: 0.35rem 0.5rem;
}

.cookie-btn-settings:hover {
  color: #fff;
}

/* Expandable options panel (hidden by default) */
.cookie-options-panel {
  display: none;
  width: 100%;
  padding-top: 0.65rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-options-panel.open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.cookie-option label {
  cursor: pointer;
  user-select: none;
}

.cookie-option label.disabled {
  opacity: 0.55;
  cursor: default;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}

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

.cookie-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #00a32a;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.55;
  cursor: default;
}

.cookie-btn-save {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: #0073aa;
  color: #fff;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-save:hover {
  background: #005f8b;
}

/* Responsive */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .cookie-buttons {
    justify-content: flex-end;
  }

  .cookie-options {
    flex-direction: column;
    gap: 0.45rem;
  }
}
