/* Match the holiday package search action on the homepage. */
#bp-homepage {
    --home-orange-gradient: linear-gradient(110deg, #ff8112, #ee461e);
    --home-button-fill: var(--home-orange-gradient);
    --home-button-shadow: 0 3px 10px rgba(235, 87, 25, .14);
}

#bp-homepage :where(button, a, summary, input[type="submit"]):is(:hover, :active) {
    --home-button-fill: linear-gradient(110deg, #f5740c, #d93e1b);
    --home-button-shadow: 0 5px 14px rgba(229, 83, 24, .24);
}

#bp-homepage .bp-mobile-home-services {
    background: linear-gradient(125deg, #ffeadb, #fffaf6 55%, #fff0e8);
}

#bp-homepage .bp-mobile-home-services .bp-search-tab-icon {
    background-image: var(--home-orange-gradient);
}

/* Action buttons and the selected option in each group share one treatment. */
#bp-homepage :is(
    .bp-h-signin, .bp-h-circle, .bp-h-menu-toggle, .bp-h-close, .bp-h-wallet,
    .bp-h-extra button, .bp-h-saved-list button, .bp2g-signin, .mnvatoogler,
    .bp-search-tabs .nav-link.active,
    .fs-search, .fs-primary, .fs-outline, .fs-remove, .fs-close,
    .hs-submit, .hs-primary, .hs-outline, .hs-add-mobile, .hs-remove-room,
    .hs-close, .hs-clear, .hs-back, .gs-submit, .gs-primary, .gs-outline,
    .gs-swap, .gs-close, .gs-clear, .gs-back, .ds-submit, .ds-outline,
    .ds-close, .ds-back, .ds-clear, .ds-field-clear,
    .hs-counter button, .gs-stepper button,
    .hs-cal-nav button, .gs-cal-nav button,
    .hs-day.is-selected, .gs-day.is-selected,
    .hd-primary, .hd-outline:not(:where(.hd-offers *)), .hd-experience-cta, .hd-sight-details,
    .hd-sight-save, .hd-offer-copy, .hd-dialog-close, .hd-faq-contact, .hd-read,
    .hd-fare-strip > a, .hd-route-filters button[aria-pressed="true"],
    .btn, input[type="submit"], .tts_top_scroll, .modal .close
):not(:disabled, [aria-disabled="true"], .disabled, :where(.fs-popup *)) {
    background: var(--home-button-fill);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--home-button-shadow);
}

/* Tint the primary gradient with white so secondary controls share its orange hues. */
#bp-homepage .hd-offers :is(.hd-filters button, .hd-outline) {
    --home-control-wash: rgba(255, 255, 255, .94);
    background: linear-gradient(var(--home-control-wash), var(--home-control-wash)), var(--home-orange-gradient);
    color: #593d30;
    border: 1px solid #f2d9cb;
}

#bp-homepage .hd-offers :is(.hd-filters button[aria-pressed="true"], .hd-outline) {
    --home-control-wash: rgba(255, 255, 255, .82);
    color: #90370e;
    border-color: #e9a684;
    box-shadow: none;
}

#bp-homepage .hd-offers :is(.hd-filters button, .hd-outline):hover {
    --home-control-wash: rgba(255, 255, 255, .75);
    border-color: #d88c69;
    color: #873609;
}

#bp-homepage :is(.hd-read, .hd-fare-strip > a) {
    padding-inline: 16px;
    border-radius: 10px;
}

#bp-homepage .hd-read {
    padding-block: 10px;
    text-decoration: none;
}

#bp-homepage .fs-trip.is-selected .fs-radio {
    border-color: currentColor;
}

#bp-homepage .fs-trip.is-selected .fs-radio::after {
    background: currentColor;
}

#bp-homepage :is(.hd-offer-copy strong, .mnvatoogler .navmenu_icon, .modal .close_home_btn) {
    color: inherit;
}

/* Search controls also use external SVGs with colours baked into the file. */
#bp-homepage :is(.fs-primary, .fs-outline, .fs-remove, .hs-outline,
    .hs-add-mobile, .hs-remove-room, .gs-swap, .gs-outline, .ds-outline,
    .fs-search, .hs-submit, .gs-submit, .ds-submit, .hs-close, .hs-clear,
    .hs-back, .gs-close, .gs-clear, .gs-back, .ds-close, .ds-clear,
    .ds-field-clear, .ds-back):not(:disabled) img {
    filter: brightness(0) invert(1);
}
