.cookie-consent-banner {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 2100;
  border: 1px solid rgba(236, 193, 118, 0.5);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(38, 23, 14, 0.96), rgba(20, 12, 8, 0.96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  color: #f3e6c7;
  padding: 0.85rem 0.9rem;
  display: none;
}

.cookie-consent-banner.is-visible {
  display: grid;
  gap: 0.6rem;
}

.cookie-consent-title {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  color: #e3c48a;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cookie-consent-text {
  margin: 0;
  line-height: 1.35;
  font-size: 0.95rem;
}

.cookie-consent-text a {
  color: #f2d39a;
}

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

.cookie-btn {
  border: 1px solid rgba(236, 193, 118, 0.55);
  border-radius: 999px;
  background: rgba(34, 19, 12, 0.92);
  color: #f2dfba;
  padding: 0.45rem 0.8rem;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-btn--primary {
  background: linear-gradient(180deg, rgba(44, 73, 43, 0.94), rgba(27, 49, 28, 0.96));
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
}

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

.cookie-modal {
  width: min(640px, 100%);
  border: 1px solid rgba(236, 193, 118, 0.48);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 24, 15, 0.96), rgba(20, 12, 8, 0.98));
  color: #f3e6c7;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.cookie-modal-head,
.cookie-modal-foot {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(236, 193, 118, 0.2);
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal-title {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  color: #e3c48a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.cookie-modal-close {
  border: 0;
  background: transparent;
  color: #f2dfba;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal-body {
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.75rem;
}

.cookie-modal-body p {
  margin: 0;
  line-height: 1.4;
}

.cookie-pref {
  border: 1px solid rgba(236, 193, 118, 0.3);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  display: grid;
  gap: 0.3rem;
  background: rgba(21, 12, 8, 0.7);
}

.cookie-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.cookie-pref-label {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  color: #e3c48a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.cookie-pref-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cookie-switch {
  width: 2.65rem;
  height: 1.45rem;
}

.cookie-modal-foot {
  border-top: 1px solid rgba(236, 193, 118, 0.2);
  border-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 560px) {
  .cookie-consent-title {
    font-size: 0.98rem;
  }

  .cookie-consent-text,
  .cookie-pref-desc {
    font-size: 0.9rem;
  }

  .cookie-btn {
    font-size: 0.8rem;
    padding: 0.42rem 0.72rem;
  }
}
