/* The live pre-approval widget, framed over the page (js/preapproval.js).
   Sized in px on purpose: the widget lays out on a 544 px plate with its own 16 px text, while this page's rem grows on large screens. */
html.pal-open{overflow:hidden}
dialog.pal{padding:0;border:0;background:none;color:var(--tx);width:min(544px,calc(100vw - 2rem));max-width:none;max-height:calc(100dvh - 2rem);margin:auto;overflow:visible}
dialog.pal::backdrop{background:rgba(20,22,15,.5);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.pal-bar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-height:2.75rem;padding:0 .25rem .375rem}
.pal-tab,.pal-x{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .875rem;border:0;border-radius:999px;font:inherit;font-size:.875rem;font-weight:600;color:#fff;background:rgba(20,22,15,.55);text-decoration:none;cursor:pointer}
.pal-tab:focus-visible,.pal-x:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.pal-panel{height:576px;max-height:calc(100dvh - 6rem);background:var(--bg);border-radius:22px;overflow:hidden;box-shadow:0 30px 80px rgba(20,22,15,.38)}
.pal-panel iframe{display:block;width:100%;height:100%;border:0}
@media (max-width:560px){
  dialog.pal{width:100vw;max-height:96dvh;margin:auto 0 0}
  .pal-panel{max-height:calc(96dvh - 3.5rem);border-radius:22px 22px 0 0}
}
