/* SGH-PAYMENTS-20261006.1 — scoped invoice and native payment method presentation. */
.sgh-payment-native-select { display: none !important; }
.sgh-payment-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; width: 100%; margin: 12px 0; }
.sgh-payment-choice, .sgh-payment-radio-grid label.sgh-payment-radio-card {
    box-sizing: border-box; border: 1px solid #b9cec5; border-radius: 14px; padding: 18px;
    background: #fff; color: #173f35; text-align: start; font: inherit; cursor: pointer;
    min-height: 100px; min-width: 0; margin: 0; overflow-wrap: anywhere;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sgh-payment-choice { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 7px 10px; align-content: center; padding-inline-end: 38px; }
.sgh-payment-choice svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; grid-row: 1 / 3; }
.sgh-payment-choice-name { font-weight: 650; line-height: 1.45; }
.sgh-payment-choice-state { min-height: 18px; line-height: 1.4; font-size: 12px; color: #526960; }
.sgh-payment-choice-marker { position: absolute; inset-inline-end: 13px; top: 16px; width: 18px; height: 18px; border: 1.5px solid #9bafa5; border-radius: 50%; background: #fff; }
.sgh-payment-choice.is-selected .sgh-payment-choice-marker { border-color: #176b43; background: #176b43; }
.sgh-payment-choice.is-selected .sgh-payment-choice-marker::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sgh-payment-choice.is-selected .sgh-payment-choice-state { color: #155c3b; font-weight: 700; }
.sgh-payment-choice:hover, .sgh-payment-radio-card:hover { border-color: #37765d; background: #f7faf6; }
.sgh-payment-choice.is-selected, .sgh-payment-radio-card.is-selected { border-color: #176b43; box-shadow: inset 0 0 0 1px #176b43; background: #eaf5e9; }
.sgh-payment-choice:focus-visible, .sgh-payment-radio-card:focus-within { outline: 3px solid #17669c; outline-offset: 3px; }
.sgh-payment-choice:disabled, .sgh-payment-radio-card.is-disabled { opacity: .55; cursor: not-allowed; }
.sgh-payment-radio-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.sgh-payment-radio-grid label.sgh-payment-radio-card { display: block; flex: 1 1 180px; padding-inline-start: 16px; }
.sgh-payment-radio-grid label.sgh-payment-radio-card input[type="radio"] { position: static; float: none; margin: 0 8px 0 0; }

body.sgh-invoice-page { background: #f2f5f4; color: #243d36; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.sgh-invoice-page .invoice-container { max-width: 1080px; padding: 38px; border: 1px solid #dbe5e1; border-radius: 20px; box-shadow: 0 12px 35px rgba(22, 54, 43, .06); }
.sgh-invoice-page .invoice-header { display: flex; align-items: center; justify-content: space-between; }
.sgh-invoice-page .invoice-header h3 { color: #173f35; font-weight: 650; }
.sgh-invoice-page .invoice-header img { width: 260px; max-height: 84px; max-width: 100%; object-fit: contain; }
.sgh-invoice-page .invoice-status { font-size: 18px; }
.sgh-invoice-page .invoice-status span { display: inline-block; border-radius: 24px; padding: 7px 16px; background: #f1f4f2; }
.sgh-invoice-page .invoice-status .paid { color: #175738; background: #e7f4e8; }
.sgh-invoice-page .invoice-status .unpaid { color: #914c15; background: #fff1d9; }
.sgh-invoice-page hr { border-color: #e2e9e6; margin: 26px 0; }
.sgh-invoice-page .panel { border-radius: 12px; overflow: hidden; border-color: #dbe5e1; box-shadow: none; }
.sgh-invoice-page .panel-heading { background: #f6f8f7; padding: 16px; }
.sgh-invoice-page .table > tbody > tr > td, .sgh-invoice-page .table > thead > tr > td { padding: 13px 10px; }
.sgh-money { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sgh-payment-panel { border: 1px solid #d1dfd8; border-radius: 16px; padding: 22px; margin: 4px 0 28px; background: #fcfdfb; clear: both; }
.sgh-payment-panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 12px; }
.sgh-payment-panel h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.4; font-weight: 650; }
.sgh-payment-panel .sgh-balance { text-align: end; }
.sgh-payment-panel .sgh-balance-label { display: block; color: #506960; font-size: 13px; }
.sgh-payment-panel .sgh-balance-value { font-size: 26px; font-weight: 650; line-height: 1.5; }
.sgh-payment-panel .sgh-currency { display: block; color: #506960; font-size: 12px; }
.sgh-payment-methods-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid #c3d5cc; border-radius: 10px; color: #173f35; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.sgh-payment-methods-link:hover { color: #173f35; background: #edf5ee; text-decoration: none; border-color: #176b43; }
.sgh-payment-methods-link:focus-visible { outline: 3px solid #17669c; outline-offset: 3px; }
.sgh-payment-account-tools { margin: 0 0 22px; }
.sgh-payment-choice-hint { font-size: 14px; color: #506960; margin: 0 0 4px; line-height: 1.5; }
.sgh-invoice-page .sgh-payment-panel .payment-btn-container { margin-top: 20px; padding-top: 18px; border-top: 1px solid #dbe5e1; }
.sgh-invoice-page .payment-btn-container .btn { min-height: 46px; border-radius: 10px; white-space: normal; }
.sgh-invoice-page .payment-btn-container .btn-primary { background: #173f35; border-color: #173f35; }
.sgh-invoice-page .sgh-payment-panel form.form-inline { width: 100%; }
.sgh-invoice-page .sgh-payment-panel select { max-width: 100%; }
.sgh-invoice-page .sgh-payment-panel .payment-btn-container img { max-width: 100%; height: auto; }
.sgh-invoice-page .invoice-back { padding: 12px 16px 25px; }
@media (max-width: 767px) {
    .sgh-invoice-page .invoice-container { margin: 12px; padding: 22px; }
    .sgh-payment-panel { padding: 18px; }
    .sgh-payment-panel-heading { flex-direction: column; gap: 12px; }
    .sgh-payment-panel .sgh-balance { text-align: start; }
    .sgh-payment-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .sgh-payment-choice { grid-template-columns: 1fr; padding: 14px; min-height: 132px; align-content: start; }
    .sgh-payment-choice svg { grid-row: auto; width: 24px; height: 24px; }
}
@media (max-width: 499px) {
    .sgh-invoice-page .invoice-container { margin: 8px; padding: 16px; border-radius: 14px; }
    .sgh-invoice-page .invoice-header { flex-direction: column; align-items: stretch; text-align: start; }
    .sgh-invoice-page .invoice-header .invoice-col { width: 100%; text-align: start; }
    .sgh-invoice-page .invoice-header img { max-width: 100%; }
    .sgh-invoice-page .invoice-status { margin: 10px 0; }
    .sgh-invoice-page .table-responsive { border: 0; }
    .sgh-payment-panel { padding: 14px; }
    .sgh-payment-panel h2 { font-size: 20px; }
    .sgh-payment-panel .sgh-balance-value { font-size: 23px; }
    .sgh-payment-choice-name { font-size: 13px; }
    .sgh-payment-methods-link { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .sgh-payment-choice, .sgh-payment-radio-card { transition: none; }
}
@media print {
    body.sgh-invoice-page { background: #fff; }
    .sgh-invoice-page .invoice-container { width: auto; max-width: none; margin: 0; padding: 10px; box-shadow: none; border: 0; }
    .sgh-payment-choices, .sgh-payment-panel.hidden-print { display: none !important; }
    .sgh-payment-native-select { display: inline-block !important; }
}
