/* Order Details Page Styles */

/* Order Details Header */
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.order-info h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.order-date {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.order-status-badge .status-badge {
    font-size: 16px;
    padding: 10px 20px;
}

/* Order Section */
.order-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.order-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 30px;
    bottom: -10px;
    width: 2px;
    background: #ddd;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker i {
    font-size: 24px;
}

.timeline-item.completed .timeline-marker i {
    color: #27ae60;
}

.timeline-item.pending .timeline-marker i {
    color: #ddd;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.timeline-item.completed .timeline-content h4 {
    color: #27ae60;
}

.timeline-content p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.timeline-time {
    font-size: 12px;
    color: #999;
}

/* Order Items */
.order-items h3 {
    margin: 0 0 20px 0;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.item-quantity {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-price .price {
    font-size: 14px;
    color: #666;
}

.item-price .total {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

/* Payment Summary */
.payment-summary h3 {
    margin: 0 0 20px 0;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row.total {
    border-top: 2px solid #ddd;
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
    color: #e74c3c;
}

.summary-row.payment-method {
    border-bottom: none;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.method-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #e74c3c;
}

.method-badge i {
    font-size: 20px;
}

/* Delivery Information */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    gap: 15px;
}

.info-row i {
    font-size: 32px;
    color: #e74c3c;
    flex-shrink: 0;
}

.info-row h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.info-row p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-card i {
    font-size: 32px;
    color: #e74c3c;
    flex-shrink: 0;
}

.contact-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.contact-card p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

/* Order Actions */
.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.order-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Sticky Summary */
.sticky-summary {
    position: sticky;
    top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .order-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .sticky-summary {
        position: static;
    }
}

@media (max-width: 576px) {
    .order-section {
        padding: 20px;
    }

    .order-details-header {
        padding: 20px;
    }

    .order-info h2 {
        font-size: 22px;
    }

    .order-timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
    }

    .timeline-item::before {
        left: -22px;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-price {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}