/* LIVBEN - Shared cart and checkout layout */

.lv-basket {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 20px auto 50px;
    padding-inline: 16px;
    color: #24372c;
    box-sizing: border-box;
}

.lv-basket * {
    box-sizing: border-box;
}

.lv-shell .lv-basket {
    max-width: 100%;
    margin: 0 0 50px;
    padding-inline: 0;
}

.lv-basket h1 {
    margin: 0 0 22px;
    font-size: clamp(24px, 3vw, 32px);
}

.lv-basket-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: start;
}

.lv-basket-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* Shared surfaces */

.lv-basket-item,
.lv-basket-summary,
.lv-checkout-panel,
.lv-basket-empty {
    border: 1px solid #e2eae4;
    border-radius: 13px;
    background: #fff;
}

.lv-basket-summary,
.lv-checkout-panel {
    min-width: 0;
    max-width: 100%;
    padding: 22px;
}

.lv-basket-summary {
    position: sticky;
    top: 90px;
}

.lv-basket-summary h2,
.lv-checkout-panel h2 {
    margin: 0 0 20px;
    font-size: 19px;
}

/* Order summary */

.lv-basket-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 16px 0;
    font-size: 13px;
}

.lv-basket-summary-row span {
    min-width: 0;
    color: #647568;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.lv-basket-summary-row strong {
    flex-shrink: 0;
    font-size: 13px;
    white-space: nowrap;
}

.lv-basket-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    padding: 18px 0;
    border-top: 1px solid #e5ece7;
    font-weight: 800;
}

.lv-basket-total span {
    min-width: 0;
    font-size: 14px;
}

.lv-basket-total strong {
    flex-shrink: 0;
    color: #176c4c;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Shared actions */

.lv-basket-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    background: #176c4c;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.lv-basket-primary:hover {
    background: #10563d;
    color: #fff;
}

.lv-basket-note {
    margin: 12px 0 0;
    color: #78877b;
    font-size: 12px;
    line-height: 1.6;
}

.lv-basket :is(
    button, a, input, select, textarea
):focus-visible {
    outline: 3px solid #92c9a6;
    outline-offset: 2px;
}

/* Responsive */

@media (max-width: 900px) {
    .lv-basket-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lv-basket-summary {
        position: static;
    }
}

@media (max-width: 560px) {
    .lv-basket {
        padding-inline: 12px;
    }

    .lv-basket-summary,
    .lv-checkout-panel {
        padding: 16px;
    }
}
