@font-face {
    font-family: comworks-availability-form;
    src: url(../assets/icons.woff2) format('woff2');
}
.availability_form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.availability_form .main-field {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    min-width: 200px;
    margin: 5px;
    padding: 15px;
    font-size: inherit;
    line-height: 1;
    border: 0;
    border-radius: 0;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.elementor-widget-comworks-availability-form form.availability_form input.main-field,
.elementor-widget-html form.availability_form input.main-field {
    font-family: comworks-availability-form, var(--e-global-typography-primary-font-family), sans-serif;
}
.availability_form select::-ms-expand {
    display: none; /* Hide IE/Edge Select Arrow */
}
.availability_form select option {
    color: #000; /* Fix for Windows 10 native dropdown control */
}
.availability_form select.main-field {
    background-repeat: no-repeat;
    background-position: right;
    padding-right: 50px;
    background-image:url("data:image/svg+xml;utf8,<svg viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg'><path d='M17.8 14.8a.4.4 0 0 0-.6 0l-8.3 8.4L.7 15a.4.4 0 0 0-.6.6l8.5 8.7a.4.4 0 0 0 .6 0l8.6-8.8a.4.4 0 0 0 0-.6' fill='rgb(40, 50, 58)'/></svg>");
}
.availability_form .flatpickr-wrapper {
    margin: 5px;
    flex: 1;
}
.availability_form .flatpickr-wrapper .calendar {
    margin: 0;
    width: 100%;
}
.availability_form input[type=submit] {
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
}

/* Range */
.range_date_desc {
    margin: 10px 0 5px 0;
    font-size: 0.95em;
}
.range_date_form input.arrive,
.range_date_form input.depart {
    display: none;
}
@media (min-width: 500px) {
    .range_date_form .flatpickr-wrapper {
        min-width: 370px;
    }
}
.availability_form:not(.range_date_form) input.range_date {
    display: none;
}

/* Workaround to show placeholder on input[type=date] (mobile flatpickr) */
.availability_form input[type=date]:not(:focus):before {
    content: attr(placeholder) !important;
    position: absolute;
    left: 15px;
    color: inherit;
    white-space: nowrap;
}
.availability_form input[type=date] {
    position: relative;
    padding-left: 110px !important;
    min-height: 45px;
}
/*
.availability_form input[type=date]:focus:before,
.availability_form input[type=date]:valid:before {
    content: '' !important;
}
*/

/* Nights */
.main-field.nights {
    display: none;
}
.availability_form.mixed_date_form .main-field.nights {
    display: block;
}
.availability_form.mixed_date_form .main-field.depart,
.availability_form.mixed_date_form > .flatpickr-wrapper + .flatpickr-wrapper {
    display: none;
}
@media (min-width: 1280px) {
    .main-field.nights {
        max-width: 110px;
        min-width: 110px;
    }
}

/* Adults/Children */
@media (min-width: 600px) {
    .main-field.adults,
    .main-field.kids {
        max-width: 150px;
        min-width: 150px;
    }
}

/* Vertical Form */
.availability_form.vertical .main-field,
.availability_form.vertical .flatpickr-wrapper {
    min-width: 100%;
}

/* Flatpickr selected day color */
.availability_form {
    --calendar_selected_day_color: #569ff7; /* Fallback */
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    /* Elementor value will be added as var in an inline style on the element */
    background: var(--calendar_selected_day_color, #1bbed3);
    border-color: var(--calendar_selected_day_color, #1bbed3);
}
