/* F05: native invoice-payment presentation only. Provider frames remain owned by their gateway. */
.ar-next form#frmPayment .card{background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:var(--shadow)}
.ar-next form#frmPayment .card-title,.ar-next form#frmPayment #invoiceIdSummary h2{color:var(--heading);line-height:1.35}
.ar-next form#frmPayment #invoiceIdSummary h2{font-size:1.25rem;overflow-wrap:anywhere}
.ar-next form#frmPayment .invoice-summary-table{max-height:none;overflow:visible}
.ar-next form#frmPayment .invoice-summary-table .table{table-layout:fixed;width:100%;color:var(--text)}
.ar-next form#frmPayment .invoice-summary-table td{border-color:var(--line-soft);font-size:.875rem;overflow-wrap:anywhere;vertical-align:top}
.ar-next form#frmPayment .invoice-summary-table td:last-child{width:42%;font-variant-numeric:tabular-nums}
.ar-next form#frmPayment .invoice-summary-table td.total-row{background:var(--raised);color:var(--heading)}
.ar-next form#frmPayment .invoice-summary-table tr:last-child td.total-row{background:var(--secondary);color:var(--secondary-text);border-top:2px solid var(--accent)}
.ar-next form#frmPayment #invoiceIdSummary .alert-success{background:var(--secondary);color:var(--secondary-text);border:1px solid var(--line);font-variant-numeric:tabular-nums}
.ar-next form#frmPayment .alert-warning{background:var(--warm-bg);color:var(--warm);border-color:var(--warm)}
.ar-next form#frmPayment .alert-danger{background:#f7e2df;color:#73251e;border-color:#9c4239}
:root[data-ar-next-theme=dark] .ar-next form#frmPayment .alert-danger{background:#3a2029;color:#ffd4cc;border-color:#d8897b}
.ar-next form#frmPayment .alert-info{background:var(--raised);color:var(--text);border-color:var(--line)}
.ar-next form#frmPayment .paymethod-info{color:var(--text);line-height:1.6;overflow-wrap:anywhere}
.ar-next form#frmPayment .three-column-grid{display:grid;grid-template-columns:24px auto minmax(0,1fr) minmax(0,1fr) auto;gap:4px;max-width:100%;font-size:.8125rem}
.ar-next form#frmPayment .three-column-grid>.paymethod-info{min-width:0;padding:6px 3px;border-bottom:1px solid var(--line-soft)}
.ar-next form#frmPayment .paymethod-info label{color:var(--text)}
/* Keep iCheck inputs, helpers, event handlers and native tab order intact. */
.ar-next form#frmPayment .iradio_square-blue{width:22px;height:22px;border:2px solid var(--accent);border-radius:50%;background:var(--surface);box-sizing:border-box}
.ar-next form#frmPayment .iradio_square-blue::after{content:"";position:absolute;inset:4px;border-radius:50%;background:transparent;pointer-events:none}
.ar-next form#frmPayment .iradio_square-blue.checked::after{background:var(--accent)}
.ar-next form#frmPayment .iradio_square-blue:not(.disabled):hover{box-shadow:0 0 0 3px var(--line-soft)}
.ar-next form#frmPayment .iradio_square-blue:focus-within,.ar-next form#frmPayment .iradio_square-blue.focus{outline:3px solid var(--focus);outline-offset:3px}
.ar-next form#frmPayment .iradio_square-blue.disabled{background:var(--disabled);border-color:var(--disabled-text);border-style:dashed;cursor:not-allowed}
.ar-next form#frmPayment .iradio_square-blue.disabled.checked::after{background:var(--disabled-text)}
.ar-next form#frmPayment input.icheck-button{accent-color:var(--accent)}
.ar-next form#frmPayment :is(input.form-control,select.form-control,select.custom-select){background:var(--surface);color:var(--text);border-color:var(--line);min-height:44px}
.ar-next form#frmPayment :is(input.form-control,select.form-control,select.custom-select):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.ar-next form#frmPayment input.form-control::placeholder{color:var(--muted);opacity:1}
.ar-next form#frmPayment :is(input.form-control,select.form-control):disabled{background:var(--disabled);color:var(--disabled-text)}
.ar-next form#frmPayment #btnSubmit{min-height:44px;padding:12px 28px;background:var(--primary);color:var(--primary-text);border:1px solid var(--primary);font-weight:650;border-radius:7px;white-space:normal}
.ar-next form#frmPayment #btnSubmit:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}
.ar-next form#frmPayment #btnSubmit:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.ar-next form#frmPayment #btnSubmit:disabled{background:var(--disabled);color:var(--disabled-text);border-color:var(--line);opacity:1;cursor:not-allowed}
.ar-next form#frmPayment #cvvWhereLink{color:var(--accent);text-decoration:underline}
@media(max-width:575px){
 .ar-next form#frmPayment .card-body{padding:18px 14px}
 .ar-next form#frmPayment .three-column-grid{grid-template-columns:24px auto minmax(0,1fr);gap:2px}
 .ar-next form#frmPayment .three-column-grid>.paymethod-info:nth-child(5n+4){grid-column:2}
 .ar-next form#frmPayment .three-column-grid>.paymethod-info:nth-child(5n+5){grid-column:3}
 .ar-next form#frmPayment #btnSubmit{width:100%}
}
