/* ==========================================================================
   EpoxySuite — consent banner

   Enqueued only when ES_CONSENT_MODE is 'notice' or 'optin'. While consent is
   off, none of this is served, and the page's own layout rules are untouched.
   ========================================================================== */

.esc{
  position:fixed;z-index:9000;
  left:var(--gutter);right:var(--gutter);
  bottom:max(16px,env(safe-area-inset-bottom));
  margin-inline:auto;max-width:720px;
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  padding:14px 18px;
  background:rgba(14,14,17,.96);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  box-shadow:0 18px 48px rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
  animation:esc-in .4s var(--ease,ease) both;
}
@keyframes esc-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.esc{animation:none}}

.esc__text{
  margin:0;flex:1 1 280px;
  font-size:.86rem;line-height:1.5;color:var(--muted,#8E8E99);
}
.esc__link{color:var(--text,#F2F2F4);text-decoration:underline;text-underline-offset:3px}
.esc__link:hover{color:var(--yellow,#FFC400)}

.esc__actions{display:flex;gap:10px;flex:0 0 auto}

.esc__btn{
  font:inherit;font-size:.84rem;font-weight:600;
  padding:9px 18px;border-radius:999px;cursor:pointer;
  background:transparent;color:var(--text,#F2F2F4);
  border:1px solid rgba(255,255,255,.22);
  transition:background .2s,border-color .2s,color .2s;
}
.esc__btn:hover{border-color:rgba(255,255,255,.45)}
.esc__btn--yes{background:var(--yellow,#FFC400);border-color:var(--yellow,#FFC400);color:#141405}
.esc__btn--yes:hover{filter:brightness(1.08)}
.esc__btn:focus-visible,.esc__link:focus-visible,.esc__reopen:focus-visible{
  outline:2px solid var(--yellow,#FFC400);outline-offset:3px;
}

/* the footer entry point, injected into the Legal column */
.esc__reopen{cursor:pointer}

/* Keep the bar clear of the bottom-anchored chapter copy on the home page and
   of anything the document pages pin to the bottom, instead of covering the
   store buttons on a phone. */
html.es-consent-open .ch{
  bottom:calc(clamp(64px,11vh,120px) + var(--es-consent-h,0px) + 16px);
}
@media (max-width:760px){
  html.es-consent-open .ch{
    bottom:calc(clamp(40px,8vh,80px) + var(--es-consent-h,0px) + 16px);
  }
  .esc{left:12px;right:12px;padding:14px}
  .esc__actions{flex:1 1 auto}
  .esc__btn{flex:1 1 0}
}
