.pos-checkout-notice {
    grid-column: 1 / -1;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(220, 38, 38, .16);
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: .82rem;
    font-weight: 850;
}

.pos-payment-modal .pos-tip-card .panel-head,
.pos-payment-modal .pos-tip-panel .panel-head,
.pos-payment-modal [data-pos-tip] .panel-head,
.pos-payment-modal [data-pos-tip-box] .panel-head,
.pos-payment-modal .pos-tip-card .badge,
.pos-payment-modal .pos-tip-panel .badge,
.pos-payment-modal [data-pos-tip] .badge,
.pos-payment-modal [data-pos-tip-box] .badge,
.pos-payment-modal .pos-tip-card .muted,
.pos-payment-modal .pos-tip-panel .muted,
.pos-payment-modal [data-pos-tip] .muted,
.pos-payment-modal [data-pos-tip-box] .muted {
    display: none !important;
}

.pos-payment-modal .pos-tip-summary,
.pos-payment-modal .pos-tip-breakdown,
.pos-payment-modal [data-pos-tip-summary],
.pos-payment-modal [data-pos-tip-breakdown],
.pos-payment-modal [data-split-account],
.pos-payment-modal .pos-split-account {
    display: none !important;
}

.pos-mobile-paybar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .78fr);
    gap: 10px;
    align-items: stretch;
    margin-top: 4px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: rgba(248, 250, 252, .96);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .1);
}

.pos-mobile-paybar__total {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #115e59);
    color: #ffffff;
}

.pos-mobile-paybar__total span {
    color: rgba(255, 255, 255, .76);
    font-size: .76rem;
    font-weight: 850;
}

.pos-mobile-paybar__total strong {
    color: #ffffff;
    font-size: 1.34rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.pos-mobile-paybar .pos-submit {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    font-size: .98rem !important;
    font-weight: 950 !important;
    box-shadow: 0 16px 30px rgba(20, 184, 166, .22) !important;
}

.pos-mobile-paybar .pos-submit:disabled {
    opacity: .62;
    box-shadow: none !important;
}

.pos-payment-modal:has(.pos-mobile-paybar) .pos-cash-summary > div:first-child {
    display: none !important;
}

.pos-mixed-payment-panel {
    border-color: rgba(37, 99, 235, .16) !important;
    background: linear-gradient(135deg, rgba(239, 246, 255, .92), rgba(255, 255, 255, .98)) !important;
}

.pos-mixed-payment-head {
    display: grid;
    gap: 3px;
    padding-bottom: 2px;
}

.pos-mixed-payment-head strong {
    color: #0f172a;
    font-size: .98rem;
}

.pos-mixed-payment-head small {
    color: #64748b;
    font-weight: 750;
}

.pos-mixed-payment-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .84rem;
    font-weight: 900;
}

.pos-mixed-payment-balance.is-complete {
    border-color: rgba(5, 150, 105, .18);
    background: #ecfdf5;
    color: #047857;
}

.pos-split-account {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: #f8fafc;
}

.pos-split-account > .button {
    width: 100%;
    min-height: 38px;
}

.pos-split-account__body {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.pos-split-account__body strong,
.pos-split-account__body span {
    color: #0f172a;
    font-size: .84rem;
    font-weight: 900;
}

.pos-split-account__body .button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .78rem;
}

@media (max-width: 719px) {
    .pos-payment-panel {
        align-items: stretch !important;
        padding: 0 !important;
    }

    .pos-payment-modal {
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 12px 12px calc(18px + env(safe-area-inset-bottom)) !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .pos-payment-modal > .panel-head {
        position: sticky;
        top: 0;
        z-index: 5;
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px;
        margin: -12px -12px 8px !important;
        padding: 10px 12px !important;
        border-bottom: 1px solid rgba(15, 23, 42, .08);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px);
    }

    .pos-payment-modal > .panel-head h3 {
        margin: 0 !important;
        font-size: 1rem !important;
        line-height: 1.05 !important;
    }

    .pos-payment-modal > .panel-head .muted {
        display: none !important;
    }

    .pos-payment-modal > .panel-head .button {
        min-height: 38px !important;
        padding: 8px 14px !important;
        border-radius: 999px !important;
        font-size: .82rem !important;
    }

    .pos-checkout-grid {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .pos-checkout-grid label,
    .pos-payment-method-panel label {
        gap: 5px !important;
    }

    .pos-checkout-grid label > span,
    .pos-payment-method-panel label > span {
        font-size: .78rem !important;
        font-weight: 850 !important;
    }

    .pos-delivery-panel {
        gap: 8px !important;
        margin: 4px 0 8px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .pos-delivery-options {
        gap: 7px !important;
    }

    .pos-delivery-options label {
        min-height: 38px !important;
        padding: 7px 8px !important;
        border-radius: 12px !important;
        font-size: .78rem !important;
    }

    .pos-checkout-grid select,
    .pos-delivery-fields input,
    .pos-payment-method-panel input,
    .pos-payment-method-panel select {
        min-height: 43px !important;
        border-radius: 12px !important;
        font-size: .9rem !important;
    }

    .pos-payment-method-panel[hidden] {
        display: none !important;
    }

    .pos-payment-method-panel:not([hidden]) {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        width: 100%;
        margin: 8px 0 10px !important;
        padding: 10px !important;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 14px;
        background: #ffffff;
    }

    .pos-payment-method-panel .span-2,
    .pos-mixed-payment-head,
    .pos-mixed-payment-balance {
        grid-column: 1 / -1 !important;
    }

    .pos-cash-calculator[hidden] {
        display: none !important;
    }

    .pos-cash-calculator {
        gap: 8px !important;
    }

    .pos-cash-summary {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .pos-cash-summary div {
        min-height: 60px !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
    }

    .pos-cash-summary span {
        font-size: .72rem !important;
    }

    .pos-cash-summary strong {
        margin-top: 1px !important;
        font-size: 1.08rem !important;
    }

    .pos-cash-summary__change strong {
        font-size: 1.28rem !important;
    }

    .pos-cash-quick,
    .pos-cash-keypad {
        gap: 7px !important;
    }

    .pos-cash-quick button,
    .pos-cash-keypad button {
        min-height: 42px !important;
        border-radius: 10px !important;
        font-size: .92rem !important;
    }

    .pos-mobile-paybar {
        position: sticky;
        bottom: 0;
        z-index: 8;
        grid-template-columns: minmax(0, .92fr) minmax(142px, 1fr);
        gap: 8px;
        margin: 12px -2px 0;
        padding: 8px 0 0;
        border: 0;
        border-top: 1px solid rgba(15, 23, 42, .08);
        border-radius: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .72), #ffffff 26%);
        box-shadow: none;
    }

    .pos-mobile-paybar__total,
    .pos-mobile-paybar .pos-submit {
        min-height: 56px !important;
    }

    .pos-mobile-paybar__total {
        padding: 9px 10px;
        border-radius: 13px;
    }

    .pos-mobile-paybar__total span {
        font-size: .68rem;
    }

    .pos-mobile-paybar__total strong {
        font-size: clamp(1.08rem, 5.4vw, 1.42rem);
    }

    .pos-mobile-paybar .pos-submit {
        padding: 9px 10px !important;
        border-radius: 13px !important;
        font-size: clamp(.84rem, 3.8vw, .96rem) !important;
        line-height: 1.08 !important;
    }

    .pos-split-account__body {
        grid-template-columns: 1fr;
    }

    .pos-split-account__body .button {
        width: 100%;
    }
}
