.calendar {
    border-collapse: collapse;
    width: 100%;
}

.calendar th, .calendar td {
    border: 1px solid #ccc;
    padding: 8px!important;
    text-align: center;
}

.calendar_cont {
    overflow: auto;
    z-index: 1;
    position: relative;
}
.calendar td:first-child {
    position: sticky;
    background-color: #28806eb3;
    left: -1px;
    color: white;
}
.calendar th:first-child {
    position: sticky;
    left: -1px;
}
td:first-child, th:first-child {
    padding-left: 8px;
}


.calendar th {
    background-color: #f2f2f2;
}

.calendar .selected-slot {
    background-color: #eee;
}

.calendar td.not_available {
    background-color: #ffffff75;
}

.calendar td.available {
    background-color: white;
    cursor: pointer;
}

.calendar td.occupied {
    background-color: orange;
    cursor: pointer;
}

.wrap {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 30px;
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    top: 50%;
    width: 118%;
    margin-left: -9%;
    position: absolute;
}

.calendar button, .week-navigation button {
    background-color: trasparent!important;
    border: none!important;
    padding: 10px 12px!important;
    margin: 5px!important;
    cursor: pointer!important;
    border-radius: 5px!important;
    transition: background-color 0.3s!important;
    line-height: 0!important;
}

button:disabled {
    cursor: not-allowed!important;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff78;
}

.calendar th, .calendar td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    transition: background-color 0.3s;
}

.calendar th {
    background-color: #28806E;
    color: #ffffff;
    text-transform: capitalize;
}

.calendar td:not(:first-child):not(.not_available):hover {
    background-color: #b0dad4;
}
td:first-child, th:first-child {
    text-wrap: nowrap;
}

.calendar .selected-slot {
    background-color: #b0dad4 !important;
    color: #ffffff;
}

.booking-form {
    margin-top: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="email"] {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}

.new-booking-form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.text_message_popup {
    text-transform: uppercase;
}
#prenota {
    cursor: pointer;
    height: auto;
    margin-top: 0;
    font-size: 1.6rem !important;
    line-height: 1.6rem !important;
    padding: 0.6rem 3rem !important;
    border: solid 1px white;
    text-wrap: nowrap;
}

.page-id-145 #prenota {
    background-color: #F7D8BB!important;
    color: black;
}
.page-id-143 #prenota {
    background-color: #682988!important;
}

  /* WebKit Browsers (Chrome, Safari) */
  .calendar_cont::-webkit-scrollbar {
    height: 12px;
  }
  .calendar_cont::-webkit-scrollbar-track {
    background: #ffffff33;
    border-radius: 30px;
  }
  .calendar_cont::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 6px;
  }
  .calendar_cont::-webkit-scrollbar-thumb:hover {
    background: white;
  }
  
  /* Firefox */
  .calendar_cont {
    scrollbar-width:auto;
    scrollbar-color:  white;
  }



@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    .pum-container {
        padding: 0!important;
    }
    .week-navigation {
        margin-bottom: 10px;
        width: 100%;
        margin-left: 0%;
        position: relative;
    }
    td:first-child, th:first-child {
        text-wrap: unset;
    }
    #prenota {
        width: 100%;
        margin-top: 24px;
    }
    .under_calendar > .col {
        flex-basis: 100%;
        max-width: 100%;
    }
    .under_calendar input[type=email] {
        height: 36px;
        font-size: 2rem;
    }



}