/* Native Tpay fields; inherit the established Electroprime typography. */
body.woocommerce-checkout #payment .ep-tpay-banks { margin:0 0 12px; padding:0; border:0; min-width:0; }
body.woocommerce-checkout #payment .ep-tpay-banks legend { float:none; width:auto; margin:0 0 8px; padding:0; font-size:14px; font-weight:600; }
body.woocommerce-checkout #payment .ep-tpay-bank { display:grid; grid-template-columns:20px 64px minmax(0,1fr); gap:12px; align-items:center; min-height:64px; margin:8px 0; padding:12px; border:1px solid #d7dedd; border-radius:12px; background:#fff; cursor:pointer; font-size:15px; font-weight:600; line-height:1.4; }
body.woocommerce-checkout #payment .ep-tpay-bank:has(input:checked) { border-color:#188767; box-shadow:0 0 0 1px #188767; background:#f3faf6; }
body.woocommerce-checkout #payment .ep-tpay-bank input { width:20px; height:20px; margin:0; accent-color:#188767; }
body.woocommerce-checkout #payment .ep-tpay-bank img { width:64px; height:36px; max-width:64px; max-height:36px; margin:0; object-fit:contain; }
body.woocommerce-checkout #payment .ep-tpay-credit-note { margin:8px 0 12px; font-size:12px; line-height:1.5; font-style:normal; }
body.woocommerce-checkout #payment .ep-tpay-select-label { display:block; margin:0 0 8px; font-weight:600; }
body.woocommerce-checkout #ep-tpay-bank { min-height:48px; font-size:16px; background:#fff; margin:0 0 14px; }
/* Equal icon slots keep brand marks and neutral outline icons aligned before the name. */
body.woocommerce-checkout #payment .wc_payment_method > label .ep-payment-icon { display:flex; order:-1; flex:0 0 64px; width:64px; height:36px; align-items:center; justify-content:center; color:#24282b; }
body.woocommerce-checkout #payment .wc_payment_method > label .ep-payment-icon img { display:block; float:none; width:64px; height:36px; max-width:64px; max-height:36px; margin:0; padding:0; object-fit:contain; }
/* Match the visible black BLIK rectangle to the optical height of the PayPo wordmark. */
body.woocommerce-checkout #payment .wc_payment_method > label .ep-payment-icon--tpayblik img { width:36px; height:20px; max-width:36px; max-height:20px; }
body.woocommerce-checkout #payment .wc_payment_method > label .ep-payment-icon svg { width:32px; height:32px; max-width:32px; max-height:32px; flex:none; }
body.woocommerce-checkout #payment .wc_payment_method > label .ep-payment-icon--cod img { width:28px; height:28px; max-width:28px; max-height:28px; flex:none; }
body.woocommerce-checkout #payment .tpay-regulations { font-style:normal; line-height:1.5; }
/* The native checked radio is authoritative, even during Woo's slide animations
   or fragment replacement. Never display an inactive method's fields or legal copy. */
body.woocommerce-checkout #payment .wc_payment_method > input[type="radio"][name="payment_method"]:not(:checked) ~ .payment_box { display:none!important; }
/* Hide originals only after JS has successfully mounted the selected provider's legal text. */
body.woocommerce-checkout #payment .ep-tpay-legal-source,
body.woocommerce-checkout #payment .ep-tpay-info-only > .payment_box { display:none!important; }
body.woocommerce-checkout .ep-tpay-checkout-legal[hidden] { display:none!important; }
body.woocommerce-checkout .ep-tpay-checkout-legal { margin:0 0 14px; padding:0; color:#65736f; font-size:12px; font-weight:400; font-style:normal; line-height:1.55; }
body.woocommerce-checkout .ep-tpay-checkout-legal p { margin:0 0 6px; font-size:inherit; line-height:inherit; color:inherit; }
body.woocommerce-checkout .ep-tpay-checkout-legal .tpay-accept-conditions,
body.woocommerce-checkout .ep-tpay-checkout-legal .powered-by-tpay { color:inherit; font-size:inherit; line-height:inherit; }
body.woocommerce-checkout .ep-tpay-checkout-legal a { color:#15785c; text-decoration:underline; text-underline-offset:2px; }
body.woocommerce-checkout .ep-tpay-checkout-legal .powered-by-tpay { display:flex; align-items:center; gap:7px; margin:6px 0 0; }
body.woocommerce-checkout .ep-tpay-checkout-legal .powered-by-tpay p { margin:0; }
body.woocommerce-checkout .ep-tpay-checkout-legal .powered-by-tpay img { display:block; width:38px; height:16px; max-width:38px; margin:0; object-fit:contain; }
body.single-product .ep-tpay-product-financing { display:flex; flex-direction:column; justify-content:center; gap:8px; min-height:126px; height:100%; padding:12px; color:#24282b; background:#f2f5f4; border:1px solid #d7dedd; border-radius:12px; font-style:normal; text-decoration:none; }
body.single-product .ep-tpay-product-financing > span { font-size:12px; line-height:1.4; }
body.single-product .ep-tpay-product-financing strong { font-size:17px; font-weight:650; line-height:1.35; }
body.single-product .ep-tpay-product-financing small { font-size:11px; line-height:1.4; color:#15785c; }
body.single-product .ep-tpay-product-financing:focus-visible { outline:2px solid #188767; outline-offset:3px; }
