
/* =========================================================
   KAANIX POS — Split Payment
   ========================================================= */

.split-payment-toggle {
    margin-top: 10px;
}

.split-payment-toggle button {
    width: 100%;
}

.split-payment-panel {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--border, #d9dce3);
    border-radius: 10px;
    background: var(--panel, #fff);
}

.split-payment-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.split-payment-head strong {
    font-size: 15px;
}

.split-payment-head small {
    opacity: .7;
}

.split-payment-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(100px, .8fr) 38px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.split-payment-row select,
.split-payment-row input {
    width: 100%;
    min-width: 0;
}

.split-payment-row .split-remove {
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 20px;
}

.split-payment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}

.split-payment-summary > div {
    padding: 10px;
    border-radius: 8px;
    background: rgba(127,127,127,.08);
}

.split-payment-summary span {
    display: block;
    font-size: 12px;
    opacity: .7;
    margin-bottom: 3px;
}

.split-payment-summary b {
    font-size: 15px;
}

.split-ok {
    font-weight: 700;
}

#split-payment-add {
    width: 100%;
}

@media (max-width: 520px) {
    .split-payment-row {
        grid-template-columns: 1fr 1fr 36px;
    }
}

/* =========================================================
   KAANIX POS — Scrollable Cart / Split Payment Fix
   ========================================================= */

.bill-panel {
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    padding-bottom: 24px !important;
}

/* Keep split-payment content readable */
.split-payment-head {
    margin-top: 8px;
    margin-bottom: 10px;
}

.split-payment-head strong,
.split-payment-head small {
    display: block;
}

.split-payment-head small {
    margin-top: 3px;
    line-height: 1.35;
}

.split-payment-row {
    margin-bottom: 10px;
}

.split-payment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
}

.split-payment-summary > div {
    min-width: 0;
}

/* Checkout must remain reachable at bottom of scrolling cart */
.bill-totals {
    margin-top: 14px;
}

.complete-sale {
    margin-bottom: 12px !important;
}
