/* ==========================================================================
   POS Terminal — SaaS theme
   Uses --theme-* tokens from app.css for automatic light / dark mode.
   Only hard-codes brand orange for primary actions; everything else adapts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.pos-layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    background: var(--theme-bg);
    font-family: var(--font-family-base, 'Inter', sans-serif);
    color: var(--theme-text);
}

/* --------------------------------------------------------------------------
   Header — matches app topbar, adapts to light / dark
   -------------------------------------------------------------------------- */

.pos-header {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 16px;
    background: var(--theme-topbar-bg);
    border-bottom: 1px solid var(--theme-topbar-border);
    flex-shrink: 0;
    gap: 0;
    min-width: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    z-index: 10;
}

/* Brand */
.pos-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-right: 14px;
}

.pos-header-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--color-secondary-600, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(234, 88, 12, .35);
}

.pos-header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pos-header-title {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--theme-text);
    text-transform: uppercase;
}

.pos-header-subtitle {
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
    text-transform: uppercase;
}

/* Vertical rule separators */
.pos-header-rule,
.pos-header-vr {
    width: 1px;
    height: 20px;
    background: var(--theme-border);
    flex-shrink: 0;
}

.pos-header-rule { margin-right: 14px; }
.pos-header-vr   { margin: 0 8px; }

/* Session info */
.pos-header-meta {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.pos-header-session {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    min-width: 0;
    overflow: hidden;
}

/* "● Live" pill */
.pos-session-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #059669;
    border-radius: 999px;
    padding: 2px 8px 2px 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .pos-session-live {
    color: #34d399;
}

.pos-session-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    animation: pos-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pos-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Dot separator */
.pos-header-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--theme-border);
    flex-shrink: 0;
}

/* Cashier chip */
.pos-header-cashier-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.pos-header-cashier-initial {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-hover-bg);
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid var(--theme-border);
}

.pos-header-cashier-name {
    color: var(--theme-text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.pos-header-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    color: var(--theme-text-muted);
    flex-shrink: 0;
}

.pos-header-txn-count strong {
    color: var(--theme-text-secondary);
    font-weight: 700;
}

/* Actions */
.pos-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Generic header button — theme-aware */
.pos-header-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--theme-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    white-space: nowrap;
}

.pos-header-icon-btn:hover {
    background: var(--theme-hover-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

.pos-header-icon-btn-label { /* hidden on small screens */ }

/* End Session — subtle red-tint */
.pos-header-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: var(--color-danger-500, #b91c1c);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.pos-header-end-btn:hover {
    background: rgba(185, 28, 28, 0.07);
    border-color: rgba(185, 28, 28, 0.55);
}

[data-theme="dark"] .pos-header-end-btn {
    color: #fca5a5;
    border-color: rgba(185, 28, 28, 0.4);
}

[data-theme="dark"] .pos-header-end-btn:hover {
    background: rgba(185, 28, 28, 0.15);
}

/* User chip */
.pos-header-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 4px;
}

.pos-header-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-secondary-600, #ea580c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pos-header-username {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Flash Messages
   -------------------------------------------------------------------------- */

.pos-flash {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
}

.pos-flash--success {
    background: var(--color-success-100, #d1fae5);
    color: var(--color-success-700, #047857);
}

.pos-flash--error {
    background: var(--color-danger-100, #fee2e2);
    color: var(--color-danger-500, #b91c1c);
}

[data-theme="dark"] .pos-flash--success { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
[data-theme="dark"] .pos-flash--error   { background: rgba(185, 28, 28, .2);   color: #fca5a5; }

/* --------------------------------------------------------------------------
   Terminal Split Layout
   -------------------------------------------------------------------------- */

.pos-terminal {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    gap: 0;
}

/* Left panel — cart + search */
.pos-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--theme-card-bg);
    border-right: 1px solid var(--theme-border);
    min-width: 0;
}

/* Right panel — payment */
.pos-right {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--theme-bg);
    padding: 12px;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-border) transparent;
}

/* --------------------------------------------------------------------------
   Search — styled input widget, adapts to theme
   -------------------------------------------------------------------------- */

.pos-search-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 10px 10px 8px;
    background: var(--theme-card-bg);
    border-bottom: 1px solid var(--theme-border);
}

.pos-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--theme-bg);
    border: 1.5px solid var(--theme-input-border);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pos-search-wrap:focus-within .pos-search-bar {
    border-color: var(--color-secondary-400, #fb923c);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.pos-search-icon {
    color: var(--theme-text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pos-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--theme-text);
    font-size: 0.9375rem;
    font-family: var(--font-family-base);
    caret-color: var(--color-secondary-500, #f97316);
    font-weight: 400;
    min-width: 0;
}

.pos-search-input::placeholder {
    color: var(--theme-text-muted);
}

.pos-search-hint {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--theme-text-muted);
    white-space: nowrap;
    background: var(--theme-bg-muted);
    border: 1px solid var(--theme-border);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Search Results Dropdown
   -------------------------------------------------------------------------- */

.pos-search-results {
    position: absolute;
    top: calc(100% - 8px);
    left: 10px;
    right: 10px;
    z-index: 100;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.pos-search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--theme-border-muted, var(--theme-border));
    transition: background 0.1s;
    gap: 10px;
}

.pos-search-result-item:last-child { border-bottom: none; }

.pos-search-result-item:hover {
    background: var(--theme-hover-bg);
}

.pos-search-result-info { flex: 1; min-width: 0; }

.pos-search-result-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-search-result-code {
    font-size: 0.6875rem;
    color: var(--theme-text-muted);
    margin-top: 1px;
}

.pos-search-result-price {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-secondary-600, #ea580c);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.pos-cart-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.pos-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid var(--theme-border);
}

.pos-cart-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--theme-text-muted);
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-border) transparent;
    background: var(--theme-bg-muted, #f8fafc);
    padding: 6px 8px;
}

[data-theme="dark"] .pos-cart-items {
    background: rgba(0,0,0,.15);
}

.pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    padding: 24px;
    color: var(--theme-text-muted);
    text-align: center;
    gap: 6px;
}

.pos-cart-empty p {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    color: var(--theme-text-secondary);
}

.pos-cart-empty small { font-size: 0.75rem; }

/* Cart Item Row */
.pos-cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--theme-border-muted, var(--theme-border));
    transition: background 0.1s;
}

.pos-cart-item:hover { background: var(--theme-hover-bg); }

.pos-cart-item-info { min-width: 0; }

.pos-cart-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-cart-item-code {
    font-size: 0.6875rem;
    color: var(--theme-text-muted);
}

.pos-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pos-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid var(--theme-border);
    border-radius: 4px;
    background: var(--theme-bg-muted);
    color: var(--theme-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.1s;
    line-height: 1;
    flex-shrink: 0;
}

.pos-qty-btn:hover {
    background: var(--theme-hover-bg);
    border-color: var(--theme-input-border);
}

.pos-qty-input {
    width: 38px;
    text-align: center;
    border: 1px solid var(--theme-border);
    border-radius: 4px;
    padding: 2px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--theme-text);
    background: var(--theme-input-bg);
}

.pos-cart-item-price {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    min-width: 56px;
    text-align: right;
}

.pos-cart-item-total {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-text);
    min-width: 64px;
    text-align: right;
}

.pos-cart-item-remove {
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: color 0.1s, background 0.1s;
    flex-shrink: 0;
}

.pos-cart-item-remove:hover {
    color: var(--color-danger-500, #b91c1c);
    background: var(--color-danger-50, #fef2f2);
}

[data-theme="dark"] .pos-cart-item-remove:hover {
    background: rgba(185,28,28,.15);
}

/* --------------------------------------------------------------------------
   Cart Totals
   -------------------------------------------------------------------------- */

.pos-cart-totals {
    border-top: 1px solid var(--theme-border);
    padding: 8px 12px;
    background: var(--theme-bg-muted);
    flex-shrink: 0;
}

.pos-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.pos-totals-label {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

.pos-totals-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-text-secondary);
}

.pos-totals-row--grand {
    border-top: 1px solid var(--theme-border);
    margin-top: 4px;
    padding-top: 5px;
}

.pos-grand-total {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: var(--color-secondary-600, #ea580c) !important;
}

/* --------------------------------------------------------------------------
   Payment Panel (right)
   -------------------------------------------------------------------------- */

.pos-payment-section { margin-bottom: 2px; }

.pos-section-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
    margin-bottom: 4px;
}

/* Customer lookup row */
.pos-customer-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-lookup-field {
    flex: 1;
    min-width: 0;
}

.pos-lookup-field .lookup-field__wrapper {
    display: flex;
    align-items: center;
}

.pos-lookup-field .lookup-field__display {
    flex: 1;
    min-width: 0;
    padding: 5px 8px;
    font-size: 0.8125rem;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-input-border);
    border-radius: 6px 0 0 6px;
    color: var(--theme-text);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 30px;
    transition: border-color 0.15s;
}

.pos-lookup-field .lookup-field__display:focus {
    outline: none;
    border-color: var(--color-secondary-400, #fb923c);
    box-shadow: 0 0 0 2px rgba(249,115,22,.1);
}

.pos-lookup-field .lookup-field__display::placeholder {
    color: var(--theme-text-muted);
    font-style: italic;
}

.pos-lookup-field .lookup-field__trigger {
    height: 30px;
    width: 28px;
    flex-shrink: 0;
    border: 1px solid var(--theme-input-border);
    border-left: none;
    border-radius: 0;
    background: var(--theme-bg-muted);
    color: var(--theme-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.pos-lookup-field .lookup-field__trigger:hover {
    background: var(--theme-hover-bg);
    color: var(--color-secondary-600, #ea580c);
}

.pos-lookup-field .lookup-field__clear {
    height: 30px;
    width: 26px;
    flex-shrink: 0;
    border: 1px solid var(--theme-input-border);
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: var(--theme-bg-muted);
    color: var(--theme-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.pos-lookup-field .lookup-field__clear:hover {
    background: var(--color-danger-50, #fef2f2);
    color: var(--color-danger-500, #b91c1c);
    border-color: rgba(185,28,28,.25);
}

[data-theme="dark"] .pos-lookup-field .lookup-field__clear:hover {
    background: rgba(185,28,28,.12);
}

/* When trigger is the last border element */
.pos-lookup-field .lookup-field__trigger:last-child {
    border-radius: 0 6px 6px 0;
}

/* Quick-add customer button */
.pos-customer-add-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-secondary-400, #fb923c);
    border-radius: 6px;
    background: transparent;
    color: var(--color-secondary-500, #f97316);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.pos-customer-add-btn:hover {
    background: var(--color-secondary-500, #f97316);
    color: #fff;
}

/* Payment Methods */
.pos-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.pos-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border: 1.5px solid var(--theme-border);
    border-radius: 7px;
    background: var(--theme-card-bg);
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--theme-text-secondary);
    transition: all 0.12s;
    line-height: 1.2;
}

.pos-method-btn:hover {
    border-color: var(--color-secondary-400, #fb923c);
    color: var(--color-secondary-600, #ea580c);
    background: var(--color-secondary-50, #fff7ed);
}

[data-theme="dark"] .pos-method-btn:hover {
    background: rgba(249,115,22,.08);
}

.pos-method-btn--active {
    border-color: var(--color-secondary-500, #f97316);
    background: var(--color-secondary-50, #fff7ed);
    color: var(--color-secondary-700, #c2410c);
}

[data-theme="dark"] .pos-method-btn--active {
    background: rgba(249,115,22,.12);
    color: var(--color-secondary-400, #fb923c);
}

/* Amount Tendered */
.pos-tendered-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 1.125rem;
    font-weight: 700;
    border: 1.5px solid var(--theme-input-border);
    border-radius: 7px;
    text-align: right;
    background: var(--theme-card-bg);
    color: var(--theme-text);
    transition: border-color 0.15s;
}

.pos-tendered-input:focus {
    outline: none;
    border-color: var(--color-secondary-400, #fb923c);
    box-shadow: 0 0 0 3px rgba(249,115,22,.08);
}

/* --------------------------------------------------------------------------
   M-Pesa Panel
   -------------------------------------------------------------------------- */

.pos-mpesa-panel {
    margin: 0 0 4px;
    border-radius: 8px;
    border: 1.5px solid var(--color-success-200, #bbf7d0);
    background: var(--color-success-50, #f0fdf4);
    overflow: visible;
    padding-bottom: 2px;
}

[data-theme="dark"] .pos-mpesa-panel {
    border-color: rgba(34,197,94,.25);
    background: rgba(34,197,94,.07);
}

/* ── Till mode ─────────────────────────────────────────────────────────── */

.pos-mpesa-till {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px 8px;
    gap: 2px;
    text-align: center;
}

.pos-mpesa-till-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-success-700, #15803d);
    margin-bottom: 2px;
}

.pos-mpesa-till-shortcode {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-success-800, #166534);
    line-height: 1.1;
}

.pos-mpesa-till-name {
    font-size: 0.75rem;
    color: var(--color-success-700, #15803d);
    font-weight: 500;
}

.pos-mpesa-till-hint {
    font-size: 0.6875rem;
    color: var(--theme-text-muted);
    margin-top: 2px;
    line-height: 1.35;
}

.pos-mpesa-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    margin-top: 6px;
    border-radius: 6px;
    border: none;
    background: var(--color-success-600, #16a34a);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    width: 100%;
    /* spans full grid width when inside the STK grid */
    grid-column: 1 / -1;
}

.pos-mpesa-confirm-btn:hover:not(:disabled) {
    background: var(--color-success-700, #15803d);
}

.pos-mpesa-confirm-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.pos-mpesa-check-btn {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--color-primary-300, #93c5fd);
    background: var(--color-primary-50, #eff6ff);
    color: var(--color-primary-700, #1d4ed8);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    width: 100%;
    justify-content: center;
}

.pos-mpesa-check-btn:hover:not(:disabled) {
    background: var(--color-primary-100, #dbeafe);
    border-color: var(--color-primary-400, #60a5fa);
}

.pos-mpesa-check-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.pos-mpesa-check-btn--stop {
    background: var(--color-danger-50, #fef2f2);
    border-color: var(--color-danger-300, #fca5a5);
    color: var(--color-danger-700, #b91c1c);
}

.pos-mpesa-check-btn--stop:hover:not(:disabled) {
    background: var(--color-danger-100, #fee2e2);
    border-color: var(--color-danger-400, #f87171);
}

/* ── STK Push mode ─────────────────────────────────────────────────────── */

/* Phone input + send button sit side by side in a single row */
.pos-mpesa-stk {
    padding: 10px 12px 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 6px;
    row-gap: 6px;
    align-items: end;
}

.pos-mpesa-stk .pos-section-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.pos-mpesa-phone-row {
    grid-column: 1;
    display: flex;
}

.pos-mpesa-phone-input {
    width: 100%;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1.5px solid var(--theme-input-border);
    background: var(--theme-input-bg, var(--theme-card-bg));
    color: var(--theme-text);
    font-size: 0.875rem;
}

.pos-mpesa-phone-input:focus {
    outline: none;
    border-color: var(--color-success-500, #22c55e);
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.pos-mpesa-stk-btn {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    border: none;
    background: var(--color-success-600, #16a34a);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.pos-mpesa-stk-btn:hover:not(:disabled) {
    background: var(--color-success-700, #15803d);
}

.pos-mpesa-stk-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pos-mpesa-stk-status {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1.4;
}

.pos-mpesa-stk-status--success {
    background: var(--color-success-100, #dcfce7);
    color: var(--color-success-800, #166534);
    border: 1px solid var(--color-success-200, #bbf7d0);
}

.pos-mpesa-stk-status--error {
    background: var(--color-danger-50, #fef2f2);
    color: var(--color-danger-700, #b91c1c);
    border: 1px solid var(--color-danger-200, #fecaca);
}

.pos-mpesa-stk-status--info {
    background: var(--color-primary-50, #eff6ff);
    color: var(--color-primary-700, #1d4ed8);
    border: 1px solid var(--color-primary-200, #bfdbfe);
}

/* ── Settings page M-Pesa mode cards ───────────────────────────────────── */

.mpesa-mode-card {
    flex: 1;
    min-width: 200px;
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--theme-card-bg);
}

.mpesa-mode-card input[type="radio"] { display: none; }

.mpesa-mode-card:hover {
    border-color: var(--color-success-400, #4ade80);
}

.mpesa-mode-card--active {
    border-color: var(--color-success-500, #22c55e);
    background: var(--color-success-50, #f0fdf4);
}

[data-theme="dark"] .mpesa-mode-card--active {
    background: rgba(34,197,94,.08);
}

.mpesa-mode-card-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--theme-text);
}

.mpesa-mode-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.mpesa-mode-card-desc {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    line-height: 1.4;
}

.form-section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--theme-border);
}

/* Change Display */
.pos-change-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(16, 185, 129, .07);
    border-radius: 7px;
    border: 1px solid rgba(16, 185, 129, .2);
}

.pos-change-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success-700, #047857);
}

[data-theme="dark"] .pos-change-label { color: #34d399; }

.pos-change-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-success-700, #047857);
}

[data-theme="dark"] .pos-change-value { color: #34d399; }

/* Quick Cash Buttons */
.pos-quick-cash {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.pos-quick-btn {
    padding: 5px 2px;
    border: 1px solid var(--theme-border);
    border-radius: 5px;
    background: var(--theme-card-bg);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--theme-text-secondary);
    cursor: pointer;
    text-align: center;
    transition: all 0.1s;
    white-space: nowrap;
}

.pos-quick-btn:hover {
    background: var(--color-secondary-50, #fff7ed);
    border-color: var(--color-secondary-400, #fb923c);
    color: var(--color-secondary-700, #c2410c);
}

[data-theme="dark"] .pos-quick-btn:hover {
    background: rgba(249,115,22,.1);
    color: var(--color-secondary-400, #fb923c);
}

.pos-exact-cash { text-align: right; }

/* Charge Button */
.pos-charge-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px;
    background: var(--color-secondary-500, #f97316);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.30);
    flex-shrink: 0;
}

.pos-charge-btn:hover:not(:disabled) {
    background: var(--color-secondary-600, #ea580c);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.42);
    transform: translateY(-1px);
}

.pos-charge-btn:active:not(:disabled) { transform: translateY(0); }

.pos-charge-btn:disabled {
    background: var(--theme-bg-muted);
    color: var(--theme-text-muted);
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid var(--theme-border);
}

.pos-charge-btn--loading { opacity: 0.75; cursor: wait; }

/* --------------------------------------------------------------------------
   Recent Transactions
   -------------------------------------------------------------------------- */

.pos-recent { margin-top: 2px; }

.pos-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.pos-recent-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pos-recent-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    font-size: 0.75rem;
}

.pos-recent-item--voided { opacity: 0.5; }

.pos-recent-ref {
    font-weight: 700;
    color: var(--theme-text);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    font-size: 0.6875rem;
}

.pos-recent-detail {
    color: var(--theme-text-muted);
    font-size: 0.625rem;
    white-space: nowrap;
}

.pos-recent-amount {
    font-weight: 700;
    color: var(--color-secondary-600, #ea580c);
    white-space: nowrap;
    font-size: 0.75rem;
}

.pos-recent-actions { display: flex; gap: 3px; }

.pos-recent-empty {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    text-align: center;
    padding: 10px;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */

.pos-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.pos-badge--danger {
    background: var(--color-danger-100, #fee2e2);
    color: var(--color-danger-500, #b91c1c);
}

[data-theme="dark"] .pos-badge--danger {
    background: rgba(185,28,28,.18);
    color: #fca5a5;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.pos-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.12s;
    white-space: nowrap;
    line-height: 1.4;
}

.pos-btn--ghost {
    background: transparent;
    border-color: var(--theme-border);
    color: var(--theme-text-secondary);
}

.pos-btn--ghost:hover {
    background: var(--theme-hover-bg);
    color: var(--theme-text);
}

.pos-btn--danger {
    background: var(--color-danger-500, #b91c1c);
    color: #fff;
    border-color: transparent;
}

.pos-btn--danger:hover { background: var(--color-danger-600, #991b1b); }

.pos-btn--primary {
    background: var(--color-secondary-500, #f97316);
    color: #fff;
    border-color: transparent;
}

.pos-btn--primary:hover { background: var(--color-secondary-600, #ea580c); }

.pos-btn--sm  { padding: 3px 9px;  font-size: 0.6875rem; }
.pos-btn--xs  { padding: 2px 6px;  font-size: 0.625rem; }

.pos-icon-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid var(--theme-border);
    background: var(--theme-card-bg);
    cursor: pointer;
    color: var(--theme-text-muted);
    text-decoration: none;
    transition: all 0.1s;
    flex-shrink: 0;
}

.pos-icon-btn:hover {
    background: var(--theme-hover-bg);
    color: var(--theme-text);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.pos-form-group { margin-bottom: 10px; }

.pos-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-text-secondary);
    margin-bottom: 3px;
}

.pos-form-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--theme-input-border);
    border-radius: 6px;
    font-size: 0.8125rem;
    background: var(--theme-card-bg);
    color: var(--theme-text);
    transition: border-color 0.15s;
}

.pos-form-input:focus {
    outline: none;
    border-color: var(--color-secondary-400, #fb923c);
    box-shadow: 0 0 0 2px rgba(249,115,22,.08);
}

/* --------------------------------------------------------------------------
   Link
   -------------------------------------------------------------------------- */

.pos-link {
    font-size: 0.75rem;
    color: var(--color-secondary-600, #ea580c);
    text-decoration: none;
    font-weight: 500;
}

.pos-link:hover { text-decoration: underline; }
.pos-link--center { display: block; text-align: center; }

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.pos-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pos-modal-overlay.open { display: flex; }

.pos-modal {
    background: var(--theme-card-bg);
    border-radius: 12px;
    width: 420px;
    max-width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    border: 1px solid var(--theme-border);
}

.pos-modal--receipt { width: 480px; }

.pos-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--theme-border);
}

.pos-modal-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
}

.pos-modal-body { padding: 14px 18px; }

.pos-modal-desc {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.pos-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    padding: 10px 18px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    border-radius: 0 0 12px 12px;
}

/* Receipt inside modal */
.pos-receipt-modal-content { font-size: 0.875rem; color: var(--theme-text); }

.pos-receipt-modal-header {
    text-align: center;
    padding: 10px 0 14px;
    border-bottom: 1px dashed var(--theme-border);
    margin-bottom: 10px;
}

.pos-receipt-success-icon {
    width: 44px;
    height: 44px;
    background: rgba(16,185,129,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--color-success-600, #059669);
}

.pos-receipt-ref {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--theme-text);
}

.pos-receipt-meta { display: grid; gap: 3px; font-size: 0.8125rem; margin-bottom: 10px; }

.pos-receipt-meta-row { display: flex; justify-content: space-between; padding: 2px 0; }

.pos-receipt-meta-label { color: var(--theme-text-muted); }

.pos-receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.8125rem;
    color: var(--theme-text);
}

.pos-receipt-table th {
    border-bottom: 1px solid var(--theme-border);
    padding: 3px 5px;
    text-align: left;
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}

.pos-receipt-table td {
    padding: 4px 5px;
    border-bottom: 1px solid var(--theme-border-muted, var(--theme-border));
}

.pos-receipt-table td:last-child { text-align: right; font-weight: 600; }

.pos-receipt-totals {
    border-top: 1px dashed var(--theme-border);
    padding-top: 7px;
    margin-top: 3px;
}

.pos-receipt-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 2px 0;
    color: var(--theme-text);
}

.pos-receipt-total-row--grand {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-secondary-600, #ea580c);
    border-top: 1px solid var(--theme-border);
    margin-top: 3px;
    padding-top: 5px;
}

.pos-receipt-actions { display: flex; gap: 7px; }

/* --------------------------------------------------------------------------
   Session Open Page
   -------------------------------------------------------------------------- */

.pos-open-session-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.pos-open-session-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    text-align: center;
}

.pos-open-session-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--color-secondary-500, #f97316);
}

.pos-open-session-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--theme-text);
    margin-bottom: 6px;
}

.pos-open-session-sub {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pos-open-session-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.pos-open-session-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px;
    background: var(--theme-bg-muted);
    border-radius: 8px;
}

.pos-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
}

/* --------------------------------------------------------------------------
   Mobile Bottom Tabs
   -------------------------------------------------------------------------- */

.pos-mobile-tabs { display: none; }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
    .pos-header,
    .pos-right,
    .pos-mobile-tabs,
    .no-print { display: none !important; }
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (640px – 1023px)
   -------------------------------------------------------------------------- */

@media (min-width: 640px) and (max-width: 1023px) {
    .pos-right { width: 264px; padding: 8px; }

    .pos-header-username,
    .pos-header-txn-count { display: none; }

    .pos-header-icon-btn-label { display: none; }

    .pos-payment-methods { grid-template-columns: repeat(2, 1fr); }

    .pos-cart-item-price { display: none; }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (< 640px)
   -------------------------------------------------------------------------- */

@media (max-width: 639px) {
    .pos-header { height: 44px; padding: 0 10px; }

    .pos-header-username,
    .pos-header-meta,
    .pos-header-rule,
    .pos-header-subtitle,
    .pos-header-txn-count { display: none; }

    .pos-header-icon-btn-label { display: none; }

    /* Absolute panes — only one visible at a time */
    .pos-terminal {
        position: relative;
        flex: 1;
        min-height: 0;
    }

    .pos-left, .pos-right {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transition: opacity 0.18s, transform 0.18s;
    }

    .pos-right {
        opacity: 0;
        pointer-events: none;
        transform: translateX(10px);
        overflow-y: auto;
        padding: 10px;
    }

    .pos-terminal--pay-tab .pos-right {
        opacity: 1;
        pointer-events: all;
        transform: translateX(0);
    }

    .pos-terminal--pay-tab .pos-left {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-10px);
    }

    .pos-left { border-right: none; }

    .pos-cart-item-price { display: none; }

    .pos-payment-methods { grid-template-columns: repeat(2, 1fr); }

    /* Mobile Tab Bar */
    .pos-mobile-tabs {
        display: flex;
        height: 52px;
        background: var(--theme-topbar-bg);
        border-top: 1px solid var(--theme-topbar-border);
        flex-shrink: 0;
    }

    .pos-mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        color: var(--theme-text-muted);
        font-size: 0.625rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
        transition: color 0.15s;
        padding: 4px 8px;
        position: relative;
    }

    .pos-mobile-tab svg { width: 20px; height: 20px; flex-shrink: 0; }

    .pos-mobile-tab--active { color: var(--color-secondary-500, #f97316); }

    .pos-mobile-tab--active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 20%;
        right: 20%;
        height: 2px;
        background: var(--color-secondary-500, #f97316);
        border-radius: 0 0 3px 3px;
    }

    .pos-tab-badge {
        position: absolute;
        top: 5px;
        right: calc(50% - 18px);
        min-width: 16px;
        height: 16px;
        background: var(--color-secondary-500, #f97316);
        color: #fff;
        border-radius: 999px;
        font-size: 0.5625rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        line-height: 1;
    }
}

/* --------------------------------------------------------------------------
   M-Pesa sub-mode tabs (Till vs STK Push, shown when both are configured)
   -------------------------------------------------------------------------- */

.pos-mpesa-sub-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--theme-border);
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.pos-mpesa-sub-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--theme-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    border-radius: 0;
    line-height: 1.4;
}

.pos-mpesa-sub-tab:hover {
    color: var(--theme-text);
}

.pos-mpesa-sub-tab--active {
    color: var(--color-primary-600, #2563eb);
    border-bottom-color: var(--color-primary-500, #3b82f6);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Payment Confirmed Modal (self-contained, no dependency on modal_controller)
   -------------------------------------------------------------------------- */

.pos-payment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pos-payment-modal-overlay--visible {
    opacity: 1;
}

.pos-payment-modal-box {
    background: var(--theme-card-bg, #fff);
    border-radius: 14px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
}

.pos-payment-modal-overlay--visible .pos-payment-modal-box {
    transform: translateY(0) scale(1);
}

.pos-payment-modal-tick {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-success-100, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-success-600, #16a34a);
    flex-shrink: 0;
}

.pos-payment-modal-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 4px;
}

.pos-payment-modal-amount {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-success-700, #15803d);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.pos-payment-modal-details {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.pos-payment-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--theme-border);
}

.pos-payment-modal-row:last-child {
    border-bottom: none;
}

.pos-payment-modal-label {
    font-size: 0.8125rem;
    color: var(--theme-text-muted);
}

.pos-payment-modal-value {
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--theme-text);
}

.pos-payment-modal-complete-btn {
    width: 100%;
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    background: var(--color-success-600, #16a34a);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.pos-payment-modal-complete-btn:hover {
    background: var(--color-success-700, #15803d);
}
