.cart {
    padding: 40px 0 100px;
}

.cart-brcr {
    margin-bottom: 12px;
}

.cart-header {
    margin-bottom: 40px;
}

.cart-header h1 {
    font-weight: 500;
    font-size: 48px;
    line-height: 105%;
    color: #262626;
}

.cart-colums {
    display: flex;
    gap: 44px;
}

.cart-body {
    width: 100%;
    max-width: 700px;
}

.cart-min {
    display: flex;
    background-color: #F5F7F7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    gap: 15px;
}

.cart-min-icon {
    width: 20px;
    flex: none;
}

.cart-min-content {
    width: 100%;
}

.cart-min-title {
    font-size: 16px;
    line-height: 140%;
    color: #262626;
}

@media screen and (min-width: 549px) {
    .cart-min-title br {
        display: none;
    }
}

.cart-min-text {
    font-size: 14px;
    line-height: 135%;
    margin-top: 4px;
    color: #515151;
}

.cart-backup {
    position: sticky;
    display: flex;
    flex-direction: column;
    top: 77px;
    padding: 12px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f5f5f5;
    gap: 8px;
    margin-bottom: 28px;
    z-index: 2;
}

.cart-backup:empty {
    display: none;
}

.cart-backup-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-backup-loader {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: none;
}

.cart-backup-loader span {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    inset: 0;
    font-size: 16px;
    font-weight: 500;
    color: #55595E;
}

.cart-backup-loader svg {
    width: 26px;
    height: 26px;
    transform: rotate(-90deg);
}

.cart-backup-loader svg circle {
    stroke-dasharray: 69px;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    stroke-width: 2px;
    stroke: #55595E;
    fill: none;
    animation: countdown 5s linear forwards;
}

@keyframes countdown {
    from {
        stroke-dashoffset: 69px;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.cart-backup-content {
    display: flex;
    align-items: center;
    width: calc(100% - 52px);
    gap: 16px;
}

.cart-backup-name {
    font-size: 16px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-backup-btn {
    margin-left: auto;
    flex: none;
}

.cart-backup-btn span {
    font-weight: 500;
    font-size: 14px;
    color: #262626;
    text-decoration: underline;
    cursor: pointer;
}

.cart-item {
    display: flex;
    gap: 20px;
}

.cart-item:not(:first-child) {
    padding-top: 28px;
    border-top: 1px solid #E6E6E6;
}

.cart-item:not(:last-child) {
    padding-bottom: 28px;
}

.cart-item-photo {
    width: 183px;
    flex: none;
}

.cart-item-photo a {
    position: relative;
    display: block;
    height: 0;
    padding-top: 100%;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.cart-item-photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
}

.cart-item-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cart-item-columns {
    display: flex;
    gap: 12px;
}

.cart-item-columns-dealer {
    gap: 36px;
}

.cart-item-body {
    width: 100%;
}

.cart-item-name {
    margin-bottom: 12px;
}

.cart-item-name a {
    font-weight: 500;
    font-size: 18px;
    line-height: 115%;
    color: #262626;
}

.cart-item-prop {
    font-size: 14px;
    line-height: 135%;
    color: #262626;
}

.cart-item-prop:not(:first-child) {
    margin-top: 8px;
}

.cart-item-prop span {
    color: #515151;
}

.cart-item-panel {
    display: flex;
    align-items: center;
    margin-top: auto;
    gap: 12px;
}

.cart-item-buttons {
    display: inline-flex;
    align-items: center;
    gap: 25px;
}

.cart-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-item-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.cart-item-btn-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 115%;
    color: #262626;
}

.cart-item-count {
    font-size: 16px;
    line-height: 140%;
    margin-left: auto;
    color: #515151;
    flex: none;
}

.cart-item-count-total {
    font-weight: 500;
    color: #262626;
}

.cart-catalog-btn {
    margin-top: 28px;
}

.cart-catalog-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #CFCFCF;
    border-radius: 12px;
    height: 56px;
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    color: #262626;
    transition: border 300ms;
    cursor: pointer;
}

.cart-catalog-btn a:hover {
    border-color: #262626;
}

.cart-catalog-btn svg {
    width: 13px;
    margin-right: 16px;
    height: auto;
    flex: none;
}

.cart-item-prices {
    flex: none;
    text-align: right;
}

.cart-item-price {
    font-weight: 500;
    font-size: 18px;
    line-height: 115%;
    color: #262626;
}

.cart-total {
    width: 384px;
    margin-left: auto;
    flex: none;
}

.cart-total-block {
    position: sticky;
    background-color: #F5F7F7;
    border-radius: 12px;
    padding: 32px;
    top: 94px;
}

.cart-total-sum {
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 28px;
    line-height: 120%;
    gap: 12px;
    color: #262626;
}

.cart-total-lines {
    white-space: nowrap;
    color: #262626;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    line-height: 140%;
}

.cart-total-line:not(:first-child) {
    margin-top: 8px;
}

.cart-total-line span:last-child {
    font-weight: 500;
}

.cart-total-button {
    margin-top: 20px;
}

.cart-total-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 52px;
    width: 100%;
    background-color: #262626;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    transition: background 300ms;
}

.cart-total-button a:not(.disabled):hover {
    background-color: #515151;
}

.cart-total-button a.disabled {
    background-color: #E6E6E6;
    color: #939393;
}

.cart-total-how {
    margin-top: 16px;
    text-align: center;
}

.cart-total-how a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: color 350ms;
    color: #515151;
}

.cart-total-how a:hover {
    color: #0F0F0F;
}

.cart-total-how svg {
    position: relative;
    top: 2px;
    width: 7px;
    height: auto;
}

.cart-modal {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    white-space: nowrap;
    background-color: rgb(0 0 0 / 50%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    z-index: 10;
}

.cart-modal:before {
    content: '';
    display: inline-block;
    overflow: hidden;
    width: 0;
    height: 100%;
    vertical-align: middle;
}

.cart-modal-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    white-space: normal;
    text-align: left;
    max-width: 100%;
    width: 100%;
    max-width: 624px;
    width: 100%;
}

.cart-modal-content {
    padding: 32px;
    border-radius: 20px;
    background-color: #fff;
}

.cart-modal-close {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    inset: 12px 12px auto auto;
    transition: opacity 300ms;
    cursor: pointer;
}

.cart-modal-close:hover {
    opacity: 0.7;
}

.cart-modal-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    margin-bottom: 24px;
    padding-right: 40px;
    color: #0F1011;
}

.cart-modal-product {
    display: flex;
    gap: 20px;
}

.cart-modal-photo {
    width: 200px;
    flex: none;
}

.cart-modal-photo picture {
    position: relative;
    height: 0;
    padding-top: 100%;
}

.cart-modal-photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background-color: #f5f5f5;
    border-radius: 12px;
    object-fit: cover;
}

.cart-modal-fractions-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    white-space: nowrap;
}

.cart-modal-fractions-title {
    font-size: 16px;
    line-height: 140%;
    color: #262626;
}

.cart-modal-fractions-noty {
    position: relative;
    margin-left: 8px;
}

.cart-modal-fractions-noty-icon svg {
    width: 16px;
    height: auto;
}

.cart-modal-fractions-noty-content {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    top: calc(100% + 12px);
    left: -26px;
    transition: opacity 300ms;
    z-index: 2;
}

.cart-modal-fractions-noty:hover .cart-modal-fractions-noty-content {
    opacity: 1;
    visibility: visible;
}

.cart-modal-fractions-noty-wrapper {
    display: block;
    padding: 16px;
    background-color: #F5F7F7;
    background-color: rgb(245 247 247 / 90%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    font-size: 14px;
    line-height: 135%;
    width: 288px;
    color: #262626;
    white-space: normal;
}

.cart-modal-fractions-noty-wrapper:after {
    content: '';
    position: absolute;
    left: 24px;
    bottom: calc(100% - 2px);
    border: 10px solid transparent;
    border-bottom: 10px solid #F5F7F7;
    z-index: -1;
}

.cart-modal-fractions-list-st
{
    margin-bottom:10px;
}
.cart-modal-fractions-list,.cart-modal-fractions-list-st {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-modal-fractions-list span,.cart-modal-fractions-list-st span {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    height: 44px;
    font-size: 16px;
    color: #262626;
    border: 1px solid #CFCFCF;
    border-radius: 12px;
    transition: border 300ms;
    cursor: pointer;
}

.cart-modal-fractions-list span.active,.cart-modal-fractions-list-st span.active{
    border-color: #262626;
}

.cart-modal-panel {
    display: flex;
    align-items: flex-end;
    margin-top: 24px;
}

.cart-modal-count {
    display: inline-block;
}

.cart-modal-count-title {
    font-size: 16px;
    line-height: 140%;
    color: #262626;
    margin-bottom: 12px;
}

.cart-modal-count-title {
    color: #515151;
}

.cart-modal-count-input {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 180px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #CFCFCF;
    border-radius: 12px;
    overflow: hidden;
    transition: border 300ms;
}

.cart-modal-count-input:hover,
.cart-modal-count-input.focus {
    border-color: #262626;
}

.cart-modal-count-input label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    padding: 0 36px;
    cursor: text;
}

.cart-modal-count-input label span {
    font-size: 16px;
    color: #262626;
    margin-left: 5px;
}

.cart-modal-count-input input {
    border: none;
    color: #262626;
    width: 0;
    height: 100%;
    text-align: center;
}

.cart-modal-count-input-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: none;
    color: #262626;
    transition: color 300ms;
    cursor: pointer;
    z-index: 1;
}

.cart-modal-count-input-button svg {
    width: 12px;
    height: auto;
}

.cart-modal-count-input-disabled {
    color: #CACDCD;
}

.cart-modal-count-input-delimeter {
    width: 0;
    height: 0;
    overflow: hidden;
}

.cart-modal-count-input-delimeter-size {
    font-size: 16px;
    font-family: '~';
}

.cart-modal-stock {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    white-space: nowrap;
    font-size: 16px;
    line-height: 140%;
    padding-bottom: 14px;
    color: #0F1011;
}

.cart-modal-stock span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ED2D2D;
    margin-right: 9px;
    border-radius: 50%;
}

.cart-modal-stock-in span {
    background-color: #73C661;
}

.cart-modal-prices {
    margin-top: 12px;
    font-size: 16px;
    line-height: 140%;
}

.cart-modal-price {
    color: #262626;
}

.cart-modal-buttons {
    display: flex;
    margin-top: 32px;
    gap: 16px;
}

.cart-modal-buttons span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #262626;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    height: 52px;
    padding: 0 24px;
    color: #fff;
    flex: 1;
    cursor: pointer;
    transition: background 300ms;
}

.cart-modal-buttons span:first-child:hover {
    background-color: #515151;
}

.cart-modal-buttons span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #CFCFCF;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    height: 52px;
    padding: 0 24px;
    color: #262626;
    flex: 1;
    cursor: pointer;
    transition: border 300ms;
}

.cart-modal-buttons span:last-child:hover {
    border-color: #262626;
}

.cart-item-price-text {
    font-weight: 400;
    font-size: 14px;
    padding-top: 2px;
    line-height: 140%;
    color: #939393;
}

@media screen and (max-width: 1279px) {
    .cart {
        padding: 32px 0 60px;
    }

    .cart-header {
        margin-bottom: 32px;
    }

    .cart-header h1 {
        font-size: 42px;
    }

    .cart-colums {
        flex-direction: column;
    }

    .cart-body {
        max-width: none;
    }

    .cart-min {
        gap: 12px;
    }

    .cart-min-title {
        font-size: 14px;
        line-height: 130%;
    }

    .cart-min-text {
        font-size: 12px;
    }

    .cart-item-name a {
        font-size: 16px;
    }

    .cart-item-prop {
        font-size: 12px;
    }

    .cart-item-price {
        font-size: 16px;
    }

    .cart-item-btn-text {
        font-size: 14px;
    }

    .cart-item-count {
        font-size: 14px;
        line-height: 130%;
    }

    .cart-catalog-btn a {
        height: 44px;
        font-size: 14px;
    }

    .cart-total {
        width: 100%;
    }

    .cart-total-block {
        padding: 40px;
    }

    .cart-total-sum {
        font-size: 22px;
        line-height: 105%;
    }

    .cart-total-line {
        font-size: 14px;
        line-height: 130%;
    }

    .cart-total-button a {
        height: 44px;
        font-size: 14px;
    }

    .cart-total-how a {
        font-size: 12px;
    }

    .cart-total-how svg {
        top: 1px;
    }

    .cart-backup {
        top: 58px
    }

    .cart-backup-item {
        gap: 14px;
    }

    .cart-backup-content {
        gap: 12px;
    }

    .cart-backup-name {
        font-size: 14px;
    }

    .cart-backup-btn span {
        font-size: 12px;
    }

    .cart-modal-wrapper {
        max-width: 593px;
    }

    .cart-modal-title {
        font-size: 18px;
    }

    .cart-modal-fractions-title {
        font-size: 14px;
        line-height: 130%;
    }

    .cart-modal-fractions-noty-content {
        left: -48px;
    }

    .cart-modal-fractions-noty-wrapper:after {
        left: 46px;
    }

    .cart-modal-fractions-list span {
        height: 40px;
        font-size: 14px;
    }

    .cart-modal-count-title {
        font-size: 14px;
        line-height: 130%;
    }

    .cart-modal-count-input {
        height: 40px;
    }

    .cart-modal-stock {
        margin-left: 18px;
        font-size: 14px;
        padding-bottom: 12px;
    }

    .cart-modal-prices {
        font-size: 14px;
        line-height: 130%;
    }

    .cart-modal-buttons span:first-child {
        font-size: 14px;
        height: 44px;
    }

    .cart-modal-buttons span:last-child {
        font-size: 14px;
        height: 44px;
    }
}

@media screen and (max-width: 767px) {
    .cart {
        padding: 24px 0 56px;
    }

    .cart-header {
        margin-bottom: 20px;
    }

    .cart-header h1 {
        font-size: 30px;
    }

    .cart-min {
        gap: 10px;
        padding: 12px;
        margin-bottom: 20px;
    }

    .cart-item {
        gap: 12px;
    }

    .cart-item:not(:first-child) {
        padding-top: 20px;
    }

    .cart-item:not(:last-child) {
        padding-bottom: 20px;
    }

    .cart-item-photo {
        width: 120px;
    }

    .cart-item-columns {
        flex-direction: column;
    }

    .cart-item-columns-dealer {
        gap: 12px;
    }

    .cart-item-prices {
        text-align: left;
    }

    .cart-item-name {
        margin-bottom: 8px;
    }

    .cart-item-prop:not(:first-child) {
        margin-top: 2px;
    }

    .cart-item-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-panel-dealer {
        margin-top: 12px;
    }

    .cart-item-buttons {
        order: 1;
        gap: 20px;
    }

    .cart-item-count {
        font-size: 12px;
        margin-left: 0;
    }

    .cart-item-btn-text {
        display: none;
    }

    .cart-total-block {
        padding: 16px;
    }
}

@media screen and (max-width: 650px) {
    .cart-modal-content {
        padding: 16px;
    }

    .cart-modal-title {
        margin-bottom: 16px;
    }

    .cart-modal-product {
        flex-direction: column;
    }

    .cart-modal-fractions-header {
        position: relative;
    }

    .cart-modal-fractions-noty {
        position: unset;
    }

    .cart-modal-fractions-noty-content {
        top: unset;
        bottom: calc(100% + 12px);
        left: 0;
    }

    .cart-modal-fractions-noty-wrapper:after {
        left: 68px;
        bottom: unset;
        top: calc(100% - 2px);
        border-bottom: 10px solid transparent;
        border-top: 10px solid #F5F7F7;
    }

    .cart-modal-panel {
        position: relative;
        margin-top: 18px;
    }

    .cart-modal-count {
        width: 100%;
    }

    .cart-modal-count-input {
        width: 100%;
    }

    .cart-modal-stock {
        position: absolute;
        right: 0;
        top: 0;
        margin: 0;
        padding: 0;
    }

    .cart-modal-buttons {
        flex-direction: column;
        margin-top: 20px;
        gap: 12px;
    }

    .cart-modal-buttons span:first-child,
    .cart-modal-buttons span:last-child {
        flex: none;
    }
}

@media screen and (max-width: 428px) {
    .cart-modal-fractions-noty {
        position: unset;
    }

    .cart-modal-fractions-noty-content {
        left: 0;
    }

    .cart-modal-fractions-noty-wrapper {
        width: 100%;
        max-width: 288px;
    }

    .cart-modal-fractions-noty-wrapper:after {
        left: 68px;
    }
}

.cart-modal-min {
    margin: 24px -32px;
    padding: 16px 32px;
    background: #FFF0F0;
    font-size: 16px;
    line-height: 140%;
    color: #EC1F1C;
}

@media screen and (max-width: 1279px) {
    .cart-modal-min {
        font-size: 14px;
        line-height: 130%;
    }
}

@media screen and (max-width: 650px) {
    .cart-modal-min {
        margin: 20px -16px;
        padding: 16px;
    }
}