/* consent.css: U.CASH shared cookie-consent banner/modal. Theme-aware via CSS vars
 * with safe fallbacks so it reads well on light (pay/portal), dark (u.cash/swap),
 * and any future theme. No em dashes. */
.ucc-banner,.ucc-fab,.ucc-modal{
  --ucc-bg:#ffffff; --ucc-text:#0a0a0a; --ucc-muted:#5b6470; --ucc-border:#e3e6ea;
  --ucc-accent:#997226; --ucc-accent-ink:#ffffff; --ucc-radius:12px; --ucc-shadow:0 18px 50px -20px rgba(0,0,0,.35);
}
.ucc-banner[data-theme="dark"],.ucc-fab[data-theme="dark"],.ucc-modal[data-theme="dark"]{
  --ucc-bg:#101014; --ucc-text:#ececef; --ucc-muted:#9aa0a6; --ucc-border:#26262e;
  --ucc-accent:#cc9933; --ucc-accent-ink:#101014; --ucc-shadow:0 22px 60px -24px rgba(0,0,0,.8);
}
@media (prefers-color-scheme: dark){
  .ucc-banner:not([data-theme="light"]),.ucc-fab:not([data-theme="light"]),.ucc-modal:not([data-theme="light"]){
    --ucc-bg:#101014; --ucc-text:#ececef; --ucc-muted:#9aa0a6; --ucc-border:#26262e;
    --ucc-accent:#cc9933; --ucc-accent-ink:#101014; --ucc-shadow:0 22px 60px -24px rgba(0,0,0,.8);
  }
}

/* banner */
.ucc-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:2147483000;
  background:var(--ucc-bg); color:var(--ucc-text);
  border-top:1px solid var(--ucc-border); box-shadow:var(--ucc-shadow);
  transform:translateY(120%); opacity:0; transition:transform .3s ease, opacity .3s ease;
  font:14px/1.5 "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.ucc-banner.ucc-visible{ transform:translateY(0); opacity:1; }
.ucc-inner{ max-width:1080px; margin:0 auto; padding:16px 20px; display:flex; gap:18px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.ucc-text strong{ display:block; font-size:15px; margin-bottom:2px; }
.ucc-text p{ margin:0; color:var(--ucc-muted); max-width:640px; }
.ucc-text a{ color:var(--ucc-accent); text-decoration:none; }
.ucc-text a:hover{ text-decoration:underline; }
.ucc-actions{ display:flex; gap:10px; flex-wrap:wrap; flex-shrink:0; }

.ucc-btn{
  font:inherit; font-weight:600; cursor:pointer; border-radius:999px; padding:9px 16px;
  border:1px solid var(--ucc-border); background:transparent; color:var(--ucc-text); transition:.15s;
}
.ucc-btn:hover{ border-color:var(--ucc-muted); }
.ucc-btn.ucc-accept{ background:var(--ucc-accent); border-color:var(--ucc-accent); color:var(--ucc-accent-ink); }
.ucc-btn.ucc-accept:hover{ filter:brightness(1.06); }
.ucc-btn.ucc-dns{ border-color:var(--ucc-accent); color:var(--ucc-accent); }

/* floating reopen button */
.ucc-fab{
  position:fixed; right:18px; bottom:18px; z-index:2147482999; width:42px; height:42px; border-radius:50%;
  background:var(--ucc-bg); color:var(--ucc-accent); border:1px solid var(--ucc-border); box-shadow:var(--ucc-shadow);
  cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; transform:scale(.8);
  transition:opacity .25s ease, transform .25s ease;
}
.ucc-fab.ucc-visible{ opacity:1; transform:scale(1); }
.ucc-fab:hover{ border-color:var(--ucc-accent); }

/* modal */
.ucc-modal{ position:fixed; inset:0; z-index:2147483001; display:flex; align-items:center; justify-content:center; padding:20px;
  font:14px/1.5 "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
.ucc-overlay{ position:absolute; inset:0; background:rgba(0,0,0,.55); opacity:0; transition:opacity .2s; }
.ucc-modal.ucc-visible .ucc-overlay{ opacity:1; }
.ucc-dialog{ position:relative; z-index:1; width:100%; max-width:480px; background:var(--ucc-bg); color:var(--ucc-text);
  border:1px solid var(--ucc-border); border-radius:var(--ucc-radius); box-shadow:var(--ucc-shadow); padding:24px;
  transform:translateY(12px) scale(.98); opacity:0; transition:transform .22s ease, opacity .22s ease; }
.ucc-modal.ucc-visible .ucc-dialog{ transform:none; opacity:1; }
.ucc-dialog strong{ font-size:17px; }
.ucc-sub{ color:var(--ucc-muted); margin:6px 0 16px; }
.ucc-x{ position:absolute; top:12px; right:14px; background:none; border:0; font-size:22px; line-height:1; color:var(--ucc-muted); cursor:pointer; }
.ucc-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid var(--ucc-border); cursor:pointer; }
.ucc-row span{ display:flex; flex-direction:column; }
.ucc-row b{ font-size:14px; }
.ucc-row i{ font-style:normal; color:var(--ucc-muted); font-size:13px; }
.ucc-row input{ width:18px; height:18px; accent-color:var(--ucc-accent); }
.ucc-modalactions{ display:flex; gap:10px; justify-content:flex-end; margin-top:18px; flex-wrap:wrap; }

@media (max-width:560px){
  .ucc-inner{ flex-direction:column; align-items:stretch; }
  .ucc-actions{ justify-content:space-between; }
  .ucc-btn{ flex:1; }
}
@media print{ .ucc-banner,.ucc-fab,.ucc-modal{ display:none !important; } }
