/* Only scoped to the flights module, no impact on other CiviHelv sections. */
#ch-flight-provider-panel[hidden],#ch-flight-fallback[hidden],#ch-no-live-fares[hidden]{display:none!important}
#ch-flight-provider-panel{border-color:#54ebfa;background:linear-gradient(135deg,#092849,#1c2354 65%,#341548)}
#ch-flight-provider-panel .ch-flight-submit{display:inline-flex;align-items:center;justify-content:center}
#ch-flight-provider-panel .ch-flight-submit:disabled{opacity:.65;cursor:wait}
#ch-flight-provider-panel .ch-flight-embed{max-width:100%;min-height:40px;overflow:visible}
#tpwl-search,#tpwl-tickets{max-width:100%;overflow:visible;scroll-margin-top:28px}
#ch-flight-provider-caption{font-weight:700;color:#cef6ff}
@media(max-width:570px){#tpwl-search,#tpwl-tickets{width:100%;min-width:0}}

/* Flight results stay directly under the original form after ENTER.
   Prevent vertical jumps when White Label mounts or its tickets update. */
#ch-flight-results{scroll-margin-top:16px;min-height:190px;overflow-anchor:none}
#ch-flight-results[hidden]{display:none!important}
#ch-flight-results[aria-busy="true"] #ch-live-note{color:#b4f4ff}
#ch-flight-results #ch-flight-provider-panel{margin:22px 0 8px;border-color:#4bdafa;scroll-margin-top:18px}
#ch-flight-results #ch-flight-provider-panel[hidden]{display:none!important}
#ch-flight-results #ch-providers:empty{display:none}
#ch-flight-results #ch-flight-provider-panel .ch-flight-embed{width:100%;max-width:100%;min-width:0;overflow-x:auto}
#ch-flight-results #tpwl-search,#ch-flight-results #tpwl-tickets{max-width:100%;min-width:0}
@media(max-width:570px){
 #ch-flight-results{min-height:150px;scroll-margin-top:8px}
 #ch-flight-results #ch-flight-provider-panel{padding:14px;margin:15px 0 8px}
 #ch-flight-results #ch-flight-provider-panel .ch-flight-embed{overflow-x:auto}
}

/* Video QA: single results experience, airline fares before optional agencies. */
.ch-flight-results-unified{scroll-margin-top:12px}
.ch-flight-results-unified>.ch-flight-search-summary{color:#d9f5ff;font-weight:750;line-height:1.5;margin:6px 0 16px}
.ch-flight-results-unified #ch-flight-provider-panel{margin:12px 0 16px;max-width:100%}
.ch-flight-results-unified #ch-flight-recent[hidden],.ch-flight-results-unified #ch-flight-alternatives[hidden]{display:none!important}
.ch-flight-results-unified #ch-flight-recent:not([hidden]){margin:14px 0}
.ch-flight-results-unified #ch-flight-alternatives{background:#0a2c4e;border:1px solid #3f9fcc;border-radius:13px;padding:11px 15px;margin-top:17px}
.ch-flight-results-unified #ch-flight-alternatives summary{cursor:pointer;font-weight:800;color:#a8f1ff;padding:7px 0;list-style-position:inside;min-height:35px}
.ch-flight-results-unified #ch-flight-alternatives summary:focus-visible{outline:3px solid #ffe27d;outline-offset:3px}
.ch-flight-results-unified #ch-flight-alternatives #ch-providers{margin-top:12px}
.ch-flight-results-unified #ch-flight-alternatives:not([open]) #ch-providers{display:none!important}
@media(max-width:570px){
.ch-flight-results-unified #ch-flight-provider-panel{margin:8px 0 12px;padding:13px}
.ch-flight-results-unified #ch-flight-alternatives{padding:11px}
.ch-flight-results-unified #ch-flight-alternatives summary{font-size:14px;line-height:1.35}
}

/* Original legal links remain accessible without creating a competing agency screen. */
#ch-flight-fallback .ch-flight-legal-details{margin:18px 0 0;background:#09294c;border:1px solid #337aa5;border-radius:13px;color:#d7ebfa}
#ch-flight-fallback .ch-flight-legal-details summary{padding:14px 15px;min-height:44px;box-sizing:border-box;font:700 14px/1.35 system-ui;cursor:pointer;list-style-position:inside}
#ch-flight-fallback .ch-flight-legal-details summary:focus-visible{outline:3px solid #ffe087;outline-offset:3px}
#ch-flight-fallback .ch-flight-legal-copy{padding:0 15px 15px;font-size:13px;line-height:1.55}
#ch-flight-fallback .ch-flight-legal-copy a{color:#9aebff;text-decoration:underline}
#ch-flight-fallback .ch-flight-legal-copy p{margin:8px 0}
#ch-flight-fallback .ch-flight-legal-details:not([open]) .ch-flight-legal-copy{display:none}
@media(max-width:570px){#ch-flight-fallback .ch-flight-legal-details{margin:12px 0 2px}#ch-flight-fallback .ch-flight-legal-details summary{padding:13px}}
