.BasketList {
    margin-bottom: 12px;
}

.ProductBasket__item {
    position: relative;
    width: 100%;
    min-height: 160px;
    box-sizing: border-box;
    padding: 10px 0;
    border-bottom: 2px solid #e9e9e9;
}

.ProductBasket__item:first-child {
    border-top: 2px solid #e9e9e9;
}

.ProductBasket__item::after {
    display: block;
    content: "";
    clear: both;
}

.ProductBasket__item_img {
    width: 140px;
    height: 140px;
    float: left;
    margin-right: 25px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

.ProductBasket__item_props {
    width: 340px;
    float: left;
}

.ProductBasket__item_title {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #6a6a6a;
    line-height: 20px;
}

.ProductBasket__item_props_field {
    width: 100%;
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
    color: #232323;
    line-height: 15px;
}

.ProductBasket__item_props_field .name {
    width: 110px;
    flex: none;
    margin-right: 5px;
}

.ProductBasket__item_props_field .value {
    width: 100%;
    font-weight: bold;
}

.ProductBasket__item_props_field .value .link {
    cursor: pointer;
}

.ProductBasket__item_props_field .value .link:hover {
    text-decoration: underline;
    color: #000;
}

.ProductBasket__item_props_comment {
    width: 100%;
    margin-top: 5px;
}

.ProductBasket__item_sizes {
    position: relative;
    width: 620px;
    min-height: 140px;
    float: right;
    margin-right: 45px;
}

.ProductBasket__item_size {
    position: absolute;
    display: flex;
    width: 280px;
    height: 25px;
    box-sizing: border-box;
    padding-right: 25px;
    font-size: 14px;
    color: #000;
}

.ProductBasket__item_size.null {
    background: #ffd4d4;
}

.ProductBasket__item_size.nosize {
    right: 0;
    top: 50%;
    margin-top: -15px;
}

.ProductBasket__item_size .name {
    width: 65px;
    padding-top: 1px;
    text-align: center;
}

.ProductBasket__item_size .count {
    width: 105px;
    text-align: center;
    flex: none;
    margin: 0 5px;
}

.ProductBasket__item_size .count .btn2 {
    float: left;
    margin-right: 1px;
    background-color: #232323;
    color: #7f7f7f;
    height: 25px;
    padding: 2px 9px !important;
    display: inline-block;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
}

.ProductBasket__item_size .count .btn2:hover {
    color: #fff;
}

.ProductBasket__item_size .count .qty {
    float: left;
    margin-right: 1px;
    width: 40px;
    text-align: center;
    height: 25px;
    padding: 0 4px;
    background-color: #232323;
    border-color: #232323;
    color: #ffffff;
}

.ProductBasket__item_size .sum {
    width: 75px;
    padding-top: 1px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.ProductBasket__item_size a.delete {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    text-align: center;
    top: 5px;
    right: 0;
    font-size: 18px;
    font-weight: 900;
    color: #a5abb7;
    text-decoration: none;
    line-height: 1em;
}

.ProductBasket__item_size a.delete:hover {
    color: #232323;
}

.ProductBasket__item_size_total {
    position: absolute;
    display: flex;
    width: 280px;
    height: 30px;
    box-sizing: border-box;
    padding: 0 25px 0 65px;
    font-size: 14px;
    color: #000;
}

.ProductBasket__item_size_total .count {
    width: 105px;
    text-align: center;
    flex: none;
    margin: 0 5px;
    padding-top: 2px;
    font-size: 15px;
    font-weight: bold;
}

.ProductBasket__item_size_total .sum {
    width: 75px;
    padding-top: 1px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

#Order_FullTotal {
    font-weight: bold;
    color: #232323;
    margin-bottom: 15px;
}

#WinDelConfirm {
    position: absolute;
    display: none;
}

.BackAclualCart {
    display: none;
    width: 100%;
    margin: 0px;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    position: fixed;
    z-index: 998;
    background: rgba(0, 0, 0, 0.5);
}

.WinAclualCart {
    position: fixed;
    width: 500px;
    min-height: 180px;
    background: #ffffff;
    padding: 12px;
    text-align: center;
    border: 1px solid #cccccc;
    color: #333;
    display: none;
    z-index: 999;
}

.WinAclualCart__box {
    min-height: 80px;
    padding: 4px;
    font-size: 15px;
}

.WinAclualCart__box .exit {
    position: absolute;
    z-index: 9999;
    cursor: pointer;
}

.WinAclualCart__box div {
    margin-bottom: 10px;
}

.WinAclualCart__buttons {
    width: 450px;
    margin: 0px auto;
}

.WinAclualCart__buttons .btn-theme-dark {
    font-size: 13px;
}

#TotalSum {
    text-align: right;
    font-size: 16px;
    color: #000000;
    /*font-weight: 900;*/
}

#TotalSum span {
    margin-right: 30px;
}

#TotalSumBox {
    margin-left: 10px;
    font-size: 18px;
    color: #737475;
}

/**/

.Order__FullTotal {
    position: relative;
    width: 100%;
    margin-top: 5px;
    font-size: 16px;
}

.Order__FullTotal b {
    color: #232323;
}

.Order__FullTotal span {
    margin-left: 10px;
}

.Order__FullTotal.total {
    font-size: 16px;
    margin-top: 10px;
    padding-top: 15px;
}

.Order__FullTotal button {
    /*position: absolute;*/
    display: block;
    float: right;
    background-color: #a5abb7 !important;
    border-color: #a5abb7 !important;
    color: #ffffff;
}

.Order__FullTotal button:hover {
    background-color: #232323 !important;
    border-color: #232323 !important;
}

/* Adaptive */
@media screen and (max-width: 1199px) {

    .ProductBasket__item_props {
        width: 280px;
    }

    .ProductBasket__item_sizes {
        position: relative;
        width: 320px;
    }

    .ProductBasket__item_size {
        position: relative;
        margin-bottom: 1px;
    }

    .ProductBasket__item_size.nosize {
        right: unset;
        top: unset;
        margin-top: 0;
    }

    .ProductBasket__item_size_total {
        position: relative;
    }
}

@media screen and (max-width: 991px) {
    .ProductBasket__item_sizes {
        width: 290px;
        margin-right: 0;
    }
}

@media screen and (max-width: 780px) {
    .BasketList {
        width: 98%;
        margin: 0 auto 12px auto;
    }

    .BasketTotal {
        width: 98%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 750px) {
    .ProductBasket__item {
        width: 480px;
        padding: 10px 0 10px 180px;
        margin: 0 auto;
    }

    .ProductBasket__item_img {
        position: absolute;
        float: none;
        margin-right: 0;
        top: 0;
        left: 0;
    }

    .ProductBasket__item_props {
        width: 290px;
        float: none;
        margin-bottom: 15px;
    }

    .ProductBasket__item_sizes {
        float: none;
        min-height: 40px;
    }
}

@media screen and (max-width: 680px) {

    .Order__FullTotal {
        font-size: 16px;
        line-height: 18px;
    }

    .Order__FullTotal.total {
        font-size: 16px;
    }

    .Order__FullTotal button {
        float: none;
        margin: 5px auto;
        background-color: #a5abb7 !important;
        border-color: #a5abb7 !important;
        color: #ffffff;
    }
}

@media screen and (max-width: 500px) {
    .ProductBasket__item {
        width: 290px;
        padding: 10px 0;
        margin: 0 auto;
    }

    .ProductBasket__item_img {
        width: 280px;
        height: 280px;
        position: relative;
        float: none;
        margin: 0 auto;
        top: unset;
        left: unset;
    }
}

@media screen and (max-width: 460px) {

    #TotalSum {
        font-size: 15px;
    }

    #TotalSum span {
        display: block;
        margin-right: 0px;
        font-size: 18px;
        color: #737475;
    }

    #TotalSumBox {
        margin-left: 0px;
    }

}













/* Обнуляем абсолютное позиционирование для контейнера размеров */
.ProductBasket__item_sizes {
    position: relative !important;
    min-height: auto !important; /* Убираем жесткую высоту */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Прижимает размеры к правому краю */
    gap: 6px; /* Расстояние между строками размеров */
}

/* Переводим строки размеров в нормальный поток */
.ProductBasket__item_size {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-bottom: 0 !important;
}

/* Позиционируем блок "Итого по позиции" */
.ProductBasket__item_size_total {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 10px !important; /* Отступ сверху перед разделом Итого */
    border-top: 1px dashed #e9e9e9; /* Визуальный разделитель */
    padding-top: 8px !important;
}

/* Исправление для мобильных разрешений, чтобы блоки не ломались */
@media screen and (max-width: 750px) {
    .ProductBasket__item_sizes {
        align-items: center; /* Центрируем на мобильных */
    }
}
