.cookie-consent,
.cookie-preferences {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent[hidden],
.cookie-preferences[hidden],
.cookie-preferences-toggle[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 200;
  width: min(520px, calc(100vw - 32px));
  color: #211c18;
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(33, 28, 24, .14);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(33, 28, 24, .16);
  backdrop-filter: blur(16px);
}

.cookie-consent__inner {
  padding: clamp(18px, 3vw, 24px);
}

.cookie-consent__label {
  margin: 0 0 8px;
  color: #d95c42;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cookie-consent__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
}

.cookie-consent__text,
.cookie-preferences__text,
.cookie-preferences__hint {
  margin: 0;
  color: #6f6259;
  font-size: .96rem;
  line-height: 1.6;
}

.cookie-consent__text a,
.cookie-preferences__text a {
  color: #d95c42;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions,
.cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent button,
.cookie-preferences button,
.cookie-preferences-toggle {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(33, 28, 24, .16);
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.cookie-consent button:hover,
.cookie-preferences button:hover,
.cookie-preferences-toggle:hover {
  transform: translateY(-1px);
}

.cookie-button-primary {
  padding: 12px 18px;
  color: #211c18;
  background: #dddd6b;
  border-color: rgba(33, 28, 24, .08) !important;
}

.cookie-button-primary:hover {
  color: #ffffff;
  background: #d95c42;
}

.cookie-button-secondary {
  padding: 12px 18px;
  color: #211c18;
  background: #fffaf5;
}

.cookie-button-secondary:hover {
  border-color: rgba(217, 92, 66, .45);
}

.cookie-button-text {
  padding: 12px 10px;
  color: #d95c42;
  background: transparent;
  border-color: transparent !important;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 27, 24, .42);
}

.cookie-preferences__panel {
  width: min(680px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  color: #211c18;
  background: #fffdf8;
  border: 1px solid rgba(33, 28, 24, .14);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(33, 28, 24, .22);
}

.cookie-preferences__header,
.cookie-preferences__body {
  padding: clamp(18px, 3vw, 26px);
}

.cookie-preferences__header {
  border-bottom: 1px solid rgba(33, 28, 24, .12);
}

.cookie-preferences__header h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(33, 28, 24, .1);
}

.cookie-option:last-of-type {
  border-bottom: 0;
}

.cookie-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.cookie-option span {
  display: block;
  color: #6f6259;
  font-size: .92rem;
  line-height: 1.5;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e4d8cb;
  transition: background .2s ease;
}

.cookie-switch i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 28, 24, .16);
  transition: transform .2s ease;
}

.cookie-switch input:checked + i {
  background: #d95c42;
}

.cookie-switch input:checked + i::after {
  transform: translateX(24px);
}

.cookie-switch input:disabled + i {
  background: #dddd6b;
  opacity: .75;
}

.cookie-preferences-toggle {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 190;
  min-height: 38px;
  padding: 9px 13px;
  color: #6f6259;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 10px 26px rgba(33, 28, 24, .12);
  backdrop-filter: blur(14px);
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .cookie-consent__actions,
  .cookie-preferences__actions {
    display: grid;
  }

  .cookie-consent button,
  .cookie-preferences button {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
