:root{--checkout-payment-height:70px}
.checkout-wallet,.checkout-paypal-wallet,.checkout-card{box-sizing:border-box;height:var(--checkout-payment-height);min-height:var(--checkout-payment-height)}
.checkout-wallets{display:grid;align-items:start;gap:8px;margin:0 0 12px;scroll-margin-top:16px}
#nexi-recovery{scroll-margin-top:16px}
.checkout-wallet{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;overflow:hidden;border:1px solid #cbd5e1;border-radius:8px;padding:0;background:#fff;cursor:pointer}
.checkout-paypal-wallet{min-width:0;width:100%}
/* Il contenitore esterno dell'SDK impone 150 px, ma il pulsante ufficiale
   con disableMaxHeight dispone già del layout per larghezze più piccole.
   Adatta soltanto il contenitore: iframe, logo e clic restano quelli PayPal. */
#paypal-button-container>.paypal-buttons{width:100%;min-width:0!important;max-width:100%}
.checkout-paypal-loading,.checkout-paypal-retry{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;padding:6px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#334155;font:inherit;font-size:12px;line-height:1.3;text-align:center}
.checkout-paypal-retry{background:#ffc439;border-color:#ffc439;color:#003087;font-weight:700;cursor:pointer}
.checkout-paypal-retry:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}
.checkout-wallet:disabled,.checkout-card:disabled{cursor:not-allowed;opacity:.6}
.checkout-wallet[hidden]{display:none}
.checkout-wallet:focus-visible,.checkout-card:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}
.checkout-wallet img{display:block;max-width:none;flex:none;pointer-events:none}
.checkout-wallet .checkout-google-mark,.checkout-wallet .checkout-apple-mark{width:100px;height:28.8px;max-width:calc(100% - 12px);object-fit:contain}
.checkout-wallet-apple{background:#000;border-color:#000}
.checkout-wallet-apple:hover:not(:disabled){background:#171717}
.checkout-apple-mark{filter:invert(1)}
.checkout-card{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;width:100%;border:0;border-radius:8px;padding:16px 10px;background:#182b70;color:white;font:inherit;font-size:20px;line-height:1.25;font-weight:600;cursor:pointer}
.checkout-card:hover:not(:disabled){background:#12215a}
.checkout-card-icon{display:block;width:27px;height:27px;flex:none}
.checkout-card-icon[hidden]{display:none}
.checkout-recovery-action{display:inline-flex;align-items:center;justify-content:center;min-height:38px;max-width:100%;padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#182b70;font:inherit;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer}
.checkout-recovery-action[hidden]{display:none}
.checkout-recovery-action:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8}
.checkout-recovery-action:focus-visible{outline:3px solid #3b82f6;outline-offset:2px}
.checkout-recovery-action:disabled{opacity:.6;cursor:wait}
/* Spazio utile per il pagamento anche sui telefoni più piccoli. */
@media(max-width:600px){:root{--checkout-payment-height:60px}}
@media(max-width:380px){body.pg .pg-main{padding-right:12px;padding-left:12px}body.pg .pg-metodo-corpo{padding-right:8px;padding-left:8px}}
