/**
 * WooCommerce Points Integration - Styles
 */

/* Points usage section in cart/checkout */
.avoimetpuutarhat-points-row {
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.avoimetpuutarhat-points-usage {
    padding: 20px 0;
}

.avoimetpuutarhat-points-usage h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2c3e50;
}

.avoimetpuutarhat-points-usage .points-available {
    margin: 0 0 15px 0;
    color: #27ae60;
    font-weight: 600;
}

/* Points slider */
.points-slider-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.points-slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.points-slider-container .points-value {
    color: #27ae60;
    font-size: 18px;
    margin-left: 5px;
}

#points-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin: 10px 0;
}

#points-slider:hover {
    opacity: 1;
}

#points-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #27ae60;
    cursor: pointer;
}

#points-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #27ae60;
    cursor: pointer;
    border: none;
}

.discount-preview {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #2c3e50;
}

.discount-preview .discount-amount {
    font-weight: 700;
    color: #27ae60;
    font-size: 18px;
}

/* Buttons */
.avoimetpuutarhat-points-usage .button {
    margin-right: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-points-btn {
    background: #27ae60;
    color: white;
    border: none;
}

.apply-points-btn:hover {
    background: #229954;
}

.remove-points-btn {
    background: #e74c3c;
    color: white;
    border: none;
}

.remove-points-btn:hover {
    background: #c0392b;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Points price on product pages */
.avoimetpuutarhat-points-price {
    margin: 15px 0;
    padding: 12px;
    background: #f0f8f0;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
}

.avoimetpuutarhat-points-price .points-equivalent {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.avoimetpuutarhat-points-price strong {
    color: #27ae60;
    font-size: 18px;
}

/* Points badge on product loop */
.avoimetpuutarhat-points-price-loop {
    margin: 8px 0;
}

.points-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #27ae60;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .avoimetpuutarhat-points-usage {
        padding: 15px 0;
    }
    
    .avoimetpuutarhat-points-usage h3 {
        font-size: 16px;
    }
    
    .points-slider-container {
        padding: 12px;
    }
    
    .avoimetpuutarhat-points-usage .button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .avoimetpuutarhat-points-price {
        padding: 10px;
    }
    
    .avoimetpuutarhat-points-price .points-equivalent {
        font-size: 14px;
    }
}
