/* DNTrade Warehouse Pricing Styles */

.dntrade-warehouse-pricing {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.dntrade-warehouse-pricing h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.warehouse-options {
    display: grid;
    gap: 12px;
}

.warehouse-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.warehouse-option:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.warehouse-option.selected {
    border-color: #00a32a;
    background: #f0f6fc;
    box-shadow: 0 2px 4px rgba(0, 163, 42, 0.2);
}

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

.warehouse-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.best-price-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #00a32a;
    color: white;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warehouse-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.warehouse-price {
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
}

.warehouse-stock {
    font-size: 12px;
    color: #666;
}

.select-warehouse-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 80px;
}

.select-warehouse-btn:hover {
    background: #005a87;
}

.select-warehouse-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.select-warehouse-btn.selected {
    background: #00a32a;
}

.select-warehouse-btn.selected:hover {
    background: #007d23;
}

/* Selected warehouse display */
.selected-warehouse-display {
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f4f0;
    border: 1px solid #00a32a;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

/* Warehouse count on shop pages */
.dntrade-warehouse-count {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Price comparison toggle */
.price-comparison-toggle {
    margin-bottom: 15px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #0073aa;
    color: #0073aa;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-comparison-toggle:hover {
    background: #0073aa;
    color: white;
}

/* Notifications */
.dntrade-notification {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.dntrade-success {
    background: #d1eddb;
    border: 1px solid #00a32a;
    color: #155724;
}

.dntrade-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .warehouse-option {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .warehouse-details {
        align-items: center;
    }
    
    .dntrade-warehouse-pricing {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .warehouse-option {
        padding: 12px;
    }
    
    .warehouse-price {
        font-size: 14px;
    }
    
    .select-warehouse-btn {
        width: 100%;
        margin-top: 5px;
    }
}

/* Integration with popular themes */

/* Storefront theme compatibility */
.storefront .dntrade-warehouse-pricing {
    font-family: inherit;
}

/* Astra theme compatibility */
.astra-theme .dntrade-warehouse-pricing {
    font-family: inherit;
}

/* GeneratePress theme compatibility */
.generatepress .dntrade-warehouse-pricing {
    font-family: inherit;
}

/* Twenty Twenty-One theme compatibility */
.wp-theme-twentytwentyone .dntrade-warehouse-pricing {
    font-family: inherit;
}

/* Accessibility improvements */
.warehouse-option:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.select-warehouse-btn:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .dntrade-warehouse-pricing {
        background: white;
        border: 1px solid #000;
    }
    
    .select-warehouse-btn {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .warehouse-option {
        border-width: 2px;
    }
    
    .warehouse-option.selected {
        border-width: 3px;
    }
    
    .best-price-badge {
        border: 1px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .warehouse-option,
    .select-warehouse-btn,
    .price-comparison-toggle {
        transition: none;
    }
    
    .dntrade-notification {
        animation: none;
    }
} 