/**
 * Estilos para el selector de cantidad decimal
 */

.decimal-quantity-selector {
    margin-bottom: 15px;
    padding: 10px 0;
}

.decimal-quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.decimal-quantity-select {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.decimal-quantity-select:hover {
    border-color: #999;
}

.decimal-quantity-select:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.decimal-quantity-total-price {
    margin-top: 10px;
    padding: 10px;
    background-color: #f7f7f7;
    border-left: 3px solid #333;
    font-size: 16px;
    color: #333;
}

.decimal-quantity-total-price strong {
    font-weight: 700;
}

/* Ocultar el campo de cantidad estándar cuando está habilitado el decimal */
form.cart .quantity.hidden {
    display: none !important;
}

/* Estilos para compatibilidad con YITH Request a Quote */
.yith-ywraq-add-to-quote .decimal-quantity-selector {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .decimal-quantity-select {
        max-width: 100%;
    }
    
    .decimal-quantity-total-price {
        font-size: 14px;
    }
}

/* Compatibilidad con tema Maison */
.product-type-simple .decimal-quantity-selector,
.product-type-variable .decimal-quantity-selector {
    clear: both;
    margin-top: 10px;
}

/* Estilos adicionales para el carrito */
.woocommerce-cart-form .decimal-quantity-info {
    font-style: italic;
    color: #666;
    font-size: 13px;
}

/* Estilos para pedidos y checkout */
.woocommerce-checkout-review-order .decimal-quantity-meta {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

