/* WooCommerce Custom Price - Styles */

.wc-custom-price-wrapper {
    margin: 20px 0 !important;
    padding: 15px !important;
   
    border-radius: 5px !important;
    border: 1px solid #e1e4e8 !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-custom-price-wrapper label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

.wc-custom-price-hint {
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #666 !important;
    font-style: italic !important;
    display: block !important;
    margin-top: 4px !important;
}

.wc-custom-price-input-wrapper {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    max-width: 300px !important;
}

.wc-custom-price-currency {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-weight: 600 !important;
    color: #555 !important;
    pointer-events: none !important;
    font-size: 16px !important;
    z-index: 1 !important;
}

.wc-custom-price-input {
    width: 100% !important;
    padding: 12px 15px 12px 55px !important;
    font-size: 16px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    display: block !important;
    background-color: #fff !important;
}

.wc-custom-price-input:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

.wc-custom-price-input:invalid {
    border-color: #dc3545 !important;
}

.wc-custom-price-input.error {
    border-color: #dc3545 !important;
}

/* Styles pour l'admin */
.custom_price_options {
    border-top: 1px solid #eee !important;
    padding-top: 12px !important;
}

/* S'assurer que le wrapper est visible même dans des layouts flexbox */
form.cart .wc-custom-price-wrapper {
    flex-basis: 100% !important;
    order: -1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-custom-price-input-wrapper {
        max-width: 100% !important;
    }
    
    .wc-custom-price-input {
        font-size: 18px !important;
    }
}
