/* betwithaj consent banner + preferences modal */
.bwa-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: #0a0a0a;
  color: #f5f5f5;
  border: 1px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  animation: bwa-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes bwa-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.bwa-consent__inner { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.bwa-consent__title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: #d4af37; }
.bwa-consent__text  { margin: 0; font-size: 14px; line-height: 1.55; color: #e5e5e5; }
.bwa-consent__text a { color: #d4af37; text-decoration: underline; }
.bwa-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bwa-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms cubic-bezier(0.4,0,0.2,1), border-color 150ms;
}
.bwa-consent__btn:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; }
.bwa-consent__btn--primary { background: #d4af37; color: #0a0a0a; }
.bwa-consent__btn--primary:hover { background: #e6c454; }
.bwa-consent__btn--ghost { background: transparent; color: #f5f5f5; border-color: #333; }
.bwa-consent__btn--ghost:hover { border-color: #d4af37; }

/* Preferences modal */
.bwa-prefs { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.bwa-prefs__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.bwa-prefs__card {
  position: relative;
  background: #0a0a0a;
  color: #f5f5f5;
  border: 1px solid #d4af37;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 28px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.bwa-prefs__close { position: absolute; top: 12px; right: 12px; background: transparent; border: 0; color: #a3a3a3; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.bwa-prefs__close:hover { color: #d4af37; }
.bwa-prefs__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #d4af37; }
.bwa-prefs__lead  { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: #d4d4d4; }
.bwa-prefs__rows  { display: flex; flex-direction: column; gap: 14px; }
.bwa-prefs__row   { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid #262626; border-radius: 10px; cursor: pointer; }
.bwa-prefs__row.is-locked { cursor: not-allowed; opacity: 0.7; }
.bwa-prefs__toggle { position: relative; flex-shrink: 0; width: 42px; height: 24px; margin-top: 2px; }
.bwa-prefs__toggle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.bwa-prefs__slider { position: absolute; inset: 0; background: #333; border-radius: 999px; transition: background 150ms; }
.bwa-prefs__slider::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #f5f5f5; border-radius: 50%; transition: transform 150ms; }
.bwa-prefs__toggle input:checked ~ .bwa-prefs__slider { background: #d4af37; }
.bwa-prefs__toggle input:checked ~ .bwa-prefs__slider::before { transform: translateX(18px); }
.bwa-prefs__toggle input:disabled ~ .bwa-prefs__slider { background: #d4af37; opacity: 0.5; }
.bwa-prefs__text  { font-size: 14px; line-height: 1.5; }
.bwa-prefs__desc  { color: #a3a3a3; font-size: 13px; }
.bwa-prefs__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid #262626; }

body.bwa-prefs-open { overflow: hidden; }

/* Footer "Do Not Sell" link — small overlay-launcher tucked into existing footer */
.bwa-dnsl { display: inline-block; font-size: 12px; color: inherit; text-decoration: underline; opacity: 0.75; }
.bwa-dnsl:hover { opacity: 1; }

/* Mobile: a compact bottom sheet, not a card that eats the viewport.
   Full-bleed, rounded top corners only, tighter type, two buttons side by
   side with "Preferences" demoted to a text link. Safe-area aware. */
@media (max-width: 600px) {
  .bwa-consent {
    left: 0; right: 0; bottom: 0;
    max-width: none;
    border-radius: 14px 14px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    box-shadow: 0 -12px 32px -12px rgba(0, 0, 0, 0.7);
  }
  .bwa-consent__inner {
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .bwa-consent__title { font-size: 14px; }
  .bwa-consent__text  { font-size: 12.5px; line-height: 1.45; }
  .bwa-consent__actions { flex-wrap: wrap; justify-content: stretch; gap: 8px; }
  .bwa-consent__btn { flex: 1 1 0; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .bwa-consent__btn[data-bwa="prefs"] {
    flex: 1 1 100%; order: 3;
    padding: 4px 0 0; border: 0; background: transparent;
    color: #a3a3a3; font-size: 12px; text-decoration: underline; text-underline-offset: 2px;
  }
  .bwa-consent__btn[data-bwa="prefs"]:hover { color: #d4af37; }
  .bwa-consent__btn[data-bwa="reject"] { order: 1; }
  .bwa-consent__btn[data-bwa="accept"] { order: 2; }
  .bwa-prefs { padding: 0; align-items: flex-end; }
  .bwa-prefs__card { max-height: 88vh; border-radius: 14px 14px 0 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 22px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
}
