/*! oformlenie.css — стили страницы оформления заказа, изолированы под .page-oformlenie */

.page-oformlenie .checkout-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.page-oformlenie .checkout-back {
    white-space: nowrap;
}

/* Макет двух колонок */
.page-oformlenie .checkout-layout {
    display: flex;
    gap: 24px;
    /* align-items: center; */
}

.page-oformlenie .checkout-main {
    flex: 1 1 auto;
}

.page-oformlenie .checkout-summary {
    flex: 0 0 340px;
}

/* Форма */
.page-oformlenie .checkout-form {
    border: 1px solid #EEE;
    border-radius: 4px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-oformlenie .checkout-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-oformlenie .checkout-form__group label {
    font-weight: 600;
    font-size: 14px;
}

.page-oformlenie .checkout-form__group input[type="text"],
.page-oformlenie .checkout-form__group input[type="tel"],
.page-oformlenie .checkout-form__group textarea {
    border: 1px solid #DDD;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    background: #fff;
}

.page-oformlenie .checkout-form__group textarea {
    resize: vertical;
    min-height: 80px;
}

/* чекбокс согласия */
.page-oformlenie .checkout-form__agree {
    margin-top: 4px;
}

.page-oformlenie .checkout-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.page-oformlenie .checkout-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

/* Кнопка */
.page-oformlenie .checkout-submit {
    margin-top: 8px;
    min-width: 220px;
}

.page-oformlenie .checkout-submit--disabled {
    opacity: .6;
    pointer-events: none;
}

/* Статус */
.page-oformlenie .checkout-status {
    margin-top: 4px;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
}

.page-oformlenie .checkout-status--ok {
    background: #ffffff;
    color: #1b5e20;
}

.page-oformlenie .checkout-status--err {
    background: #ffeaea;
    color: #b71c1c;
}

/* Правая колонка — сводка */
.page-oformlenie .checkout-summary__box {
    position: sticky;
    top: 16px;
    border: 1px solid #EEE;
    border-radius: 4px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.page-oformlenie .checkout-summary__title {
    font-weight: 700;
    margin-bottom: 8px;
}

.page-oformlenie .checkout-summary__list {
    list-style: none;
    margin: 8px 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-oformlenie .checkout-item {
    border-bottom: 1px dashed #EEE;
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.page-oformlenie .checkout-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-oformlenie .checkout-item__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.page-oformlenie .checkout-item__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-oformlenie .checkout-item__unit {
    flex: 0 0 auto;
    font-size: 12px;
    opacity: .8;
}

.page-oformlenie .checkout-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 4px;
    font-size: 13px;
}

.page-oformlenie .checkout-item__sum {
    font-weight: 700;
}

/* Итого */
.page-oformlenie .checkout-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #EEE;
    font-size: 16px;
    font-weight: 700;
}

.page-oformlenie .checkout-summary__amount {
    white-space: nowrap;
}

/* Блок "корзина пуста" */
.page-oformlenie .checkout-empty {
    text-align: center;
    margin: 32px 0;
}

/* Адаптив */
@media (max-width: 960px) {
    .page-oformlenie .checkout-layout {
        flex-direction: column;
    }

    .page-oformlenie .checkout-summary {
        width: 100%;
        order: 2;
    }

    .page-oformlenie .checkout-main {
        order: 1;
    }
}

@media (max-width: 540px) {
    .page-oformlenie .checkout-submit {
        width: 100%;
    }
}


/* ============ КНОПКИ (общие) ============ */

.btn-yellow-5 {
    gap: 5px;
    display: grid;
    /* max-width: 40%; */
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: none;
    background: #fac207;
    padding: 8px;
    border-radius: 3px;
    color: #000;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.btn-yellow-5:hover {}

.btn-outline-5 a {
    font-size: 12px;
}

.btn-outline-5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #ffcc00;
    background: #fff;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.btn-outline-5:hover {
    background: #ffcc00;
    color: #000;
}

/* Переключатель доставки */
.checkout-delivery-switch {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.checkout-delivery-switch .radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.checkout-delivery-switch input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}