/* Sets max width for long elements */
.long {
    width: 100% !important;
    max-width: 600px !important;
}

/* Styles for the flatpickr calendar container */
.fomo-prio-flatpickr .flatpickr-calendar {
    width: 700px;
    max-width: 100%;
    padding: 1rem;
}

/* Centers content inside each day cell */
.fomo-prio-flatpickr .flatpickr-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Custom date text styling */
.fomo-prio-myDateText {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Product type card styling with grid layout */
.fomo-product-type-card {
    width: 250px;
    line-height: 15px;
    position: relative;
    display: grid;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 2px 8px;
    border-radius: 8px;
    grid-template-rows: subgrid;
    grid-row-start: span 2;
    row-gap: 1rem;
    align-content: start;
    border: 0px solid rgb(68, 68, 68);
}

/* Wrapper for included items list */
.fomo-includes-wrapper {
    margin-top: 15px;
}

/* Styling for included items list elements */
.fomo-includes-wrapper li {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    font-style: normal;
    font-feature-settings: normal;
    letter-spacing: 0px;
}

/* Select2 dropdown customization */
.select2-container--default .select2-results>.select2-results__options {
    max-height: 350px !important;
}

/* Select2 results list item styling */
.select2-results li {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgb(240, 240, 240);
}

/* Time dropdown specific styling */
ul#select2-time-dropdown-results {
    padding: 10px;
    box-shadow: 0px 4px 12px 2px #1111111a, 0px 1px 8px 0px #1111110d;
}

/* Remove border from dropdown when above */
span.select2-dropdown.select2-dropdown--above {
    border: none !important;
}

/* Day name styling in calendar */
.fomo-day-name {
    font-size: 13px;
    color: rgb(102, 102, 102);
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 12px;
}

/* Month name styling in calendar */
.fomo-month-name {
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
    color: rgb(68, 68, 68);
    margin-top: 0.75rem;
    text-align: center;
}

/* More dates link styling */
.more-dates {
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
}

/* Slick slider customization */
.slick-slide {
    margin: 0 0.5rem;
}

.slick-track{
    margin:0px !important;
}

.slick-list {
    margin: 0 -0.5rem;
}

/* Flatpickr day cell styling */
.flatpickr-day {
    font-size: 16px !important;
    font-weight: 500 !important;
    background: #fff !important;
    width: 54px !important;
    height: 54px !important;
    max-width: none !important;
    line-height: 54px !important;
    margin-bottom: 0.85rem !important;
}

/* Selected and hover states for calendar days */
.flatpickr-day.selected,
.flatpickr-day:hover {
    background: #8000FF !important;
    color: #fff;
    border-radius: 8px;
}

/* Calendar container layout */
.flatpickr-innerContainer,
.flatpickr-days {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 3rem !important;
}

/* Day container sizing */
.dayContainer {
    width: 100% !important;
    max-width: none !important;
}

/* Multi-month inline calendar styling */
.flatpickr-calendar.animate.multiMonth.inline {
    width: 100% !important;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
}

/* Month header styling */
.flatpickr-month {
    font-size: 18px;
    height: 50px !important;
    text-align: left !important;
}

/* Months container positioning */
.flatpickr-months {
    margin-left: -50px !important;
}

/* Weekday header styling */
span.flatpickr-weekday {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: rgb(136, 136, 136) !important;
}

/* Remove box shadows from calendar containers */
.flatpickr-calendar,
.dayContainer + .dayContainer {
    box-shadow: none !important;
}

/* Weekdays row styling */
.flatpickr-weekdays {
    padding: 20px 0px;
    gap: 3rem;
    border-bottom: 1px solid rgb(226, 226, 226);
}

/* Primary button styling */
button#check-availability-btn,
button#next-button {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    background-color: #8000FF;
    border-radius: 12px;
    border: 1px solid #8000FF;
    color: #fff;
    transition: background-color 0.3s ease;
}

/* Button hover state */
button#check-availability-btn:hover,
button#next-button:hover {
    background-color: #7300E5;
}

/* Date picker input styling */
.fomo-pick-date {
    overflow: hidden;
    height: 3rem;
    border: 1px solid rgb(226, 226, 226);
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    background-color: #fff;
    width: 100%;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
}

/* Date picker hover effect */
.fomo-pick-date:hover {
    box-shadow: rgb(216, 218, 233) 0px 3px 4px;
}

/* Availability field styling */
#fomo-prio-availability_field2 {
    color: rgb(68, 68, 68);
    font-size: 0.9375rem;
    line-height: 0.9375rem;
    cursor: pointer;
    padding: 15px;
    align-items: center;
    border: 0px;
}

/* Hide product price */
.fomo-product-price {
    display: none !important;
}

/* Reservation summary section */
.reservation-summary {
    padding: 1rem 0;
    border-top: 1px solid rgb(240, 240, 240);
    border-bottom: 1px solid rgb(240, 240, 240);
}

/* Next button width */
#next-button {
    width: 20%;
}

/* Select2 single selection styling */
span.select2-selection.select2-selection--single {
    padding: 10px 16px 8px 8px;
    border-radius: 8px;
    border: 1px solid rgb(226, 226, 226);
    height: 50px;
}

/* Select2 dropdown arrow positioning */
.select2-container .select2-selection--single .select2-selection__arrow {
    width: 42px !important;
    height: 42px !important;
}

/* Select2 highlighted option styling */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgb(243, 233, 255) !important;
    border-radius: 0.25rem !important;
    padding: 0.75rem 0.5rem !important;
    cursor: pointer;
    color: #8000FF !important;
}

/* Current month and year styling in calendar */
.flatpickr-current-month,
input.numInput.cur-year {
    font-size: 21px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

/* Remove border from dropdown below */
span.select2-dropdown.select2-dropdown--below {
    border: 0px !important;
}

/* Current month text size */
span.cur-month {
    font-size: 21px !important;
}

/* Disabled button state */
.btn:disabled {
    opacity: .35 !important;
}

/* Mobile responsive styles */
@media only screen and (max-width: 576px) {
    /* Fixed position check availability button */
    .fomo-check-availability {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        z-index: 1000;
        padding: 1rem;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        margin-bottom: 0 !important;
        text-align: center;
    }

    .fomo-pick-date {
        display: none !important;
    }

    /* Mobile calendar day styling */
    .flatpickr-day {
        font-size: 16px !important;
        font-weight: 600 !important;
        background: #fff !important;
        width: 52px !important;
        height: 52px !important;
        max-width: none !important;
        margin-bottom: 0.85rem !important;
    }

    /* Fixed position reservation summary */
    .reservation-summary {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        z-index: 1000;
        padding: 0.5rem;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .horizontal-dates-con {
        font-size: 14px;
    }

    .more-dates {
        font-size: 12px;
        line-height: 1.05em;
    }

    .fomo-product-price {
        display: block !important;
    }

    #next-button {
        float: right;
    }

    /* Mobile button sizing */
    button#check-availability-btn,
    button#next-button {
        width: 60% !important;
    }

    div#product-types-slider {
        margin-left: -30px;
    }

    .fomo-month-name,
    .fomo-day-name {
        font-size: 12px;
    }

    h5#date-instruction,
    h5#prefer-instruction {
        font-size: 15px;
    }

    /* Mobile calendar header styling */
    .flatpickr-current-month,
    input.numInput.cur-year {
        font-size: 18px !important;
        text-align: center !important;
    }

    .modal-header {
        padding: 15px 10px 0px 15px
    }

    h5#fomoPrioModalLabel {
        font-size: 14px;
        margin-bottom: 0px !important;
    }

    .flatpickr-months {
        margin-left: 0px !important;
    }

    .flatpickr-calendar.inline {
        max-width: 100% !important;
        width: 100% !important;
    }

    select.flatpickr-monthDropdown-months {
        font-weight: 600 !important;
    }
}

.horizontal-dates {
    padding: 0px;
}

/* Large screen modal sizing */
@media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
        max-width: 1000px !important;
    }
}
