/**
 * MWF Solidarity Price Slider Styles
 * Beautiful interactive slider for WooCommerce variable products
 */

/* Hide the solidarity level dropdown since we use slider */
.variations tr[data-attribute_name="attribute_pa_solidarity_level"] {
    display: none !important;
}

/* Slider Container */
.mwf-solidarity-slider-wrapper {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.mwf-solidarity-slider-header {
    text-align: center;
    margin-bottom: 20px;
}

.mwf-solidarity-slider-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.mwf-solidarity-slider-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Current Price Display */
.mwf-solidarity-price-display {
    text-align: center;
    margin: 15px 0 25px;
}

.mwf-solidarity-price-amount {
    font-size: 42px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    transition: color 0.3s ease;
}

.mwf-solidarity-price-amount.solidarity {
    color: #48bb78;
}

.mwf-solidarity-price-amount.break-even {
    color: #ed8936;
}

.mwf-solidarity-price-amount.standard {
    color: #2d3748;
}

.mwf-solidarity-price-amount.supporter {
    color: #2f855a;
}

.mwf-solidarity-price-label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

.mwf-solidarity-price-label .zone-icon {
    font-size: 20px;
    margin-right: 5px;
}

/* Slider Track */
.mwf-solidarity-slider-container {
    position: relative;
    padding: 0 10px;
    margin: 30px 0;
}

.mwf-solidarity-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, 
        #48bb78 0%, 
        #48bb78 25%, 
        #ed8936 25%, 
        #ed8936 40%, 
        #2d3748 40%, 
        #2d3748 60%, 
        #2f855a 60%, 
        #2f855a 100%
    );
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Slider Thumb */
.mwf-solidarity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2d3748;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.mwf-solidarity-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2d3748;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.mwf-solidarity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.mwf-solidarity-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

/* Price Zone Labels */
.mwf-solidarity-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 13px;
}

.mwf-slider-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.mwf-slider-label-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.mwf-slider-label-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.mwf-slider-label-price {
    font-size: 12px;
    color: #666;
}

/* Price Impact Message */
.mwf-solidarity-price-impact {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mwf-solidarity-price-impact.solidarity {
    background: rgba(72, 187, 120, 0.1);
    border-color: #48bb78;
}

.mwf-solidarity-price-impact.break-even {
    background: rgba(237, 137, 54, 0.1);
    border-color: #ed8936;
}

.mwf-solidarity-price-impact.standard {
    background: rgba(45, 55, 72, 0.1);
    border-color: #2d3748;
}

.mwf-solidarity-price-impact.supporter {
    background: rgba(47, 133, 90, 0.1);
    border-color: #2f855a;
}

.mwf-price-impact-icon {
    font-size: 18px;
    margin-right: 8px;
}

.mwf-price-impact-text {
    font-size: 14px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mwf-solidarity-slider-wrapper {
        padding: 20px 15px;
    }
    
    .mwf-solidarity-price-amount {
        font-size: 36px;
    }
    
    .mwf-solidarity-slider-labels {
        flex-direction: column;
        gap: 10px;
    }
    
    .mwf-slider-label {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}
