.order_form_btn {
    font-size: 15px !important;
    width: 100%;
}

.basket-page-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 20px;
}

.basket-page-top__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.basket-page-top__count {
    font-size: 14px;
    opacity: .6;
    white-space: nowrap;
    position: relative;
    top: 3px;
    left: 8px;
}

.item-name a {
    color: inherit;
    text-decoration: none;
}

.item-name a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .basket-page-top__title {
        font-size: 22px;
    }

    .basket-page-top__count {
        font-size: 12px;
    }
}

.required-field {
    position: relative;
}

.required-field::after {
    content: "*";
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    color: rgb(99, 99, 99);
    font-size: 14px;
    pointer-events: none;

}

.rad {
    font-size: 12px;
    margin-bottom: 12px;
    color: #747474;
}

/* Основной контейнер */
.custom-basket-wrapper {
    font-family: "Open Sans", Arial, sans-serif;
    margin: 0 auto;
    padding-bottom: 50px;
}

.basket-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

/* Левая колонка */
.basket-left {
    flex: 2;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.basket-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2f2f2;
}

.clear-basket-btn {
    cursor: pointer;
    color: #999;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.clear-basket-btn:hover {
    color: #ff4d4d;
}

/* Элемент товара */
.basket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.basket-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-info {
    flex: 1;
    padding-right: 20px;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.item-meta {
    font-size: 12px;
    color: #888;
}



/* Блок количества как на скриншоте */
.item-qty-block {
    margin: 0 20px;
    display: flex;
    align-items: center;
}

/* Контейнер с рамкой */
.quantity_inner {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    width: 110px;
    /* Ширина блока */
    height: 40px;
    /* Высота блока */
    border: 1px solid #aebbf2;
    /* Цвет рамки как на скрине */
    border-radius: 4px;
    /* Скругление углов */
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    /* Чтобы кнопки не вылезали за скругление */
}

/* Поле ввода цифр */
.quantity_inner input.quantity {
    width: 40px;
    height: 100%;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 18px;
    /* Размер шрифта цифры */
    font-weight: 800;
    /* Жирность как на скрине */
    color: #333;
    /* Цвет цифры */
    padding: 0;
    margin: 0;
    outline: none;
    -moz-appearance: textfield;
    /* Убрать стрелочки в Firefox */
}

/* Убрать стрелочки в Chrome/Safari */
.quantity_inner input.quantity::-webkit-outer-spin-button,
.quantity_inner input.quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Кнопки +/- */
.quantity_inner .bt_minus,
.quantity_inner .bt_plus {
    width: 35px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background 0.2s ease;
}

/* SVG иконки внутри кнопок */
.quantity_inner svg {
    stroke: #526ed3;
    /* Цвет плюса и минуса (синий) */
    stroke-width: 2.5;
    /* Толщина линий */
    stroke-linecap: round;
}

/* Эффект при наведении */
.quantity_inner .bt_minus:hover,
.quantity_inner .bt_plus:hover {
    background-color: #f0f4ff;
    /* Легкая подсветка фона при наведении */
}

.quantity_inner .bt_minus:active,
.quantity_inner .bt_plus:active {
    background-color: #e0e7ff;
}

/* Цена */
.item-price {
    min-width: 120px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

/* Итого в левой колонке */
.basket-summary-left {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.total-label {
    font-size: 14px;
    text-transform: uppercase;
    color: #555;
    margin-right: 20px;
}

.total-price-big {
    font-size: 26px;
    font-weight: 800;
    color: #333;
}

/* Правая колонка - Форма */
.basket-right {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 20px;
}

.order-title {
    color: #365edc;
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-control:focus {
    border-color: #7ab800;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    background: #7ab800;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #6aa000;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-disclaimer {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    /* background: #f9f9f9; */
    padding: 8px;
    border-radius: 4px;
}

.order_form_btn[type='submit'] {
    margin: unset !important;
}

.form-policy {
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}

.form-policy label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 8px;
}

.form-policy input {
    margin-top: 2px;
}

.form-policy a {
    color: #365edc;
    text-decoration: underline;
}

/* Пустая корзина */
.empty-basket-message {
    text-align: center;
    padding: 10px 20px;
    background: #fff;
    border-radius: 4px;
}

.empty-basket-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.back-to-catalog-btn {
    display: inline-block;
    margin-top: 20px;
    background: #333;
    color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 10px 18px;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
}

.back-to-catalog-btn:hover {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border: 1px solid #000;
}

/* Адаптив */
@media (max-width: 991px) {
    .basket-container {
        flex-direction: column;
    }

    .basket-left,
    .basket-right {
        width: 100%;
        flex: none;
        box-sizing: border-box;
    }

    .basket-right {
        position: static;
    }
}

@media (max-width: 576px) {
    .basket-item {
        flex-wrap: wrap;
    }

    .item-image {
        margin-bottom: 15px;
    }

    .item-info {
        width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .item-qty-block {
        margin: 0;
        margin-right: auto;
    }

    .item-price {
        text-align: right;
    }

}




/* /basket/order/style.css */

.order-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px;
}

.order-card {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
}

.order-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-check {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}

.order-sub {
    margin-top: 4px;
    color: #6b7280;
}

.order-summary {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.order-muted {
    color: #6b7280;
}

.order-price {
    font-weight: 800;
    white-space: nowrap;
}

.order-items {
    margin-top: 18px;
}

.order-items-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.order-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-th {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    background: #f9fafb;
    text-transform: uppercase;
}

.order-td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.order-td-center {
    text-align: center;
    color: #374151;
}

.order-td-right {
    text-align: right;
    font-weight: 800;
    white-space: nowrap;
}

.order-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
}

.order-btn-dark {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.order-footer-text {
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}

.order-error {
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.order-error h2 {
    margin: 0 0 10px;
}

.order-error p {
    margin: 0;
    color: #6b7280;
}

.order-error-actions {
    margin-top: 14px;
}

.order-btn-outline {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    background: #fff;
}


@media (max-width: 576px) {
    .order-wrapper {
        max-width: 980px;
        margin: 0 auto;
        padding: unset;
    }
    .order-check {
    width: 48px;
    height: 38px;
}
}