.orders-page {
    padding:
        max(
            20px,
            var(--tg-content-safe-area-inset-top, 0px)
        )
        16px
        calc(
            80px +
            var(
                --tg-content-safe-area-inset-bottom,
                env(safe-area-inset-bottom, 0px)
            )
        );
}

.orders-header {
    margin-bottom: 24px;
}

.orders-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.orders-section {
    margin-bottom: 28px;
}

.orders-section h2 {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 600;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.order-card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.order-status {
    font-size: 13px;
    color: #555;
    text-align: right;
}

.order-date {
    margin-bottom: 12px;
    font-size: 13px;
    color: #888;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #eee;
    cursor: pointer;
}

.order-item:first-child {
    border-top: none;
}

.order-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

.order-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.order-item-name {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
}

.order-item-details {
    font-size: 13px;
    line-height: 1.3;
    color: #777;
}

.order-item-price {
    font-size: 15px;
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 15px;
}

.order-total strong {
    font-size: 17px;
}

.orders-message {
    padding: 20px 0;
    text-align: center;
    color: #777;
}

.order-item-price-old,
.order-total-old {
    text-decoration: line-through;
    opacity: 0.55;
    margin-right: 8px;
}

.order-item-price-new,
.order-total-new {
    font-weight: 600;
}

/* =========================================================
   ЗАКАЗЫ — БОРДОВЫЕ ЗАГОЛОВКИ И ПОДПИСИ
   ========================================================= */

.orders-header h1,
.orders-section h2 {
    color: #72383D !important;
}

/* Номер заказа */
.order-card-header h3 {
    color: #72383D !important;
}

/* Подписи статуса и даты */
.order-status,
.order-date {
    color: #72383D !important;
}

/* Подписи характеристик товара */
.order-item-details {
    color: #72383D !important;
}

/* Итоговая сумма заказа */
.order-total strong {
    color: #72383D !important;
}


/* =========================================================
   ЗАКАЗЫ — БОРДОВЫЕ ПОДПИСИ И СВОРАЧИВАНИЕ
   ========================================================= */

.orders-header h1 {
    color: #322D29  !important;
}

.orders-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 0 0 14px;
    padding: 0;

    background: transparent;
    border: none;

    color: #72383D !important;
    font: inherit;
    font-size: 19px;
    font-weight: 600;
    text-align: left;

    cursor: pointer;
}

.orders-toggle-icon {
    color: #72383D;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.orders-section-toggle[aria-expanded="false"] .orders-toggle-icon {
    transform: rotate(180deg);
}

/* Номер заказа — тёмный текст */
.order-card-header h3 {
    color: #322D29 !important;
}

/* Остальные подписи — бордовые */
.order-status,
.order-date,
.order-item-details,
.order-total strong {
    color: #72383D !important;
}

/* Скрытый список */
.orders-list.is-collapsed {
    display: none !important;
}

