/*
 * Enhanced Product Form - Order Styles
 * Shipping details display for customer order pages
 */

/* Customer Shipping Details */
.epf-customer-shipping-details {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.epf-customer-shipping-details h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.epf-customer-shipping-details h2::before {
    content: "🚚";
    font-size: 24px;
}

.epf-shipping-item-details {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.epf-shipping-item-details:last-child {
    margin-bottom: 0;
}

.epf-shipping-item-details h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Shipping Method Display */
.epf-shipping-method-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.epf-shipping-method-display .epf-shipping-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
}

.epf-shipping-method-display .epf-shipping-info {
    flex: 1;
}

.epf-shipping-method-display .epf-shipping-info strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.epf-shipping-method-display .epf-shipping-info p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.epf-delivery-time {
    font-size: 12px;
    color: #0073aa;
    font-weight: 500;
    background: #e6f3ff;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.epf-shipping-cost {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    text-align: right;
    min-width: 80px;
}

/* Vendor Shipping Details */
.epf-vendor-shipping-details {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.epf-vendor-shipping-details h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.epf-vendor-shipping-details h3::before {
    content: "📦";
    font-size: 20px;
}

.epf-vendor-shipping-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.epf-vendor-shipping-item:last-child {
    margin-bottom: 0;
}

.epf-shipping-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.epf-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.epf-shipping-badge.postage {
    background: linear-gradient(135deg, #007cba, #0073aa);
}

.epf-shipping-badge.collection {
    background: linear-gradient(135deg, #46b450, #00a32a);
}

.epf-shipping-badge.both {
    background: linear-gradient(135deg, #f56500, #e65100);
}

.epf-shipping-details-content {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.epf-shipping-details-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* Email Shipping Details */
.epf-email-shipping-details {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

.epf-email-shipping-details h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.epf-email-shipping-details > div {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-left: 4px solid #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .epf-customer-shipping-details,
    .epf-vendor-shipping-details {
        padding: 15px;
    }
    
    .epf-shipping-item-details {
        padding: 15px;
    }
    
    .epf-shipping-method-display {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .epf-shipping-method-display .epf-shipping-info {
        text-align: center;
    }
    
    .epf-shipping-cost {
        text-align: center;
        min-width: auto;
    }
    
    .epf-shipping-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Integration with WooCommerce styles */
.woocommerce .epf-customer-shipping-details {
    margin-top: 30px;
}

.woocommerce-order-details .epf-customer-shipping-details {
    margin: 30px 0;
}

/* No shipping message */
.epf-no-shipping {
    color: #999;
    font-style: italic;
}

/* Loading states */
.epf-shipping-loading {
    opacity: 0.6;
    pointer-events: none;
}

.epf-shipping-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}
