/* Payment configuration and settlement details share the existing POS theme. */
.settings-stack { display: grid; gap: 20px; min-width: 0; }
.settings-panel { padding: 22px; min-width: 0; overflow: hidden; }
.settings-panel > h2 { margin-bottom: 8px; font-size: 18px; }
.settings-panel > p { margin-bottom: 20px; color: #596176; font-size: 14px; line-height: 1.8; }
.settings-panel .surface-heading { padding: 0 0 18px; margin-bottom: 20px; flex-wrap: wrap; }
.settings-form { display: grid; gap: 20px; min-width: 0; }
.settings-form .field { min-width: 0; }
.settings-form .field small { color: #596176; font-size: 12px; line-height: 1.8; }
.settings-form > .button { justify-self: start; min-width: 140px; }
.quick-cash-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.quick-cash-mode legend { margin-bottom: 10px; color: #596176; font-size: 14px; }
.quick-cash-mode label { display: flex; align-items: center; gap: 10px; padding: 13px 14px; min-height: 50px; min-width: 0; border: 1px solid #e1e4ec; border-radius: 9px; background: #f4f5fa; color: #596176; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
.quick-cash-mode label:has(input:checked) { border-color: #e1e4ec; background: #f4f5fa; color: #242538; }
.quick-cash-mode input { width: 18px; height: 18px; min-height: 18px; margin: 0; flex: 0 0 auto; accent-color: #a78bfa; }
.quick-cash-mode label:focus-within { outline: 2px solid #90b7ff; outline-offset: 3px; }
.quick-cash-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.settings-form [data-cash-mode] { min-width: 0; }
.settings-form [data-cash-mode][hidden] { display: none; }
.settings-preview { padding: 14px 16px; border: 1px solid #e1e4ec; border-radius: 9px; background: #f8f9fc; color: #596176; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.settings-preview strong { color: #242538; font-variant-numeric: tabular-nums; }
.settings-preview .quick-cash { margin: 10px 0 0; }
.payment-settings-list { display: grid; gap: 12px; min-width: 0; }
.payment-setting-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 18px; padding: 17px; border: 1px solid #e1e4ec; border-radius: 10px; background: #ffffff; min-width: 0; }
.payment-setting-card > div:first-child { flex: 1 1 210px; min-width: 0; }
.payment-setting-card p, .payment-setting-card small { color: #596176; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.payment-setting-card p { margin-top: 7px; }
.payment-setting-card.inactive { background: #f1ecfc; border-color: #c6b6ee; }
.payment-setting-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.payment-setting-title > svg { width: 20px; height: 20px; flex-shrink: 0; color: #6d47c3; }
.payment-setting-title strong { font-size: 15px; color: #242538; overflow-wrap: anywhere; }
.payment-setting-title .badge { white-space: normal; }
.payment-setting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.payment-setting-actions .button { min-height: 44px; }
.commission-summary { margin: 12px 0; padding: 14px; border: 1px solid #e1e4ec; border-radius: 9px; background: #ffffff; }
.commission-summary .summary-row { align-items: flex-start; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.commission-summary .summary-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.commission-summary .summary-row > :last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.commission-summary .summary-row:last-of-type { margin-bottom: 0; padding-top: 10px; border-top: 1px solid #e1e4ec; color: #242538; font-weight: 600; }
.commission-summary .summary-row:last-of-type > :last-child { color: #596176; }
.settlement-note { margin: 10px 0 0; color: #596176; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.settlement-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; min-width: 0; }
.settlement-stats > div { min-width: 0; padding: 20px; border: 1px solid #e1e4ec; border-radius: 12px; background: #ffffff; }
.settlement-stats > div:last-child { border-color: #c6e8d5; background: #edf9f2; }
.settlement-stats strong { display: block; margin-block: 7px; font-size: clamp(23px, 3vw, 30px); color: #242538; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.settlement-stats > div:last-child strong { color: #16704a; }
.settlement-stats span, .settlement-stats small { color: #596176; font-size: 13px; line-height: 1.8; }
.settlement-stats small { display: block; font-size: 12px; }
.payment-methods { grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); }
.payment-method { flex-wrap: wrap; min-width: 0; min-height: 54px; padding: 10px 8px; line-height: 1.6; overflow-wrap: anywhere; }
.payment-method > svg { flex-shrink: 0; }
.payment-method > span:not(.selection-dot) { min-width: 0; }
.payment-method .selection-dot { flex-shrink: 0; }
.method-caption { display: block; flex: 0 0 100%; color: #596176; font-size: 11px; font-weight: 400; line-height: 1.5; }
.payment-method.active .method-caption { color: #6d47c3; }
.quick-cash, .cash-options { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.quick-cash button, .cash-options button { min-width: 0; font-variant-numeric: tabular-nums; }
.quick-cash button:disabled, .cash-options button:disabled { opacity: .4; cursor: not-allowed; }
.merchant-settlement { margin-top: 18px; padding: 14px; border: 1px dashed #e1e4ec; border-radius: 8px; background: #f8f9fc; }
.merchant-settlement > h3 { margin-bottom: 12px; color: #596176; font-size: 14px; }
.merchant-settlement .settlement-note { margin-top: 10px; }

@media screen and (max-width: 599px) {
 .settings-stack { gap: 16px; }
 .settings-panel { padding: 16px; }
 .settings-panel .surface-heading { gap: 12px; }
 .settings-panel .surface-heading .button { width: 100%; }
 .quick-cash-mode { grid-template-columns: 1fr; }
 .quick-cash-fields { grid-template-columns: 1fr; gap: 12px; }
 .settings-form > .button { justify-self: stretch; }
 .payment-setting-card { padding: 14px; }
 .payment-setting-actions { width: 100%; }
 .payment-setting-actions .button { flex: 1 1 100px; }
 .settlement-stats { gap: 10px; }
 .settlement-stats > div { padding: 15px 12px; }
 .commission-summary { padding: 12px; }
}

@media screen and (max-width: 379px) {
 .settlement-stats { grid-template-columns: 1fr; }
 .settings-preview { padding: 12px; }
 .commission-summary .summary-row { flex-wrap: wrap; gap: 5px; }
 .commission-summary .summary-row > :last-child { margin-inline-start: auto; }
}

@media print {
 .merchant-settlement { display: none !important; }
}

/* Settlement details use clear success colors on white surfaces. */
.quick-cash-mode label:has(input:checked){border-color:#b59ce5;background:#f4effc;color:#603bb6}
.quick-cash-mode input{accent-color:#7150d8}
.commission-summary{background:#fafbfe;border-color:#e1e4ec}
.commission-summary .summary-row:last-of-type{color:#16704a;border-top-color:#dbe8e1}
.commission-summary .summary-row:last-of-type > :last-child{color:#16704a}
.settlement-stats > div:last-child{background:#f4fbf6;border-color:#d7ebde}
.settlement-stats > div:last-child strong{color:#16704a}
.payment-method.active .method-caption{color:#70539c}
.payment-setting-title strong{color:#34364b}
.merchant-settlement{background:#fafbfe;border-color:#d5c9e6}
.merchant-settlement > h3{color:#6742bd}
