/* ======================================= */
/* Estilos generales y del formulario */
/* ======================================= */
.payment-chose-div i {
    color: #535353;
}

.appoinment-booking-area .single-booking-support {
    min-height: 300px;
}

.appoinment-booking-area .form-wrap .form-control {
    padding: 1px 7px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 2px;
    margin-bottom: 10px;
    border-color: #d2d2d2;
    height: 40px !important;
}

.appoinment-booking-area .form-wrap {
    text-align: center;
}

.appoinment-booking-area {
    margin-top: 0;
}

.appoinment-booking-area .single-booking-area {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 30px 0px rgb(0 42 106 / 10%);
    position: relative;
}

label {
    font-weight: 500;
    margin-bottom: 1px !important;
    color: var(--theamColor);
}

.color-black {
    color: #000 !important;
}

.border-red {
    border: 2px solid red !important;
}

.disabled-service {
    background: #eeeeee;
    border: 1px solid #d8d1d1;
    color: red;
}

.disabled-service-text {
    text-decoration: line-through !important;
}

.color-success {
    color: #3ac259;
}

/* ======================================= */
/* Estilos de los selectores de servicio */
/* ======================================= */
.ui-selectmenu-button .ui-selectmenu-text,
.ui-selectmenu-menu .ui-menu-item {
    font-size: 16px;
}

.ui-selectmenu-open {
    z-index: 9999 !important;
}

.ui-selectmenu-menu {
    position: absolute !important;
    z-index: 9999 !important;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

.ui-selectmenu-button {
    position: relative;
}

.ui-selectmenu-menu li {
    font-size: 16px;
    line-height: 1.5;
}

/* ======================================= */
/* Estilos del calendario y los botones */
/* ======================================= */
#serviceDate {
    width: 100%;
    margin-bottom: 0;
    border-bottom: none;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    text-align: center;
    background: #fff;
    /* Usamos Flexbox para centrar y eliminar el float */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
}

#divTopDays {
    display: none;
}

#iPrvDate,
#iNextDate {
    background: var(--theamColor);
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#iPrvDate:hover,
#iNextDate:hover {
    background: var(--theamHoverColor);
}

#divPreNext {
    width: auto;
}

#divDaysName {
    font-weight: 400;
    font-size: 17px;
    color: var(--theamColor);
}

/* Hacemos que el calendario ocupe el 100% del ancho de su contenedor */
.xdsoft_datetimepicker {
    float: none;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
    box-sizing: border-box;
    height: auto;
   /* max-width: 100% !important;
    width: 100% !important;*/
    border: none !important; /* Eliminamos el borde del calendario */
    padding: 0px !important; 
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
    background: var(--theamColor) !important;
    box-shadow: none;
}

.xdsoft_datetimepicker .xdsoft_calendar th {
    color: var(--theamColor);
}

.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_calendar th {
    border: none;
    background: none;
}

/* Contenedor para centrar el calendario */
.divServiceCalendar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ======================================= */
/* Estilos de los bloques de tiempo */
/* ======================================= */
#divServiceAvaiableTime {
    border: 1px solid #dbdbdb;
    height: 220px;
    border-radius: 2px;
    padding: 7px;
    overflow-y: auto;
    height: 80%;
}

#divTimeSlotsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 5px;
}

.divTimeSlot.range-start {
    background-color: #ffc107 !important; /* A distinct color for the start of the range */
    color: #000 !important;
}

.divTimeSlot {
    float: none;
    border: 1px solid #d2d2d2;
    border-radius: 1px;
    padding: 7px;
   /* background: #fefefe; */
    font-weight: 600;
    color: #666363;
    box-shadow: 1px 1px 3px -2px;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
}

.divTimeSlotActive {
    color: #fff;
    background: var(--theamColor);
    border-color: var(--theamColor);
    border-radius: 2px;
}

.divTimeSlotActive:hover {
    color: #fff;
    background: var(--theamHoverColor) !important;
    border-color: var(--theamHoverColor) !important;
    border-radius: 2px;
}

.divTimeSlot:hover {
    background: #f5f5f5;
}

.serviceTime {
    margin: 5px 3px;
}

/* ======================================= */
/* Estilos del servicio seleccionado y botón */
/* ======================================= */
.divSelectedService {
    color: #fff;
    border-radius: 2px;
    text-align: left;
    padding: 2px 15px;
    background: var(--theamColor);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#add-service-btn {
    padding: 3px 9px;
    font-size: 24px;
}

/* ======================================= */
/* Estilos del resumen de la reserva */
/* ======================================= */
.payment-chose-div {
    float: left;
    border: 1px solid #d2d2d2;
    border-radius: 2px;
    margin: 3px 3px;
    padding: 9px 9px;
    cursor: pointer;
}

#divPaymentMethod {
    max-width: 400px; /* Aumentamos el ancho máximo para PC */
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.payment-chose-div img {
  /*  width: 87px;
    height: 32px; */
    height: 65px; /* Ajustamos la altura para una mejor proporción */
    object-fit: contain;
    width: 100%; /* Hacemos que la imagen ocupe el ancho de su contenedor */
}

.payment-chose {
    background: var(--theamColorRgba);
    border: 1px solid var(--theamColorRgba);
}

.payment-chose div {
    color: #fff !important;
}

.payment-chose i {
    color: #fff !important;
}

.table > :not(:first-child) {
    border-top: none;
}

#tbl-service-cart thead tr {
    background: var(--theamColorRgba);
}

#tbl-service-cart {
    border: 1px solid #f1f1f1;
}

#divOrderSummary h5 {
    background: var(--theamColorRgba);
    padding: 11px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    padding-left: 24px;
}

#divOrderSummary {
    border: 1px solid #f3f0f0;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    padding-bottom: 30px;
}

.summary-service {
    width: 100%;
    float: left;
    padding: 14px 21px;
    border-bottom: 1px solid #f2f2f2;
}

.service-item {
    width: 100%;
    float: left;
    padding: 8px 20px;
}

.service-border-button {
    border-bottom: 1px solid #f2f2f2;
    width: 100%;
    float: left;
}

#coupon_code {
    height: auto !important;
    margin-bottom: auto !important;
    padding: 10px 20px !important;
    font-size: 20px !important;
}

/* ======================================= */
/* Estilos del asistente (wizard) */
/* ======================================= */
.wizard > .content > .body {
    float: none;
    position: unset;
    width: auto;
    height: auto;
    padding: 1px;
}

.wizard > .content {
    background: none;
    display: block;
    margin: auto;
    min-height: auto;
    overflow: auto;
    position: relative;
    width: 100%;
}

.wizard > .steps .number {
    font-size: 24px;
}

.wizard > .steps {
    margin-bottom: 5px;
    font-size: 24px;    
}

.wizard > .actions > ul {
    margin-bottom: -4px;
}

.wizard > .actions {
    margin-top: 10px;
}

.wizard > .actions a,
.wizard > .actions a:hover,
.wizard > .actions a:active {
    border-radius: 2px;
}

.wizard > .steps .current a,
.wizard > .steps .current a:hover,
.wizard > .steps .current a:active {
    background: var(--theamColor) !important;
}

.wizard > .steps .done a,
.wizard > .steps .done a:hover,
.wizard > .steps .done a:active {
    background: var(--theamActiveColor) !important;
}

.wizard > .steps a,
.wizard > .steps a:hover,
.wizard > .steps a:active {
    padding: 1px;
    margin: 1px;
    border-radius: 0px;
}

.wizard > .actions a,
.wizard > .actions a:hover,
.wizard > .actions a:active {
    background: var(--theamColor);
}

/* Estilos de la nueva card que unifica los bordes */
.div-booking-card {
    border: 1px solid #d2d2d2;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);   
    margin-bottom: 15px;
    min-width: 250px;
}


/* ======================================= */
/* Estilos para móviles (max-width: 768px) */
/* ======================================= */
@media only screen and (max-width: 768px) {
    /* El botón "Add more service" ocupa el 100% del ancho del contenedor */
    #add-service-btn {
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
    }

    /* Ocultamos los bordes del calendario y mostramos los del div padre para la alineación */
    #divServiceCalendar {
        display: block !important;
        width: 100%;
        border: none; /* Se elimina el borde aquí para evitar el doble borde */
        max-width: 250px;
        margin: 0 auto;
    }

    /* Centramos el calendario en móvil con flexbox */
    #divServiceDate {
        display: flex;
        justify-content: center;
        flex-direction: column;
        overflow: hidden;
    }

    /* Estilos generales para el calendario en móviles */
    .xdsoft_datetimepicker {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 auto;
        border: none !important;
    }

    /* Forzar calendario a ocupar todo el ancho */
    .xdsoft_datetimepicker .xdsoft_calendar,
    .xdsoft_datetimepicker .xdsoft_calendar table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    /* Ajustar los nombres de meses y años */
    .xdsoft_datetimepicker .xdsoft_month,
    .xdsoft_datetimepicker .xdsoft_year {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 20%;
    }
    
    /* Ajustar el contenedor de mes y año */
    .xdsoft_datetimepicker .xdsoft_label {
        width: auto !important;
        text-align: center;
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }

    /* Ajustar columnas a 7 iguales */
    .xdsoft_datetimepicker .xdsoft_calendar th,
    .xdsoft_datetimepicker .xdsoft_calendar td {
        /*
        * Se comenta el siguiente estilo porque esta afectando el calendario en la seccion de booking
        * width: calc(100% / 7) !important;
        */

        width: calc(100% / 7) !important;
        text-align: center !important;
        padding: 6px 0 !important;
        box-sizing: border-box;
    }

    /* Asegurar que el contenido dentro de las celdas esté centrado */
    .xdsoft_datetimepicker .xdsoft_calendar td > div {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    
    .xdsoft_datetimepicker .xdsoft_calendar th {
        font-size: 1rem;
    }

    .xdsoft_datetimepicker .xdsoft_calendar td {
        font-size: 1.2rem;
    }

    .xdsoft_datetimepicker .xdsoft_time_box {
        font-size: 1.2rem;
    }

    /* Ajustes para los bloques de tiempo */
    #divTimeSlotsContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .divTimeSlot {
        font-size: 15px;
        padding: 10px 5px;
        margin: 0;
        min-width: unset;
        width: auto;
    }

    /* Ajustes para el texto y el botón de servicio seleccionado */
    .divSelectedService {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Ajustes para el menú desplegable (selectmenu) */
    .ui-selectmenu-menu {
        left: 50% !important;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    }

    .ui-selectmenu-menu .ui-menu-item,
    .ui-selectmenu-button .ui-selectmenu-text {
        font-size: 16px;
    }
    
    .xdsoft_datetimepicker .xdsoft_calendar {
        height: auto;
    }
    .wizard > .steps .number {
    font-size: 14px;
    }

    .wizard > .steps {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .wizard > .steps a,
    .wizard > .steps a:hover,
    .wizard > .steps a:active {
        padding: 1px;
        margin: 1px;
        border-radius: 0px;
        height: 40px;
       /* Nuevas propiedades para centrar verticalmente */
        display: flex;
        align-items: center;
        justify-content: center; /* Esto es opcional, pero ayuda a centrar horizontalmente también */
    }

    #divPaymentMethod {
        max-width: none; /* Eliminamos el max-width en móvil */
    }

    .payment-chose-div {
        padding: 5px;
        margin: 0;
    }

}