/* Native WooCommerce payment controls stay in place. */
.woocommerce-checkout #hafu-payment-section { margin:24px 0 0; color:#25232b; }
.woocommerce-checkout #hafu-payment-section > h2,
.woocommerce-checkout #hafu-payment-section .hafu-payment-heading { margin:0 0 16px; color:#25232b; font-size:20px; line-height:1.4; font-weight:600; }
.woocommerce-checkout #payment { background:#fff; border:1px solid #eee3e8; border-radius:10px; overflow:hidden; color:#25232b; }
.woocommerce-checkout #payment ul.payment_methods { margin:0; padding:4px 18px; border-bottom:1px solid #eee3e8; list-style:none; }
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method { display:grid; grid-template-columns:19px minmax(0,1fr); column-gap:10px; align-items:start; margin:0; padding:17px 0; border-bottom:1px dashed #e6dce2; font-size:14px; line-height:1.5; }
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:last-child { border-bottom:0; }
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input[type=radio] { width:17px; height:17px; min-height:17px; margin:3px 0 0; accent-color:#e91e63; align-self:start; }
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-width:0; margin:0; padding:0; color:#28232a; font-size:14px; line-height:1.55; font-weight:600; cursor:pointer; }
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img,
.woocommerce-checkout #payment .hafu-payment-logo { flex:none; width:auto; max-width:115px; height:auto; max-height:29px; margin:0 0 0 auto; object-fit:contain; }
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label .about_paypal { margin-left:auto; font-size:11px; font-weight:400; }
.woocommerce-checkout #payment div.payment_box { grid-column:1/-1; box-sizing:border-box; float:none; width:100%; margin:13px 0 0; padding:16px; border:1px solid #f2dbe5; border-radius:8px; background:#fff6fa; color:#3f3440; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.woocommerce-checkout #payment div.payment_box::before { top:-12px; left:25px; margin:0; border-width:6px; border-bottom-color:#f2dbe5; }
.woocommerce-checkout #payment div.payment_box > :first-child { margin-top:0; }
.woocommerce-checkout #payment div.payment_box > :last-child { margin-bottom:0; }
.woocommerce-checkout #payment div.payment_box p { font-size:13px; line-height:1.65; }
.woocommerce-checkout #payment .place-order { padding:18px; }
.woocommerce-checkout #payment input:focus-visible,
.woocommerce-checkout #payment button:focus-visible,
.woocommerce-checkout #payment a:focus-visible,
.woocommerce-checkout .hafu-invoice-request input:focus-visible,
.woocommerce-checkout #hafu-invoice-fields input:focus-visible,
.woocommerce-checkout #hafu-invoice-fields textarea:focus-visible { outline:3px solid #ef9aba; outline-offset:3px; }

.woocommerce-checkout .hafu-invoice-request { min-width:0; margin:0 0 15px; padding:14px 16px; border:1px solid #eee3e8; border-radius:9px; background:#fff; color:#302831; }
.woocommerce-checkout .hafu-invoice-request legend { float:none; width:auto; margin:0 0 8px; padding:0 5px; color:#302831; font-size:14px; line-height:1.5; font-weight:600; }
.woocommerce-checkout .hafu-invoice-request label { display:inline-flex; align-items:center; gap:7px; min-height:38px; margin:0 22px 0 0; color:#403541; font-size:13px; font-weight:400; cursor:pointer; }
.woocommerce-checkout .hafu-invoice-request input[type=radio] { width:17px; height:17px; margin:0; accent-color:#e91e63; }
.woocommerce-checkout #hafu-invoice-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:8px 0 0; padding:14px; border:1px dashed #edc5d5; border-radius:8px; background:#fff7fb; }
.woocommerce-checkout #hafu-invoice-fields[hidden] { display:none!important; }
.woocommerce-checkout #hafu-invoice-fields .form-row { float:none; width:auto; margin:0; padding:0; min-width:0; }
.woocommerce-checkout #hafu-invoice-fields .form-row-wide { grid-column:1/-1; }
.woocommerce-checkout #hafu-invoice-fields label { display:block; min-height:0; margin:0 0 5px; padding:0; font-size:12px; line-height:1.5; font-weight:500; cursor:default; }
.woocommerce-checkout #hafu-invoice-fields input,
.woocommerce-checkout #hafu-invoice-fields textarea,
.woocommerce-checkout #hafu-invoice-fields select { box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:40px; margin:0; padding:9px 10px; border:1px solid #dfd4dc; border-radius:6px; background:#fff; color:#28232a; font:13px/1.5 Arial,Helvetica,sans-serif; }
.woocommerce-checkout #hafu-invoice-fields textarea { min-height:76px; resize:vertical; }

.hafu-bank-payment { container-type:inline-size; container-name:hafu-bank; color:#28232a; font:14px/1.6 Arial,Helvetica,sans-serif; overflow-wrap:anywhere; }
.hafu-bank-payment * { box-sizing:border-box; }
.hafu-bank-payment h3,
.hafu-bank-payment h4 { margin:0 0 10px; color:#342632; font-size:15px; line-height:1.5; font-weight:600; }
.hafu-bank-payment h2 { margin:0 0 12px; color:#342632; font-size:18px; line-height:1.4; font-weight:600; }
.hafu-bank-payment p { margin:9px 0; }
.hafu-bank-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,272px); gap:18px; align-items:start; }
.hafu-bank-grid { display:grid; grid-template-columns:minmax(180px,272px) minmax(0,1fr); gap:18px; align-items:start; }
.hafu-bank-layout > * { min-width:0; }
.hafu-bank-grid > * { min-width:0; }
.hafu-bank-details,
.hafu-bank-grid > dl { display:grid; grid-template-columns:105px minmax(0,1fr); gap:10px 12px; margin:0; }
.hafu-bank-details dt,
.hafu-bank-grid > dl dt { margin:0; color:#7c6d7a; font-size:12px; font-weight:400; }
.hafu-bank-details dd,
.hafu-bank-grid > dl dd { min-width:0; margin:0; color:#342632; font-size:13px; overflow-wrap:anywhere; }
.hafu-bank-number { color:#c71958; font-size:18px; line-height:1.5; font-weight:700; letter-spacing:.3px; }
.hafu-bank-content { display:block; margin-top:3px; padding:8px 10px; border:1px dashed #e9bfd0; border-radius:6px; background:#fff; color:#a3194b; font-family:Arial,Helvetica,sans-serif; font-weight:600; overflow-wrap:anywhere; }
.hafu-qr-canvas { width:272px; max-width:100%; margin:0 auto; padding:16px; border:1px solid #eee5eb; border-radius:10px; background:#fff; line-height:0; }
.hafu-qr-canvas:empty { display:none; }
.hafu-qr-canvas canvas,
.hafu-qr-canvas > img { display:block!important; width:100%!important; max-width:240px; height:auto!important; aspect-ratio:1; margin:auto; }
.hafu-qr-canvas table { margin:0 auto!important; border-collapse:collapse!important; background:#fff!important; }
.hafu-qr-status { margin:8px 0!important; color:#95516a; font-size:12px!important; line-height:1.5!important; text-align:center; }
.hafu-bank-payment .hafu-payment-note,
.hafu-bank-payment .hafu-qr-caption { color:#7c6d7a; font-size:12px; line-height:1.6; }
.hafu-bank-payment .hafu-qr-caption { text-align:center; }
.hafu-bank-payment [data-hafu-copy] { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:33px; max-width:100%; margin:5px 0 0; padding:6px 10px; border:1px solid #edbed0; border-radius:6px; background:#fff; color:#b81b54; font:12px/1.4 Arial,Helvetica,sans-serif; font-weight:600; text-decoration:none; cursor:pointer; }
.hafu-bank-payment [data-hafu-copy]:hover { background:#fff0f6; }
.hafu-bank-payment [data-hafu-copy].is-copied { border-color:#b6dccd; background:#eff9f4; color:#22724f; }
.hafu-bank-payment [data-hafu-copy]:focus-visible { outline:3px solid #ef9aba; outline-offset:3px; }
.hafu-payment-copy-status { min-height:18px; margin:8px 0 0!important; color:#22724f; font-size:12px!important; line-height:1.5!important; }
.hafu-payment-copy-fallback { margin-top:12px; padding:12px; border:1px solid #ead5e0; border-radius:7px; background:#fff; }
.hafu-payment-copy-fallback label { display:block; color:#51414e; font-size:12px; }
.hafu-payment-copy-fallback textarea { display:block; width:100%; max-width:100%; margin-top:6px; padding:8px; border:1px solid #d9cbd5; border-radius:5px; background:#fff; color:#28232a; font:14px/1.5 Arial,Helvetica,sans-serif; resize:vertical; }
.hafu-payment-copy-fallback p { color:#7c6d7a; font-size:12px!important; }
.hafu-payment-copy-fallback button { min-height:34px; padding:6px 12px; border:1px solid #dfc6d3; border-radius:5px; background:#fff6fa; color:#ad1e53; font:12px/1.4 Arial,Helvetica,sans-serif; cursor:pointer; }
@container hafu-bank (max-width:560px) { .hafu-bank-layout,.hafu-bank-grid { grid-template-columns:1fr; } }
@media(max-width:640px) {
  .woocommerce-checkout #hafu-payment-section { margin-top:18px; }
  .woocommerce-checkout #hafu-payment-section > h2,
  .woocommerce-checkout #hafu-payment-section .hafu-payment-heading { margin-bottom:12px; font-size:18px; }
  .woocommerce-checkout #payment ul.payment_methods { padding:2px 12px; }
  .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method { padding:15px 0; column-gap:8px; }
  .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label { gap:8px; font-size:13px; }
  .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img,
  .woocommerce-checkout #payment .hafu-payment-logo { max-width:84px; max-height:24px; }
  .woocommerce-checkout #payment div.payment_box { margin-top:11px; padding:13px 11px; font-size:13px; }
  .woocommerce-checkout #payment .place-order { padding:14px 12px; }
  .woocommerce-checkout .hafu-invoice-request { margin-bottom:12px; padding:11px 12px; }
  .woocommerce-checkout .hafu-invoice-request label { min-height:42px; margin-right:18px; }
  .woocommerce-checkout #hafu-invoice-fields { grid-template-columns:1fr; gap:10px; padding:11px; }
  .woocommerce-checkout #hafu-invoice-fields input,
  .woocommerce-checkout #hafu-invoice-fields textarea,
  .woocommerce-checkout #hafu-invoice-fields select { min-height:42px; font-size:16px; }
  .hafu-bank-layout,.hafu-bank-grid { grid-template-columns:1fr; gap:16px; }
  .hafu-bank-details,.hafu-bank-grid > dl { grid-template-columns:88px minmax(0,1fr); gap:9px; }
  .hafu-bank-details dt,.hafu-bank-grid > dl dt { font-size:11px; }
  .hafu-bank-details dd,.hafu-bank-grid > dl dd { font-size:12px; }
  .hafu-bank-number { font-size:17px; }
  .hafu-bank-payment [data-hafu-copy] { min-height:38px; }
}
