.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.35rem 1.45rem 1.25rem;
  color: #1a1a1a;
  background: #efe4d2;
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.18);
  font-family: "Inter", system-ui, sans-serif;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-kicker {
  margin: 0 0 0.35rem;
  color: #8a5a22;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cookie-banner h2 {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
}

.cookie-banner p {
  margin: 0 0 1rem;
  max-width: 58ch;
  color: #3a342c;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-btn:hover { background: rgba(26, 26, 26, 0.06); }
.cookie-btn:focus-visible { outline: 2px solid #b8894a; outline-offset: 2px; }
.cookie-btn.allow { background: #1a1a1a; color: #e6cd98; }
.cookie-btn.allow:hover { background: #2c2c2c; }

.cookie-prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.cookie-prefs[hidden] { display: none !important; }

.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.cookie-row h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.cookie-row p {
  margin: 0;
  font-size: 0.8rem;
  color: #5c564e;
}

.cookie-switch {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 28px;
  margin-top: 0.15rem;
  border: 1px solid #1a1a1a;
  background: #d8cbb6;
  cursor: pointer;
  position: relative;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #1a1a1a;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cookie-switch[aria-checked="true"] { background: #1a1a1a; }
.cookie-switch[aria-checked="true"]::after {
  transform: translateX(16px);
  background: #e6cd98;
}

.cookie-switch[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-save {
  margin-top: 0.9rem;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 1.1rem;
  }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-btn, .cookie-switch::after { transition: none; }
}
