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

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 10020;
  pointer-events: none;
  font-family: "Cormorant Garamond", serif;
  color: #2c1a0e;
}

.cookie-consent__banner,
.cookie-consent__panel,
.cookie-consent__manage {
  pointer-events: auto;
}

.cookie-consent__banner {
  width: min(980px, calc(100vw - 24px));
  margin: 0 auto 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid #d8c7ae;
  border-top: 4px solid #64172b;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 10px 30px rgba(20, 10, 4, 0.2);
}

.cookie-consent__banner h2,
.cookie-consent__panel h2 {
  margin: 0 0 0.6rem;
  font-family: "IM Fell DW Pica", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: #64172b;
}

.cookie-consent__banner p,
.cookie-consent__panel p {
  margin: 0;
  line-height: 1.45;
  font-size: 1.03rem;
}

.cookie-consent__note {
  margin-top: 0.5rem !important;
  color: #5a4634;
}

.cookie-consent__actions,
.cookie-consent__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.cookie-consent__btn {
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cookie-consent__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 26, 14, 0.15);
}

.cookie-consent__btn:focus-visible,
.cookie-consent__manage:focus-visible,
.cookie-consent__legal-link:focus-visible,
footer [data-cookie-open-settings]:focus-visible {
  outline: 2px solid #64172b;
  outline-offset: 2px;
}

.cookie-consent__btn--accept {
  background: #64172b;
  border-color: #64172b;
  color: #ffffff;
}

.cookie-consent__btn--accept:hover {
  background: #4f0f20;
}

.cookie-consent__btn--reject {
  background: #435663;
  border-color: #435663;
  color: #ffffff;
}

.cookie-consent__btn--reject:hover {
  background: #32424d;
}

.cookie-consent__btn--customize {
  background: #ffffff;
  border-color: #64172b;
  color: #64172b;
}

.cookie-consent__btn--customize:hover {
  background: #f6f0e8;
}

.cookie-consent__btn--secondary {
  background: #ffffff;
  border-color: #a1886a;
  color: #5a4634;
}

.cookie-consent__btn--secondary:hover {
  background: #f8f3eb;
}

.cookie-consent__legal-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: #64172b;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.98rem;
}

.cookie-consent__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 12, 8, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10021;
}

.cookie-consent__panel {
  position: fixed;
  z-index: 10022;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(700px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #fffdf8;
  border: 1px solid #d8c7ae;
  border-radius: 14px;
  padding: clamp(16px, 2.6vw, 24px);
  box-shadow: 0 18px 42px rgba(20, 10, 4, 0.26);
}

.cookie-consent__category {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid #e6d8c4;
  border-radius: 10px;
  background: #ffffff;
}

.cookie-consent__category h3 {
  margin: 0 0 0.25rem;
  font-family: "IM Fell DW Pica", serif;
  font-size: 1.06rem;
  font-weight: 400;
  color: #3d1120;
}

.cookie-consent__category p {
  margin: 0;
  font-size: 0.96rem;
  color: #574635;
}

.cookie-consent__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.95rem;
}

.cookie-consent__toggle input {
  margin: 0;
  inline-size: 18px;
  block-size: 18px;
  accent-color: #64172b;
}

.cookie-consent__toggle--locked {
  color: #435663;
  font-weight: 600;
}

.cookie-consent__manage {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(44, 26, 14, 0.2);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 4px 12px rgba(44, 26, 14, 0.15);
  color: #5a4634;
  font: inherit;
  font-size: 0.98rem;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.cookie-consent__manage:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(44, 26, 14, 0.2);
}

.cookie-consent.is-banner-visible .cookie-consent__manage {
  opacity: 0;
  pointer-events: none;
}

html.cookie-consent-lock,
body.cookie-consent-lock {
  overflow: hidden;
}

footer [data-cookie-open-settings] {
  margin-left: 12px;
}

@media (max-width: 760px) {
  .cookie-consent__actions,
  .cookie-consent__panel-actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }

  .cookie-consent__category {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-consent__manage {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0));
  }

  footer [data-cookie-open-settings] {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__btn,
  .cookie-consent__manage {
    transition: none !important;
  }
}
