/* Estilos para selección de planta y habitación en la página de producto */
.schneider-room-selection {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    clear: both;
}

.schneider-room-selection h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Estilos para los contenedores de selección */
.floor-selection-container {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.floor-selection-container:last-child {
    border-bottom: none;
}

/* Estilos para los checkboxes */
.floor-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.floor-checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 8px 15px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.floor-checkbox-container:hover {
    border-color: #a7bf11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.floor-checkbox-container.checked {
    background-color: #f0f7e6;
    border-color: #a7bf11;
}

/* Estilo para los checkboxes personalizados */
.floor-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.floor-checkbox-container label {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    z-index: 1;
}

.custom-checkbox {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.floor-checkbox-container:hover .custom-checkbox {
    border-color: #a7bf11;
}

.custom-checkbox.checked {
    background-color: #19408b;
    border-color: #19408b;
}

.custom-checkbox.checked:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Estilos para los radio buttons */
.floor-radiobuttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.floor-radio-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 8px 15px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.floor-radio-container:hover {
    border-color: #a7bf11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.floor-radio-container.checked {
    background-color: #f0f7e6;
    border-color: #a7bf11;
}

.floor-radio-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.floor-radio-container label {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    z-index: 1;
}

.custom-radio {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.floor-radio-container:hover .custom-radio {
    border-color: #a7bf11;
}

.custom-radio.checked {
    border-color: #19408b;
}

.custom-radio.checked:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #19408b;
}

/* Estilos para el desplegable */
.floor-dropdown-container {
    margin-top: 10px;
}

.floor-dropdown {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    height: 45px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floor-dropdown:hover, 
.floor-dropdown:focus {
    border-color: #a7bf11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
}

.floor-dropdown option {
    padding: 10px;
}

/* Estilos para la selección de habitación */
.room-selection-container {
    margin-top: 15px;
}

.room-selection-loading {
    display: none;
    margin: 10px 0;
    font-style: italic;
    color: #666;
}

#schneider_room_select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    height: 45px;
}

#schneider_room_select:focus {
    outline: none;
    border-color: #a7bf11;
    box-shadow: 0 0 0 1px #a7bf11;
}

/* Estilos para el grupo de opciones */
#schneider_room_select optgroup {
    font-weight: bold;
    font-style: normal;
    color: #19408b;
    padding: 5px;
}

#schneider_room_select option {
    padding: 5px;
    color: #333;
}

/* Asegurar que el campo se muestre correctamente en móviles */
@media (max-width: 768px) {
    .floor-checkboxes,
    .floor-radiobuttons {
        flex-direction: column;
    }
    
    .floor-checkbox-container,
    .floor-radio-container {
        margin-right: 0;
    }
}

/* Ocultar campos originales de WooCommerce si es necesario */
.woocommerce div.product form.cart .variations td.label {
    display: none;
}

/* Estilo para el mensaje de error */
.room-selection-error {
    color: #e2401c;
    margin-top: 10px;
    display: none;
    font-size: 14px;
}

/* Sombra para destacar el formulario */
.schneider-room-selection {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.schneider-room-selection:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Colores corporativos */
.floor-selection-title, 
.room-selection-title {
    color: #19408b;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Indicador de selección obligatoria */
.required-indicator {
    color: #e2401c;
    margin-left: 3px;
}

/* Mejorar la apariencia del botón de añadir al carrito */
.single_add_to_cart_button {
    background-color: #a7bf11 !important;
    color: white !important;
}

.single_add_to_cart_button:hover {
    background-color: #8ca60e !important;
} 