/* ===== ИСТОРИЯ ЗАКАЗОВ ===== */

.oh-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 15px 20px;
    max-width: 860px;
    margin: 0 auto;
}

.oh-page-title {
    font-size: 28px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    align-self: flex-start;
    color: #1a1a1a;
}

/* ── Карточка заказа ── */

.oh-card {
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.07);
    padding: 18px 20px 14px;
    box-sizing: border-box;
    margin-bottom: 14px;
}

/* ── Шапка карточки: дата + статус ── */

.oh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.oh-date {
    font-size: 14px;
    color: #999;
}

.oh-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.oh-status--waiting {
    background-color: #fff4e5;
    color: #d97706;
}

.oh-status--delivered {
    background-color: #e8f9ee;
    color: #16a34a;
}

/* ── Мета-данные заказа ── */

.oh-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.oh-meta-row {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.oh-meta-label {
    color: #bbb;
    flex-shrink: 0;
    min-width: 90px;
}

.oh-meta-value {
    color: #1a1a1a;
}

/* ── Разделитель ── */

.oh-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 10px 0;
}

/* ── Строка товара ── */

.oh-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.oh-item-name {
    font-size: 15px;
    color: #1a1a1a;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.oh-item-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.oh-item-qty {
    font-size: 13px;
    color: #999;
    min-width: 36px;
    text-align: right;
}

.oh-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #A1312B;
    min-width: 72px;
    text-align: right;
}

/* ── Итоги ── */

.oh-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.oh-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #555;
}

.oh-total-value {
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Кнопка отмены ── */

.oh-delete-form {
    margin-top: 8px;
}

.oh-delete-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background-color: #A1312B;
    color: #fff;
    font-size: 17px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
    appearance: none;
    -webkit-appearance: none;
}

.oh-delete-btn:hover {
    background-color: #c0392b;
}

.oh-delete-btn:active {
    transform: scale(0.97);
}

/* ── Пустая история / не авторизован ── */

.oh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 22px;
    color: #888;
    min-height: 100vh;
}

.oh-empty img {
    width: 180px;
    height: 180px;
    opacity: 0.45;
    margin-top: 20px;
}

.oh-register-link {
    color: #A1312B;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.oh-register-link:hover {
    color: #c0392b;
}

/* ── Мобильная версия ── */

@media (max-width: 880px) {
    .oh-list {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .oh-page-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .oh-list {
        padding-left: 8px;
        padding-right: 8px;
    }

    .oh-card {
        padding: 14px 14px 12px;
        border-radius: 16px;
    }

    .oh-meta-label {
        min-width: 76px;
    }

    .oh-item-name {
        font-size: 14px;
    }

    .oh-item-price {
        min-width: 60px;
    }
}
