/* A single scrollable body and a separate action rail: focused fields cannot sit behind it. */
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__panel {
  width:min(100%,1000px); max-height:calc(var(--bios-viewport-height,100dvh) - 32px); display:flex; flex-direction:column;
}
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__head { flex:none; padding:20px 24px 16px; gap:0; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-product-label { margin:0 0 8px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-product-label__logo { width:128px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__title { font-size:1.5rem; line-height:1.2; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__close { width:44px; height:44px; min-height:44px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-progress { margin-top:12px; gap:12px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__body { min-height:0; overflow-y:auto; padding:20px 24px; scroll-padding-block:16px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-details-step {
  display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start;
}
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-details-summary {
  grid-column:2; grid-row:1; min-width:0; margin:0; padding:16px;
  border:1px solid var(--nx-border); border-radius:16px; background:var(--nx-elevated);
  display:grid; gap:16px;
}
.nx-checkout-main { grid-column:1; grid-row:1; display:grid; gap:16px; min-width:0; }
.nx-checkout-main > .nx-bios-err { margin:0; }
.nx-checkout-summary { min-width:0; display:grid; gap:12px; }
.nx-checkout-summary__head { display:flex; justify-content:space-between; align-items:center; gap:8px; min-width:0; }
.nx-checkout-summary__head > strong { font-size:1.05rem; overflow-wrap:anywhere; }
.nx-checkout-summary dl { display:grid; gap:8px; margin:0; font-size:.875rem; line-height:1.45; }
.nx-checkout-summary dl > div { min-width:0; }
.nx-checkout-summary dt { color:var(--nx-muted); font-size:.75rem; }
.nx-checkout-summary dd { margin:0; overflow-wrap:anywhere; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-checkout-summary .nx-bios-delivery-promise { margin:0; padding-top:10px; border-top:1px solid var(--nx-border); font-size:.8125rem; line-height:1.45; }
.nx-checkout-summary .nx-bios-edit-link { flex:none; min-height:44px; font-size:.8125rem; padding:6px 0; }
.nx-checkout-region { display:grid; gap:10px; min-width:0; padding-top:14px; border-top:1px solid var(--nx-border); }
.nx-checkout-region__unavailable,.nx-checkout-region__details { margin:0; color:var(--nx-muted); font-size:.8125rem; line-height:1.5; }
.nx-checkout-region__details summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--nx-accent-soft); text-decoration:underline; text-underline-offset:3px; list-style:none; }
.nx-checkout-region__details summary::-webkit-details-marker { display:none; }
.nx-checkout-region__details p { margin:6px 0; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-method-choice legend { font-size:1.05rem; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-method-option { padding:12px; min-height:64px; border-radius:12px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-method-option__hint { font-size:.8125rem; line-height:1.45; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-method-brand-heading { gap:8px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-details-consents { gap:12px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-owner--combined { font-size:.875rem; line-height:1.5; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-refund-visible { font-size:.8125rem; line-height:1.5; padding:12px; border-radius:10px; background:var(--nx-elevated); border:1px solid var(--nx-border); }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-consent-notes__title { font-size:.875rem; margin-bottom:4px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action {
  flex:none; display:grid; grid-template-columns:minmax(130px,1fr) minmax(220px,1.2fr); gap:4px 20px;
  margin:0; padding:14px 24px max(14px,env(safe-area-inset-bottom)); border-top:1px solid var(--nx-border); background:var(--nx-surface);
}
.nx-checkout-total { display:grid; gap:2px; align-content:center; min-width:0; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action__total { margin:0; display:flex; align-items:baseline; justify-content:flex-start; flex-wrap:wrap; gap:4px 10px; font-size:.875rem; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action__total strong { font-size:1.35rem; }
.nx-checkout-total .nx-bios-local-price__amount { font-size:.8125rem; font-weight:400; color:var(--nx-muted); }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action .nx-bios-modal__actions { grid-column:2; grid-row:1; display:grid; grid-template-columns:auto minmax(0,1fr); margin:0; gap:8px; align-items:center; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action button[type=submit] { grid-column:2; grid-row:1; flex:1; width:100%; max-width:none; min-width:0; min-height:52px; padding:12px 16px; white-space:normal; overflow-wrap:anywhere; line-height:1.35; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action .nx-bios-cta--ghost { grid-column:1; grid-row:1; order:-1; flex:0 0 auto; width:auto; min-width:0; min-height:44px; padding:6px; font-size:.8125rem; border:0; background:transparent; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action__hint { grid-column:1/-1; grid-row:2; margin:2px 0 0; min-height:0; font-size:.8125rem; line-height:1.4; color:var(--nx-muted); }
.nx-bios-checkout-action__hint:empty { display:none; }
.nx-bios-modal.paypal-modal.nx-checkout-compact :is(button,select,summary,a):focus-visible { outline:2px solid var(--nx-accent-soft); outline-offset:3px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-payment-question { margin:0; font-size:.8125rem; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step > .nx-bios-checkout-summary { grid-column:2; grid-row:1; min-width:0; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step > .nx-bios-payment-choices { grid-column:1; grid-row:1; min-width:0; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step > .nx-bios-payment-footer { grid-column:1/-1; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step .nx-bios-checkout-summary__main { flex-wrap:wrap; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-summary { padding:16px; border-radius:14px; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-summary__service { margin:0 0 6px; font-size:.875rem; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-summary__email { margin:8px 0; font-size:.875rem; overflow-wrap:anywhere; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-summary .nx-bios-delivery-promise { font-size:.875rem; margin:10px 0; }
.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step .nx-checkout-region { gap:6px; }
@media (max-width:740px) {
  .nx-bios-modal.paypal-modal.nx-checkout-compact { padding:0; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__panel { width:100%; height:var(--bios-viewport-height,100dvh); max-height:var(--bios-viewport-height,100dvh); border-radius:0; border:0; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__head { padding:12px 16px 10px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-product-label { margin-bottom:4px; font-size:.75rem; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-product-label__logo { width:100px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__title { font-size:1.25rem; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-progress { gap:8px; margin-top:8px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-progress__item { font-size:.75rem; padding-bottom:8px; gap:6px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-progress__number { width:22px; height:22px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-modal__body { padding:14px 16px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-details-step { display:flex; flex-direction:column; gap:18px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step { display:flex; flex-direction:column; gap:16px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-pay-step > * { width:100%; min-width:0; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-summary { padding:12px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-summary__price { font-size:1.25rem; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-details-summary,.nx-checkout-main { width:100%; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-details-summary { padding:12px; gap:10px; }
  .nx-checkout-summary { gap:6px; }
  .nx-checkout-summary dl { gap:2px; }
  .nx-checkout-summary dl > div { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:baseline; }
  .nx-checkout-summary .nx-bios-delivery-promise { padding-top:8px; }
  .nx-checkout-region { padding-top:10px; gap:6px; }
  .nx-checkout-region__details summary { min-height:44px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action { padding:10px 16px max(10px,env(safe-area-inset-bottom)); grid-template-columns:1fr; gap:6px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action .nx-bios-modal__actions { grid-column:1; grid-row:3; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action:not(:has(.nx-bios-checkout-action__hint:not(:empty))) .nx-bios-modal__actions { grid-row:2; }
  .nx-checkout-total { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 12px; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action__total strong { font-size:1.15rem; }
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-checkout-action button[type=submit] { min-height:48px; }
}
@media (max-height:540px) {
  .nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-product-label,.nx-bios-modal.paypal-modal.nx-checkout-compact .nx-bios-progress { display:none; }
}
