/* Flight controls and autocomplete popups; loaded after site.css. */
.ui-menu.flight-suggestions li div.ui-state-active {
    outline: 2px solid #ffffff !important;
    outline-offset: -4px;
    background: #273f4b;
    border-color: #273f4b;
    color: #ffffff;
}

@media (forced-colors: active) {
    .ui-menu.flight-suggestions li div.ui-state-active {
        outline-color: HighlightText !important;
        background: Highlight;
        color: HighlightText;
        forced-color-adjust: none;
    }
}

#fly-form .selectbox .selecbox-container .selectbox-label {
    overflow: visible;
}

#fly-form .selectbox .selecbox-container .selectbox-label h6 {
    min-width: 0;
}

/* Paint the production icons on the input so its white background cannot
   cover them. Existing aria-hidden markup stays decorative. */
#fly-form .selectbox .selectbox-label > i {
    visibility: hidden;
    flex-shrink: 0;
    pointer-events: none;
}

#fly-form .selectbox input.whereFrom,
#fly-form .selectbox input.whereTo {
    box-sizing: border-box;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 30px center;
    font-weight: 400;
    transition: none;
}

#fly-form .selectbox input.whereFrom {
    background-image: url("../images/form/where-form.svg");
    background-size: 41px 24px;
}

#fly-form .selectbox input.whereTo {
    background-image: url("../images/form/where-to.svg");
    background-size: 40px 35px;
}

/* Production has only the native picker affordance, not a second icon. */
#fly-form .selectbox input[type="date"] {
    box-sizing: border-box;
    position: static;
    width: 200px;
    max-width: calc(100% - 18px);
    min-width: 0;
    height: 82px;
    padding: 0;
    margin: 0;
    border: 0;
    background: #fff;
    color: #000;
    font-family: "Cabin", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 48px;
    transition: none;
}

#fly-form .selectbox .selectbox-label:has(input[type="date"]) h6 {
    flex: 1;
}

#fly-form .selectbox input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-width: 0;
}

#fly-form .selectbox .passanger input[type="number"] {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    width: calc(100% - 140px);
    height: 82px;
    padding: 0 15px 0 95px;
    margin: 0;
    border: 0;
    background: #fff;
    color: #000;
    font-family: "Cabin", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 48px;
    transition: none;
}

#fly-form .selectbox .selectbox-label.passanger span {
    flex: 0 0 auto;
    margin: 0 52px;
}

.ui-menu.flight-suggestions {
    box-sizing: border-box;
    margin: 0 !important;
    max-width: calc(100vw - 16px);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
}

.ui-menu.flight-suggestions li {
    padding: 0 12px !important;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 980px) {
    #fly-form .selectbox input.whereFrom,
    #fly-form .selectbox input.whereTo {
        background-position: 10px center;
    }
    #fly-form .selectbox .passanger input[type="number"] {
        padding-left: 50px;
    }
}

@media screen and (max-width: 480px) {
    #fly-form .selectbox input[type="date"],
    #fly-form .selectbox .passanger input[type="number"] {
        height: 60px;
        font-size: 16px;
    }
    #fly-form .selectbox input[type="date"] {
        width: 200px;
    }
    #fly-form .selectbox .passanger input[type="number"] {
        padding: 0 20px;
    }
    #fly-form .selectbox .selectbox-label.passanger span {
        margin: 0 36px;
    }
}

@media screen and (min-width: 981px) and (max-width: 1240px) {
    #fly-form .selectbox .passanger input[type="number"] { padding-left: 24px; }
    #fly-form .selectbox .selectbox-label.passanger span,
    #fly-form:lang(en) .selectbox .selectbox-label.passanger span { margin-left: 24px; margin-right: 24px; }
}

#fly-form:lang(en) .selectbox .selectbox-label.passanger span {
    margin-left: 36px;
    margin-right: 36px;
}
