/* Стили для страницы деталей заказа */
.wd-order-details-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Заголовок */
.wd-order-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.wd-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wd-back-button:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.wd-back-arrow {
    font-size: 18px;
    font-weight: bold;
}

.wd-order-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Секции информации */
.wd-order-info-section,
.wd-order-totals-section {
    background: #fff;
    border: unset !important;
    border-radius: unset !important;
    padding: 20px;
    margin-bottom: 30px;
}

.wd-products-title,
.wd-totals-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

/* Строки информации */
.wd-order-info-row,
.wd-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.wd-info-label,
.wd-totals-label {
    font-weight: 500;
    color: #333;
}

.wd-info-value,
.wd-totals-value {
    font-weight: 400;
    color: #666;
}

.wd-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
}

/* Итоговая сумма */
.wd-totals-final {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0 0 0;
    font-size: 18px;
    font-weight: 600;
}

.wd-final-label {
    margin-right: 10px;
}

.wd-final-value {
    color: #333;
}

/* Сетка товаров */
.wd-order-products-section {
    margin-bottom: 30px !important;
}

.wd-order-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.wd-order-product-card {
    background: #fff;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.wd-order-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wd-product-image {
    margin-bottom: 15px;
}

.wd-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wd-product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wd-product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    height: 3.9em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.wd-product-title a {
    text-decoration: none;
    color: #333;
}

.wd-product-title a:hover {
    color: #96588a;
}

.wd-product-price {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    text-align: left;
}

.wd-add-to-cart-btn .button {
    width: 100% !important;
    border-radius: var(--btn-accented-brd-radius) !important;
    color: var(--btn-accented-color) !important;
    box-shadow: var(--btn-accented-box-shadow) !important;
    background-color: var(--btn-accented-bgcolor) !important;
}

.wd-add-to-cart-btn .button:hover {
    background-color: #FF2A7F !important;
    color: white !important;
}

.out-of-stock {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* Кнопка повтора заказа */
.wd-order-again-section {
    margin-top: 30px;
}

.wd-order-again-btn {
    width: 100%;
    background-color: var(--btn-accented-bgcolor) !important;
    color: white !important;
    border-radius: var(--btn-accented-brd-radius) !important;
}

.wd-order-again-btn:hover {
    background-color: #FF2A7F !important;
    color: white !important;
}

.wd-reload-icon {
    font-size: 18px;
    padding-left: 1%;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .wd-order-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wd-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wd-back-button {
        margin-right: 0;
    }
    
    .wd-order-products-grid {
        grid-template-columns: 1fr;
    }
    
    .wd-order-info-row,
    .wd-totals-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .wd-totals-final {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .wd-order-info-section,
    .wd-order-totals-section {
        padding: 15px;
    }
    
    .wd-order-product-card {
        padding: 10px;
    }
}

@media (min-width: 1025px) {
    .wd-order-products-section {
        margin: auto;
    }
}

a.button.add_to_cart_button:hover {
    background-color: #FF2A7F !important;
    color: white !important;
}