.cart-empty-page {
    --fluid-gutter: max(1rem, calc((100vw - var(--container)) / 2));

    position: relative;
    min-height: calc(100svh - 65px);
    overflow: hidden;
    background-color: #fff;
    color: #000;
}

.cart-breadcrumbs {
    padding-top: 30px;
    padding-right: var(--site-chrome-gutter);
    padding-left: var(--site-chrome-gutter);
}

.cart-empty-page__content {
    position: absolute;
    top: 288px;
    left: 50%;
    display: flex;
    width: min(100%, 760px);
    padding: 0 16px;
    flex-direction: column;
    align-items: center;
    color: #000;
    text-align: center;
    transform: translateX(-50%);
}

.cart-empty-page__content h1 {
    max-width: none;
    margin: 0;
    color: #000;
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
}

.cart-empty-page__content p {
    margin: 2px 0 0;
    color: #000;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

.cart-empty-page__catalog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 374px;
    height: 61px;
    margin-top: 37px;
    border-radius: 999px;
    background: #4d6aff;
    color: #fff;
    font-size: 25px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
    text-decoration: none;
}

.cart-empty-page__catalog-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.cart-filled-page {
    min-height: calc(100svh - 65px);
    padding: 30px var(--site-chrome-gutter) 150px;
    overflow: hidden;
    background: #fff;
    color: #000;
}

.cart-filled-page > .cart-breadcrumbs {
    padding: 0;
}

.cart-filled-page__content {
    width: 100%;
    margin: 30px 0 0;
}

.cart-filled-page__title {
    width: min(933px, 100%);
    max-width: none;
    margin: 0;
    color: #000;
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    text-transform: uppercase;
}

.cart-filled-page__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    width: min(calc((100% - 20px) * .7), calc(100% - 335px));
    margin-top: 28px;
    color: #4d4d4e;
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
}

.cart-filled-page__toolbar p {
    margin: 0 0 0 3px;
}

.cart-filled-page__clear {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cart-filled-page__clear img {
    display: block;
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.cart-filled-page__clear:hover,
.cart-filled-page__clear:focus-visible {
    color: #000;
}

.cart-filled-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(315px, 3fr);
    gap: 20px;
    align-items: start;
    margin-top: 14px;
}

.cart-filled-page__items {
    display: grid;
    gap: 22px;
}

.cart-filled-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 36%) minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 220px;
    padding: 32px 65px 32px 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: -1px 1px 12px rgba(0, 0, 0, 0.14);
}

.cart-filled-item__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 156px;
    overflow: hidden;
}

.cart-filled-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.45);
}

.cart-filled-item__details {
    min-width: 0;
}

.cart-filled-item__category {
    color: #4d6aff;
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
}

.cart-filled-item__details h2 {
    max-width: 300px;
    margin: 3px 0 0;
    color: #000;
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
}

.cart-filled-item__quantity {
    display: grid;
    grid-template-columns: 30px 36px 30px;
    width: 96px;
    height: 30px;
    margin-top: 12px;
}

.cart-filled-item__quantity button,
.cart-filled-item__quantity span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 30px;
    border: 0.5px solid #d3d5d7;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

.cart-filled-item__quantity button {
    padding: 0 0 2px;
    cursor: pointer;
}

.cart-filled-item__quantity button:first-child {
    border-radius: 50px 0 0 50px;
}

.cart-filled-item__quantity button:last-child {
    border-radius: 0 50px 50px 0;
}

.cart-filled-item__quantity span {
    border-right: 0;
    border-left: 0;
}

.cart-filled-item__quantity button:disabled {
    color: #b5b5b5;
    cursor: default;
}

.cart-filled-item__prices {
    align-self: start;
    margin-top: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-filled-item__prices strong,
.cart-filled-item__prices del,
.cart-filled-summary dd,
.cart-filled-summary__total strong,
.cart-filled-summary__total del {
    white-space: nowrap;
}

.cart-filled-item__prices .woocommerce-Price-currencySymbol {
    display: inline-block;
    background: currentColor;
    font-size: 0;
}

.cart-filled-item__prices strong .woocommerce-Price-currencySymbol {
    width: 14px;
    height: 16px;
    vertical-align: 2px;
    -webkit-mask: url("../../../img/currency-ruble-semibold.svg") center / contain no-repeat;
    mask: url("../../../img/currency-ruble-semibold.svg") center / contain no-repeat;
}

.cart-filled-item__prices del .woocommerce-Price-currencySymbol {
    width: 9px;
    height: 11px;
    vertical-align: 1px;
    -webkit-mask: url("../../../img/currency-ruble-regular.svg") center / contain no-repeat;
    mask: url("../../../img/currency-ruble-regular.svg") center / contain no-repeat;
}

.cart-filled-summary .woocommerce-Price-currencySymbol {
    display: inline-block;
    width: 0.576em;
    height: 0.72em;
    overflow: hidden;
    background: currentColor;
    vertical-align: -0.03em;
    text-indent: 100%;
    white-space: nowrap;
    -webkit-mask: url("../../../img/currency-ruble-regular.svg") center / contain no-repeat;
    mask: url("../../../img/currency-ruble-regular.svg") center / contain no-repeat;
}

.cart-filled-summary__total strong .woocommerce-Price-currencySymbol {
    width: 0.624em;
    -webkit-mask-image: url("../../../img/currency-ruble-semibold.svg");
    mask-image: url("../../../img/currency-ruble-semibold.svg");
}

.cart-filled-item__prices strong {
    color: #000;
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

.cart-filled-item__prices del {
    margin-top: 1px;
    color: #a5a5a5;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration-thickness: 1px;
}

.cart-filled-item__remove {
    position: absolute;
    top: 25px;
    right: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cart-filled-item__remove img {
    display: block;
    width: 14px;
    height: 19px;
    object-fit: contain;
}

.cart-filled-item__selection {
    position: absolute;
    right: 29px;
    bottom: 30px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.cart-filled-item__selection input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.cart-filled-item__selection span {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border: 1px solid #b8bdc8;
    border-radius: 5px;
    background: #fff;
}

.cart-filled-item__selection input:checked + span {
    border-color: #4d6aff;
    background: #4d6aff;
}

.cart-filled-item__selection input:checked + span::after {
    position: absolute;
    top: 3px;
    left: 7px;
    width: 7px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    content: "";
    transform: rotate(45deg);
}

.cart-filled-item__selection input:focus-visible + span,
.cart-filled-item__quantity button:focus-visible,
.cart-filled-item__remove:focus-visible,
.cart-filled-page__clear:focus-visible,
.cart-filled-summary__checkout:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.cart-filled-item.is-unselected {
    box-shadow: -1px 1px 12px rgba(0, 0, 0, 0.08);
}

.cart-filled-item.is-unselected .cart-filled-item__media,
.cart-filled-item.is-unselected .cart-filled-item__details,
.cart-filled-item.is-unselected .cart-filled-item__prices {
    opacity: 0.48;
}

.cart-filled-summary {
    min-height: 271px;
    padding: 30px;
    border-radius: 25px;
    background: #f5f5f5;
}

.cart-filled-summary h2 {
    margin: 0;
    color: #000;
    font-size: 19px;
    font-weight: 500;
    line-height: 23px;
}

.cart-filled-summary__rows {
    display: grid;
    gap: 7px;
    margin: 14px -16px 0 -10px;
    padding: 0 16px 19px 10px;
    border-bottom: 1px solid #b5b5b5;
    color: #4d4d4e;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.cart-filled-summary__rows div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cart-filled-summary dt,
.cart-filled-summary dd {
    margin: 0;
    font: inherit;
}

.cart-filled-summary__total {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    margin-top: 20px;
    color: #000;
}

.cart-filled-summary__total > span {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.cart-filled-summary__total strong {
    margin-top: 2px;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
}

.cart-filled-summary__total del {
    justify-self: start;
    margin: 0 0 3px 11px;
    color: #a5a5a5;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    text-decoration-thickness: 1px;
}

.cart-filled-summary__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 345px;
    max-width: 100%;
    height: 41px;
    margin: 28px auto 0;
    padding: 0 20px 1px;
    border: 0;
    border-radius: 193px;
    background: #4d6aff;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
}

.cart-filled-summary__checkout:disabled {
    background: #c7cbd7;
    cursor: default;
}

.cart-filled-summary__message {
    margin: 12px 0 0;
    color: #b42318;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.cart-filled-page.is-updating .cart-filled-page__clear,
.cart-filled-page.is-updating .cart-filled-item__quantity button,
.cart-filled-page.is-updating .cart-filled-item__remove,
.cart-filled-page.is-updating .cart-filled-item__selection,
.cart-filled-page.is-updating .cart-filled-summary__checkout {
    pointer-events: none;
}

@media (max-width: 1100px) {
    .cart-filled-item {
        grid-template-columns: minmax(120px, 32%) minmax(0, 1fr) auto;
        gap: 16px;
        padding-left: 20px;
    }

}

@media (max-width: 960px) {
    .cart-filled-page__toolbar {
        width: 100%;
    }

    .cart-filled-page__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-filled-summary {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .cart-breadcrumbs {
        padding-top: 24px;
        padding-right: var(--fluid-gutter);
        padding-left: var(--fluid-gutter);
    }

    .cart-empty-page__content {
        top: clamp(190px, 30vh, 250px);
        width: 100%;
        padding-right: var(--fluid-gutter);
        padding-left: var(--fluid-gutter);
    }

    .cart-empty-page__content h1 {
        font-size: 28px;
        line-height: 34px;
    }

    .cart-empty-page__content p {
        max-width: 340px;
        margin-top: 8px;
        font-size: 17px;
        line-height: 23px;
    }

    .cart-empty-page__catalog-link {
        width: min(100%, 374px);
        height: 56px;
        margin-top: 30px;
        font-size: 20px;
        line-height: 22px;
    }

    .cart-filled-page {
        padding: 24px var(--fluid-gutter) 90px;
        overflow: visible;
    }

    .cart-filled-page > .cart-breadcrumbs {
        padding: 0;
    }

    .cart-filled-page__content {
        margin-top: 32px;
    }

    .cart-filled-page__title {
        font-size: 32px;
        line-height: 38px;
    }

    .cart-filled-page__toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 24px;
        font-size: 15px;
        line-height: 21px;
    }

    .cart-filled-page__toolbar p {
        margin-left: 0;
    }

    .cart-filled-page__clear {
        gap: 6px;
        font-size: 14px;
        line-height: 20px;
        text-align: left;
    }

    .cart-filled-page__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 13px;
    }

    .cart-filled-page__items {
        gap: 16px;
    }

    .cart-filled-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "media media"
            "details prices"
            "details selection";
        min-height: 0;
        height: auto;
        padding: 20px;
        border-radius: 20px;
    }

    .cart-filled-item__media {
        grid-area: media;
        width: 100%;
        height: 180px;
        padding: 14px 24px 12px;
    }

    .cart-filled-item__details {
        grid-area: details;
        align-self: start;
        min-width: 0;
        margin-top: 0;
        padding-right: 16px;
    }

    .cart-filled-item__category {
        font-size: 17px;
        line-height: 23px;
    }

    .cart-filled-item__details h2 {
        max-width: none;
        margin-top: 2px;
        font-size: 23px;
        line-height: 29px;
    }

    .cart-filled-item__quantity {
        grid-template-columns: 44px 48px 44px;
        width: 136px;
        height: 44px;
        margin-top: 18px;
    }

    .cart-filled-item__quantity button,
    .cart-filled-item__quantity span {
        height: 44px;
    }

    .cart-filled-item__prices {
        grid-area: prices;
        align-self: start;
        align-items: flex-end;
        margin-top: 0;
    }

    .cart-filled-item__prices strong {
        font-size: 21px;
        line-height: 27px;
    }

    .cart-filled-item__prices strong .woocommerce-Price-currencySymbol {
        width: 13px;
        height: 16px;
        vertical-align: 3px;
    }

    .cart-filled-item__prices del {
        font-size: 15px;
        line-height: 21px;
    }

    .cart-filled-item__prices del .woocommerce-Price-currencySymbol {
        width: 9px;
        height: 11px;
        vertical-align: 1px;
    }

    .cart-filled-item__remove {
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
    }

    .cart-filled-item__remove img {
        width: 17px;
        height: 23px;
    }

    .cart-filled-item__selection {
        position: static;
        grid-area: selection;
        align-self: end;
        justify-self: end;
        width: 34px;
        height: 34px;
        margin-top: 22px;
    }

    .cart-filled-item__selection span {
        width: 34px;
        height: 34px;
    }

    .cart-filled-item__selection input:checked + span::after {
        top: 7px;
        left: 11px;
        width: 8px;
        height: 13px;
    }

    .cart-filled-summary {
        min-height: 0;
        padding: 25px 24px 24px;
        border-radius: 20px;
    }

    .cart-filled-summary h2 {
        font-size: 23px;
        line-height: 29px;
    }

    .cart-filled-summary__rows {
        margin-top: 18px;
        font-size: 16px;
        line-height: 23px;
    }

    .cart-filled-summary dd .woocommerce-Price-currencySymbol {
        width: 10px;
        height: 12px;
        vertical-align: -1px;
    }

    .cart-filled-summary__total {
        margin-top: 21px;
    }

    .cart-filled-summary__checkout {
        width: 100%;
        height: 52px;
        margin-top: 28px;
        font-size: 18px;
        line-height: 23px;
    }
}

@media (max-width: 420px) {
    .cart-filled-page__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .cart-filled-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .cart-filled-item__media {
        height: 160px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .cart-filled-item__details h2 {
        font-size: 21px;
        line-height: 27px;
    }

    .cart-filled-item__prices strong {
        font-size: 18px;
        line-height: 24px;
    }

    .cart-filled-item__prices strong .woocommerce-Price-currencySymbol {
        width: 11px;
        height: 13px;
        vertical-align: 2px;
    }
}
