.basket-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}
.section-basket-page {
    padding: 40px 0;
}

/* Пустая корзина */
.basket-empty {
    text-align: center;
    padding: 60px 20px;
}

.basket-empty__link {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: #000322;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
}

/* Таблица товаров */
.basket-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    line-height: 1.4;
}

.basket-table th,
.basket-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.basket-table th {
    font-weight: 700;
}

.basket-item__image {
    width: 80px;
}

.basket-item__image img {
    width: 80px;
    min-width: 39px;
    height: auto;
    object-fit: cover;
    border-radius: 0px;
}

.basket-item__name a {
    color: #333;
    text-decoration: none;
}

.basket-item__name a:hover {
    text-decoration: underline;
}

/* Количество */
.basket-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.basket-quantity__btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    padding: 0;
}

.basket-quantity__btn:hover {
    background: #f5f5f5;
}

.basket-quantity__input {
    max-width: 50px;
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.basket-quantity__input::-webkit-outer-spin-button,
.basket-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none
}
/* Удаление */
.basket-remove-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #fec632;
    color: #000000;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    padding: 0;
}

.basket-remove-btn:hover {
    background: #fec632;
}

/* Итого */
.basket-total__label {
    text-align: right;
    font-weight: 600;
}

.basket-total__value {
    font-size: 20px;
    font-weight: 700 !important;
    color: #1e2451 !important;
}

/* Форма заказа */
.basket-order {
    max-width: 500px;
    min-width: 360px;
    width: 100%;
    padding: 30px;
    background: #f9fafd;
    border-radius: 8px;
}

.basket-order__title {
    margin: 0 0 20px;
}

.basket-form__row {
    margin-bottom: 15px;
}

.basket-form__label {
    display: block;
}

.basket-form__label span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.basket-form__label .required {
    color: #fec632;
}

.basket-form__input,
.basket-form__textarea {
    width: 100%;
    padding: 15px 25px;
    border: none;
    box-sizing: border-box;
    border-radius: 30px;
}

.basket-form__submit {
    width: 100%;
    background: #fec632;
    border: 1px solid transparent;
    color: #000;
    font-size: 17px;
    font-weight: 600;
    padding: 20px 20px;
    cursor: pointer;
    border-radius: 10px;
}

.basket-form__submit:hover {
    background: #fec632;
}

.basket-form__submit:disabled {
    background: #fec632;
    cursor: not-allowed;
}

.basket-form__message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.basket-form__message.error {
    display: block;
    background: #fdecea;
    color: #fec632;
}

.basket-form__message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.basket-checkout-btn {
    display: inline-block;
    padding: 14px 30px;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}

.basket-checkout-btn:hover {

}

/* Успешный заказ */
.basket-success {
    text-align: center;
    padding: 60px 20px;
}

.basket-success__link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #1e2451;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
}


.basket-mini {
    position: relative;
    display: inline-block;
}

.basket-mini__link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.basket-mini__icon {
    width: 24px;
    height: 24px;
}

.basket-mini__count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: #fec632;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
}

/* Кнопка "В корзину" */
.add-to-basket {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 5px;
    color: #000000;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    background: #fafafa;
    border-radius: 4px;

}

.add-to-basket:hover {
    color: #000323;
}

.add-to-basket.in-basket {
    color: #000323;
}

.add-to-basket.in-basket:hover {

}

.add-to-basket.loading {
    opacity: 0.7;
    pointer-events: none;
}


.basket-page .basket-items {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.fixed_panel {
    position: fixed;
    top: calc(40% - 15px);
    right: 0;
    z-index: 999;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    box-shadow: 0 6px 11px rgb(0 0 0 / 10%);
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}
.fixed_panel a {
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    position: relative;
    background-color: #fff;
}

.fixed_panel a:nth-child(1n+2) {
    border-top: 1px solid #e5e5e5;
}
.fixed_panel a:hover {
    background-color: #f2f2f2;
}
.fixed_panel img {
    display: block;
    width: auto;
    height: 24px;
}
.fixed_panel img.heard-wl {
    height: 27px;
}
.fixed_panel img.mail-icon-fx {
    height: 27px;
}

.fixed_panel .num {
    background-color: #fec632;
    width: 18px;
    height: 18px;
    border-radius: 100%;
    color: #000000;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 9px;
    left: auto;
    z-index: 2;
    font-weight: 400;
}

.cart-btn svg {
    height: 26px;
    width: auto;
}
.cart-btn path {
    fill: #000322;
}



@media screen and (max-width: 767px) {
    .fixed_panel {
        border-radius: 6px 0 0 6px;
    }
    .fixed_panel a {
        width: 45px;
        height: 45px;
    }
    .fixed_panel .num {
        width: 16px;
        max-width: 16px;
        height: 16px;
        line-height: 1;
        top: 6px;
        right: 4px;
        font-size: 10px;
    }
}