/*
 * Enhanced Product Form - Product Page Styles
 * Shipping information display on product pages
 */

/* Shipping Tab Content */
.epf-product-page-shipping-info {
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.epf-no-shipping-info {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.epf-no-shipping-info p {
    margin: 0;
    font-style: italic;
}

/* Selected Shipping Display - Match Form Design */
.epf-selected-shipping-display-product {
    border: 2px solid #0073aa;
    border-radius: 12px;
    background: #ffffff;
    margin: 20px 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.epf-shipping-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 10px 10px 0 0;
}

.epf-shipping-check {
    font-size: 18px;
}

.epf-shipping-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.epf-shipping-methods-display {
    padding: 0;
}

/* Product Shipping Method Summary */
.epf-shipping-method-summary-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.epf-shipping-method-summary-product:last-child {
    border-bottom: none;
}

.epf-method-icon-circular {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.epf-method-icon-circular.collection-icon {
    background: linear-gradient(135deg, #46b450, #00a32a);
}

.epf-method-details-product {
    flex: 1;
    min-width: 0;
}

.epf-method-details-product h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.epf-shipping-option-line {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.epf-delivery-time-inline {
    color: #0073aa;
    font-style: italic;
}

.epf-total-shipping-cost-product {
    text-align: right;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
    color: #0073aa;
    font-size: 16px;
}

/* Legacy styles for backward compatibility */
.epf-postage-methods,
.epf-collection-method {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.epf-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.epf-method-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.epf-collection-method .epf-method-icon {
    background: linear-gradient(135deg, #46b450, #00a32a);
}

.epf-method-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* Postage Options List */
.epf-postage-options-list {
    padding: 20px;
}

.epf-postage-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.epf-postage-option:last-child {
    border-bottom: none;
}

.epf-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.epf-option-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.epf-delivery-time {
    font-size: 13px;
    color: #0073aa;
    font-style: italic;
}

.epf-option-price {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    text-align: right;
}

.epf-total-shipping-cost {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #0073aa;
    text-align: right;
    font-size: 16px;
    color: #0073aa;
}

/* Collection Method */
.epf-collection-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epf-collection-location {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.epf-location-icon {
    font-size: 18px;
}

.epf-location-text {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.epf-collection-cost {
    text-align: right;
}

.epf-free-badge {
    background: linear-gradient(135deg, #46b450, #00a32a);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Thumbnail Enhancements - Override any theme styles */
.epf-video-thumbnail, 
div.epf-video-thumbnail,
.woocommerce-product-gallery .epf-video-thumbnail {
    position: relative !important;
    border: 3px solid #0073aa !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    /* Ensure no overlays cover the background */
    overflow: hidden !important;
}

.epf-video-thumbnail:hover,
div.epf-video-thumbnail:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4) !important;
}

/* Remove any pseudo-elements that might overlay the background */
.epf-video-thumbnail::before,
div.epf-video-thumbnail::before {
    display: none !important;
}

.epf-video-thumbnail::after,
div.epf-video-thumbnail::after {
    display: none !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .epf-product-page-shipping-info {
        padding: 15px 0;
    }
    
    .epf-method-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .epf-method-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .epf-postage-options-list {
        padding: 15px;
    }
    
    .epf-postage-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .epf-option-price {
        text-align: left;
        font-size: 15px;
    }
    
    .epf-collection-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .epf-collection-location {
        justify-content: center;
    }
    
    .epf-total-shipping-cost {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .epf-shipping-methods-display h3 {
        font-size: 18px;
    }
    
    .epf-method-header h4 {
        font-size: 16px;
    }
    
    .epf-postage-options-list,
    .epf-collection-info {
        padding: 12px;
    }
}

/* Integration with WooCommerce styles */
.woocommerce-tabs .epf-product-page-shipping-info {
    margin: 0;
}

.woocommerce-Tabs-panel--epf_shipping {
    padding: 0;
}

.woocommerce-tabs .epf-product-page-shipping-info {
    padding: 20px;
}
