/* ─── GDPR cookie consent ─── */
.consent-bar{
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000;
  max-width: 720px; margin: 0 auto;
  background: rgba(21,17,13,0.97);
  border: 1px solid rgba(235,226,210,0.18);
  border-radius: 12px;
  padding: 18px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  /* Opacity-only fade — no transform, no CLS impact */
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  font-family: "Cormorant Garamond", serif;
  contain: layout style;
}
.consent-bar.show{ opacity: 1; visibility: visible; transition-delay: 0s; }
.consent-bar p{
  margin: 0; font-style: italic; font-size: 15px; line-height: 1.5;
  color: #ebe2d2;
}
.consent-bar p a{
  color: #f0b070; text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-bar .consent-actions{
  display: inline-flex; gap: 10px; flex-wrap: wrap;
}
.consent-bar button{
  padding: 10px 18px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-weight: 700;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
  border: 1px solid rgba(235,226,210,0.32);
  background: transparent; color: #ebe2d2;
  white-space: nowrap;
}
.consent-bar button.primary{
  background: #f0b070; color: #0c0907; border-color: #f0b070;
}
.consent-bar button.primary:hover{ background: #ff6a1a; color: #ebe2d2; border-color: #ff6a1a; }
.consent-bar button:hover{ border-color: #f0b070; color: #f0b070; }
.consent-bar button.text-only{
  border: none; background: none; color: rgba(235,226,210,0.65);
  padding: 10px 6px;
}
.consent-bar button.text-only:hover{ color: #f0b070; }

@media (max-width: 640px){
  .consent-bar{ grid-template-columns: 1fr; gap: 14px; padding: 16px; left: 12px; right: 12px; bottom: 12px; }
  .consent-bar p{ font-size: 14px; }
  .consent-bar .consent-actions{ width: 100%; }
  .consent-bar button{ flex: 1; padding: 12px 14px; }
}

/* Settings dialog overlay */
.consent-modal-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9100;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.consent-modal-overlay.show{ display: flex; }
.consent-modal{
  background: #15110d; border: 1px solid rgba(235,226,210,0.2); border-radius: 12px;
  padding: 32px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  font-family: "Cormorant Garamond", serif; color: #ebe2d2;
}
.consent-modal h2{
  font-family: "Bodoni Moda", serif; font-weight: 400; font-size: 28px;
  margin: 0 0 8px; letter-spacing: -0.02em;
}
.consent-modal h2 .it{ font-family: "Cormorant Garamond", serif; font-style: italic; color: #f0b070; }
.consent-modal > p{
  font-style: italic; font-size: 16px; line-height: 1.55; color: #d8cdb6;
  margin: 0 0 24px;
}
.consent-modal .pref{
  border-top: 1px solid rgba(235,226,210,0.12);
  padding: 18px 0; display: grid; gap: 8px;
}
.consent-modal .pref:last-of-type{ border-bottom: 1px solid rgba(235,226,210,0.12); margin-bottom: 22px; }
.consent-modal .pref-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consent-modal .pref-head label{
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #f0b070; font-weight: 700;
}
.consent-modal .pref-head .required{
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.15em;
  color: rgba(235,226,210,0.6); text-transform: uppercase;
}
.consent-modal .pref p{
  margin: 0; font-style: italic; font-size: 14px; line-height: 1.55; color: rgba(235,226,210,0.78);
}
.consent-modal .toggle{
  position: relative; width: 44px; height: 24px; appearance: none;
  background: rgba(235,226,210,0.18); border-radius: 999px; cursor: pointer;
  transition: background .2s; flex-shrink: 0;
}
.consent-modal .toggle::after{
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #ebe2d2;
  transition: transform .2s;
}
.consent-modal .toggle:checked{ background: #f0b070; }
.consent-modal .toggle:checked::after{ transform: translateX(20px); background: #0c0907; }
.consent-modal .toggle:disabled{ opacity: 0.4; cursor: not-allowed; }
.consent-modal .actions{ display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-modal .actions button{
  padding: 12px 20px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-weight: 700;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; border: 1px solid rgba(235,226,210,0.32);
  background: transparent; color: #ebe2d2; transition: all .2s;
}
.consent-modal .actions .primary{ background: #f0b070; color: #0c0907; border-color: #f0b070; }
.consent-modal .actions button:hover{ border-color: #f0b070; color: #f0b070; }
.consent-modal .actions .primary:hover{ background: #ff6a1a; color: #ebe2d2; border-color: #ff6a1a; }
