/* The Modal (background) */
.qlk-carnejoven-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 100;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto; /* Permitir scroll en el fondo del modal */
}

/* Modal Content/Box */
.qlk-carnejoven-modal-content {
    background-color: #fefefe;
    padding: 30px;
    max-width: 600px;
    animation-name: qlkmodalanimatetop;
    animation-duration: 0.4s;
    position: relative;
    border-radius: 10px;
    width: 100%;
    max-height: 90vh; /* Altura máxima del 90% de la ventana */
    display: flex;
    flex-direction: column;
}

/* Modal Body */
.qlk-carnejoven-modal-body {
    overflow-y: auto; /* Permitir scroll en el contenido */
    padding-right: 10px; /* Espacio para la barra de scroll */
    max-height: calc(90vh - 100px); /* Altura máxima considerando el padding y el botón de cerrar */
    margin-top: 25px;
}

/* Estilizar la barra de scroll */
.qlk-carnejoven-modal-body::-webkit-scrollbar {
    width: 8px;
}

.qlk-carnejoven-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.qlk-carnejoven-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.qlk-carnejoven-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal Header */
.qlk-carnejoven-modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Modal Footer */
.qlk-carnejoven-modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #bdc7c4;
}

/* The Close Button */
.qlk-carnejoven-modal-close {
    color: #666;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    line-height: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.05);
}

.qlk-carnejoven-modal-close:hover,
.qlk-carnejoven-modal-close:focus {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
    cursor: pointer;
}

@keyframes qlkmodalanimatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/*form*/
.qlk-carnejoven-inline-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qlk-carnejoven-inline-form div {
    display: flex;
    flex-direction: column;
}

.qlk-carnejoven-inline-form label {
    margin-bottom: 0.5rem;
}

.qlk-carnejoven-form-group-counter{
    display: flex;
    margin-bottom: 0.5rem;
}
.qlk-carnejoven-form-group-counter label{
    width: 120px;
}

.qlk-carnejoven-form-group-counter .qlk-carnejoven-form-group-counter-input{
    display: flex;
}
.qlk-carnejoven-form-group-counter .qlk-carnejoven-form-group-counter-input input{
    width: 50px;
    padding: 9px 10px;
}

/*calendar*/
.qlk-carnejoven-calendar-container{
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    padding: 10px 0px; 
    margin-bottom: 20px;
}
.qlk-carnejoven-calendar-item {
    min-width: max-content;
    max-width: max-content;
    padding: 5px 10px;
    border: 1px solid #e9ecec;
    margin: 0px 10px;
    cursor: pointer;

    display: flex;
    height: 100%;
    flex: 1 1 0%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .625rem;
}

.qlk-carnejoven-calendar-item-title,
.qlk-carnejoven-booking-price-label{
    font-size: .702rem;
    line-height: 1.0625rem;
    font-weight: 400;
}
.qlk-carnejoven-booking-price{    
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: bold;
}
.qlk-carnejoven-calendar-item .qlk-carnejoven-booking-price{
    font-size: .889rem;
    line-height: 1.25rem;
}
.qlk-carnejoven-calendar-item.selected{
    border: 1px solid #00a5d3;
    font-size: 1.125rem;
    line-height: 1.5rem;
    --tw-shadow: 0px 0px 5px #00a5d3;
    --tw-shadow-colored: 0px 0px 5px
}
.qlk-carnejoven-calendar-item.selected .qlk-carnejoven-booking-price{
    font-size: 1.125rem;
    line-height: 1.5rem;
}

.qlk-carnejoven-modality-container{
    display: flex;
}

.qlk-carnejoven-modality-item{
    padding: 30px 15px;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 1.25rem;
    background-color: #ffffff;
    --tw-shadow: 0px 1px 3px rgba(39, 39, 38, .6);
    --tw-shadow-colored: 0px 1px 3px #bdc7c4;
    box-shadow: 0 0 #0000, 0 0 #0000, 0px 1px 3px rgba(39, 39, 38, .6);
    padding-right: 1.25rem;
}

.qlk-carnejoven-modality-item-title{
    font-size: 1.125rem;
    line-height: 1.5rem;
}

.qlk-carnejoven-modality-item-title label{
    cursor: pointer;
}

.qlk-carnejoven-modality-item.selected .qlk-carnejoven-modality-item-title{
    font-weight: 700;
}

.qlk-carnejoven-booking-step-title{
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
}
.qlk-carnejoven-booking-step-title .qlk-carnejoven-booking-step-badge{

    display: flex;
    height: 1.563rem;
    width: 1.563rem;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background-color: #00a5d3;
    font-size: .889rem;
    line-height: 1.25rem;
    color: #fff;
}

.qlk-carnejoven-total-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #bdc7c4;
    padding: 20px 0px;
}

.qlk-carnejoven-total-item:last-child{
    border-bottom: none;
}

.qlk-carnejoven-booking-price-container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.qlk-carnejoven-total-general {
    border-top: 1px solid #000;
    display: flex;
    justify-content: space-between;
    padding: 20px 0px;
}

.qlk-carnejoven-total-general .qlk-carnejoven-booking-price{
    font-size: 2.027rem;
    line-height: 2.6rem;
}