/**
 * WooCommerce Order Confirmation Widget Styles
 * Persian/Farsi RTL layout for order confirmation page
 */

.hep-order-confirmation {
    direction: rtl;
    text-align: right;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Order Header */
.hep-order-header {
    background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.hep-order-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Order Details Header */
.hep-order-details-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.hep-order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.hep-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hep-info-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.hep-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.hep-payment-note {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 16px;
    color: #495057;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Order Specifications */
.hep-order-specifications {
    margin-bottom: 30px;
}

.hep-specifications-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.hep-specifications-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.hep-specifications-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.hep-specifications-left,
.hep-specifications-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hep-spec-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 10px;
}

.hep-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.hep-spec-item:last-child {
    border-bottom: none;
}

.hep-spec-item.hep-final-price {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    border-top: 2px solid #e9ecef;
    margin-top: 10px;
    padding-top: 15px;
}

.hep-spec-label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.hep-spec-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-align: left;
}

.hep-product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hep-product-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.hep-product-details {
    font-size: 12px;
    color: #6c757d;
}

.hep-product-quantity {
    font-size: 12px;
    color: #6c757d;
    margin-right: 5px;
}

/* Addresses Container */
.hep-addresses-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hep-address-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.hep-address-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.hep-address-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hep-address-content > div {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.hep-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    margin-top: 5px;
}

.hep-phone-icon,
.hep-email-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Order Cards */
.hep-order-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.hep-order-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hep-order-confirmation {
        padding: 15px;
    }

    .hep-order-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .hep-order-header h1 {
        font-size: 24px;
    }

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

    .hep-order-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hep-specifications-card {
        padding: 20px;
    }

    .hep-specifications-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hep-addresses-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hep-address-card {
        padding: 20px;
    }

    .hep-specifications-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .hep-order-header h1 {
        font-size: 20px;
    }

    .hep-order-header {
        padding: 15px;
    }

    .hep-order-details-header {
        padding: 15px;
    }

    .hep-specifications-card {
        padding: 15px;
    }

    .hep-address-card {
        padding: 15px;
    }

    .hep-spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .hep-spec-value {
        text-align: right;
    }
}

/* Animation for order confirmation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hep-order-confirmation {
    animation: fadeInUp 0.6s ease-out;
}

.hep-order-header {
    animation: fadeInUp 0.8s ease-out;
}

.hep-order-details-header {
    animation: fadeInUp 1s ease-out;
}

.hep-order-specifications {
    animation: fadeInUp 1.2s ease-out;
}

.hep-addresses-container {
    animation: fadeInUp 1.4s ease-out;
}

/* Focus styles for accessibility */
.hep-order-card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hep-order-confirmation {
        background: #ffffff;
        padding: 0;
        box-shadow: none;
    }

    .hep-order-header {
        background: #007bff !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .hep-order-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hep-order-header {
        background: #000000 !important;
        color: #ffffff !important;
    }

    .hep-order-card {
        border: 2px solid #000000;
    }

    .hep-spec-item {
        border-bottom: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hep-order-confirmation,
    .hep-order-header,
    .hep-order-details-header,
    .hep-order-specifications,
    .hep-addresses-container {
        animation: none;
    }

    .hep-order-card:hover {
        transform: none;
    }
} 