/* Cookie banner — Frank Lloyd Wright */
.cookie-banner-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10002;
  padding: 20px 24px;
  background: #1c1c1c;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

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

.cookie-banner-text {
  flex: 1 1 280px;
  max-width: 640px;
}

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

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  min-height: 44px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 0;
  cursor: pointer;
  background: #2c5f4a;
  color: #ffffff;
}

.cookie-btn:hover {
  background: #3d7a62;
}

.cookie-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn--ghost:hover {
  border-color: #ffffff;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal-overlay.is-open {
  display: flex;
}

.cookie-modal {
  background: #f5f0e8;
  color: #1c1c1c;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #d8cfc4;
}

.cookie-modal h2 {
  margin-top: 0;
  font-family: var(--font-heading, Georgia, serif);
}

.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #d8cfc4;
  font-family: var(--font-body, Georgia, serif);
}

.cookie-toggle-row label {
  font-weight: 600;
}

.cookie-switch {
  width: 48px;
  height: 26px;
  appearance: none;
  background: #d8cfc4;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-switch:checked {
  background: #2c5f4a;
}

.cookie-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.cookie-switch:checked::after {
  transform: translateX(22px);
}

.cookie-modal-close {
  margin-top: 20px;
  width: 100%;
  min-height: 44px;
  background: #1c1c1c;
  color: #fff;
  border: 0;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}
