/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://tusitio.com/
 Description:  Tema hijo de Hello Elementor
 Author:       Tu Nombre
 Author URI:   https://tusitio.com/
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/
#cloudbeds-widget {
    position: absolute;
    top: 80vh;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 90%;
    gap: 15px;
    z-index: 999;
}

#cloudbeds-widget form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

#cloudbeds-widget .input-field {
    position: relative;
    flex: 1;
    border-right: 1px solid #ddd;
    padding-right: 15px;
}

#cloudbeds-widget .input-field:last-child {
    border-right: none; /* Sin línea divisoria en el último campo */
}

#cloudbeds-widget .input-field input {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: none; /* Sin borde */
    border-radius: 6px; /* Bordes suaves */
    background-color: transparent;
    outline: none; /* Sin borde al enfocar */
}

#cloudbeds-widget .input-field label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
    transition: all 0.2s ease;
}

#cloudbeds-widget .input-field input:focus + label,
#cloudbeds-widget .input-field input:not(:placeholder-shown) + label {
    top: 3px; /* Flotar hacia arriba al enfocar */
    font-size: 12px;
    color: #333;
}

#cloudbeds-widget .number-input {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

#cloudbeds-widget .number-input input {
    width: 120px;
    text-align: right;
    border: none; /* Sin borde */
    border-radius: 6px; /* Redondeado menor */
    font-size: 14px;
    padding: 10px;
    background-color: #f5f5f5; /* Fondo claro */
    outline: none; /* Sin borde al enfocar */
}

#cloudbeds-widget .number-input label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
}

#cloudbeds-widget .number-input button {
    background-color: #f5f5f5;
    border: none;
    padding: 5px 10px;
    border-radius: 50%; /* Botón completamente redondeado */
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #16413e;
    transition: background-color 0.3s ease;
}

#cloudbeds-widget .number-input button:hover {
    background-color: #16413e;
    color: white;
}

#cloudbeds-widget button[type="submit"] {
    background-color: #16413e;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 4px; /* Border-radius reducido */
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s;
    flex-shrink: 0; /* Evita que el botón se reduzca */
}

#cloudbeds-widget button[type="submit"]:hover {
    background-color: #091d1c;
    transform: scale(1.04);
}
/* Cambiar el color del día seleccionado */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: #16413e !important; /* Color de fondo */
    color: #fff !important; /* Color del texto */
    border-color: #16413e !important; /* Color del borde */
}

/* Ajustar el hover sobre los días */
.flatpickr-day:hover {
    background: #16413e !important; /* Color más claro para hover */
    color: white;
}
.flatpickr-day.inRange {
    border-radius: 0;
    -webkit-box-shadow: unset;
    box-shadow: unset;
    background: rgba(255, 181, 18, 0.3) !important;
    border: unset;
}

/* Cambiar el color del rango de días seleccionados */
.flatpickr-day.inRange {
    background: rgba(255, 181, 18, 0.3) !important; /* Fondo del rango */
    color: #333 !important; /* Texto del rango */
}

@media (max-width: 910px) {
	#cloudbeds-widget {
	    max-width: 100%;
	}
}

@media (max-width: 768px) {
    #cloudbeds-widget {
	    display: none;
        flex-direction: column; /* Cambia la dirección del contenedor a vertical */
        padding: 15px; /* Ajusta el padding para pantallas pequeñas */
        gap: 10px; /* Reduce el espacio entre los elementos */
        width: 100%; /* Ocupa todo el ancho disponible */
    }

    #cloudbeds-widget form {
        flex-direction: column; /* Coloca los elementos en una columna */
        align-items: stretch; /* Asegura que los elementos ocupen todo el ancho */
        gap: 10px; /* Espaciado entre los campos */
        width: 100%; /* Ocupa todo el ancho del contenedor */
    }

    #cloudbeds-widget .input-field {
        border-right: none; /* Elimina la línea divisoria */
        padding-right: 0; /* Elimina el padding lateral */
    }

    #cloudbeds-widget button[type="submit"] {
        width: 100%; /* El botón ocupa todo el ancho */
        padding: 12px; /* Más padding para pantallas táctiles */
        border-radius: 6px; /* Ajuste de bordes */
    }
}
