@layer pages {
    .empty {
        grid-column: 1/-1;
        border: 1px solid var(--line);
        border-radius: 3px;
        padding: 72px 32px;
        text-align: center;
        & p {
            color: var(--soft);
            margin: 10px 0 24px;
        }
    }
    .qty {
        display: flex;
        align-items: center;
        border: 1px solid var(--ink);
        border-radius: 2px;
        height: 54px;
        & button {
            width: 44px;
            height: 100%;
            font-size: 1.125rem;
        }
        & button:hover {
            color: var(--orange);
        }
        & input {
            width: 40px;
            text-align: center;
            border: 0;
            font-weight: 600;
            background: transparent;
            outline: 0;
            -moz-appearance: textfield;
        }
        & input::-webkit-outer-spin-button,
        & input::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }
    }
    .il {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 64px;
        padding-top: 40px;
        padding-bottom: 140px;
        align-items: start;
    }
    .row {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 24px;
        padding: 24px 0;
        border-bottom: 1px solid var(--line);
        &:first-child {
            border-top: 1px solid var(--ink);
        }
        .rv {
            aspect-ratio: 1;
            border-radius: 2px;
            background: radial-gradient(120% 90% at 28% 18%, #f7f9f9, var(--concrete) 60%, #d5dcdc);
        }
        .rv img {
            width: 100%;
            height: 100%;
        }
        .top {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 16px;
        }
        .ctrls {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            align-items: flex-end;
        }
        & label.sm {
            font-size: 0.78125rem;
            color: var(--soft);
            display: block;
            margin-bottom: 6px;
        }
        .qty {
            height: 44px;
        }
        & select,
        & input.nt,
        .kzs-btn {
            height: 44px;
            border: 1px solid var(--line);
            border-radius: 2px;
            padding: 0 12px;
            background: #fff;
            font-size: 0.9375rem;
        }
        & select:focus,
        & input.nt:focus,
        .kzs-btn:focus,
        .kzs-btn[aria-expanded='true'] {
            border-color: var(--ink);
            outline: 0;
        }
        & input.nt {
            width: 100%;
        }
        .notew {
            flex: 1;
            /* Never wider than the row (avoids sideways scroll on 320px phones). */
            min-width: min(200px, 100%);
        }
    }
    .rm {
        font-size: 0.84375rem;
        color: var(--soft);
        text-decoration: underline;
        align-self: flex-start;
        &:hover {
            color: var(--ink);
        }
    }
    .sum {
        position: sticky;
        top: 115px;
        background: var(--graphite);
        color: #fff;
        border-radius: 4px;
        padding: 30px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.5);
        .tot {
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-top: 1px solid var(--line-d);
            border-bottom: 1px solid var(--line-d);
        }
        .tot div {
            padding: 16px 0;
        }
        .tot b {
            display: block;
            font-size: 2.625rem;
            font-weight: 600;
            letter-spacing: -0.04em;
            line-height: 1;
        }
        .tot span {
            font-size: 0.8125rem;
            color: var(--soft-d);
        }
        & pre {
            white-space: pre-wrap;
            font-family: inherit;
            font-size: 0.8125rem;
            color: var(--soft-d);
            max-height: 160px;
            overflow: auto;
            line-height: 1.5;
        }
    }
    @media (max-width: 1000px) {
        .il {
            grid-template-columns: 1fr;
        }
        .sum {
            position: static;
        }
    }
    @media (max-width: 560px) {
        .row {
            grid-template-columns: 88px minmax(0, 1fr);
            gap: 16px;
        }
    }
    .row select {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 36px;
        background: #fff
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23212121' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
            no-repeat right 12px center/11px 7px;
    }
    .il[hidden],
    .kz-empty-wrap[hidden] {
        display: none;
    }
    .kz-empty-wrap {
        padding-top: 56px;
        padding-bottom: 140px;
    }
    .il .tlink.more {
        display: inline-block;
        margin-top: 28px;
    }
    .kz-nojs {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}
