/* GoWatch TEST07 : recherche mobile du header 5 uniquement. */
/* Additional controls are never visible in the desktop header. */
.airkit_header-style5 .gw-h5-search-heading,
.airkit_header-style5 .gw-h5-search-close { display: none; }
@media only screen and (max-width: 768px) {
  .airkit_header-style5 .searchbox.style-input .search-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #f2f5f8;
    color: #172635 !important;
    font-size: 21px;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
  }
  .airkit_header-style5 .searchbox.style-input .search-trigger[aria-expanded="true"] {
    background: var(--gw-h5-search-accent, #D50022);
    border-color: var(--gw-h5-search-accent, #D50022);
    color: #fff !important;
  }
  .airkit_header-style5 .searchbox.style-input .search-trigger:focus-visible,
  .airkit_header-style5 .gw-h5-search-close:focus-visible {
    outline: 2px solid var(--gw-h5-search-accent, #D50022);
    outline-offset: 3px;
  }
  /* Replace GoWatch's old fixed 114px / 56px top offsets with the real header bottom. */
  .airkit_header-style5 .searchbox.style-input .hidden-form-search,
  .airkit_header-style5.fixed .searchbox.style-input .hidden-form-search {
    position: fixed !important;
    box-sizing: border-box;
    top: var(--gw-h5-search-top, 105px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: 560px;
    margin: 0 auto;
    padding: 14px !important;
    background: var(--gw-h5-search-bg, #fff);
    color: var(--gw-h5-search-text, #172635);
    border: 1px solid #d7e0e8;
    border-top: 3px solid var(--gw-h5-search-accent, #D50022);
    border-radius: 13px;
    box-shadow: 0 14px 36px rgba(13, 29, 43, .23);
    text-align: left;
    z-index: 100005 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .airkit_header-style5 .gw-h5-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding-right: 40px;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--gw-h5-search-text, #172635);
  }
  .airkit_header-style5 .gw-h5-search-close {
    position: absolute;
    right: 11px;
    top: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #edf1f5;
    color: var(--gw-h5-search-text, #172635);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search .input-group {
    position: relative;
    display: block;
    z-index: 1;
    margin: 0;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search input[type="text"] {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    height: 50px !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 53px 0 14px !important;
    border: 1px solid #bdc9d4 !important;
    border-radius: 9px;
    background: #f5f7fa !important;
    color: var(--gw-h5-search-text, #172635) !important;
    font-size: 16px !important;
    text-indent: 0;
    opacity: 1 !important;
    -webkit-appearance: none;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search input[type="text"]::placeholder {
    color: #526477;
    opacity: 1;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search input[type="text"]:focus {
    border-color: var(--gw-h5-search-accent, #D50022) !important;
    box-shadow: 0 0 0 2px rgba(213,0,34,.13) !important;
    outline: none;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search .input-group-btn {
    position: absolute;
    left: auto;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 50px;
    height: 48px;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search .searchbutton {
    width: 49px;
    height: 48px !important;
    margin: 0;
    padding: 0 !important;
    background: transparent;
    color: var(--gw-h5-search-text, #172635);
    border: 0;
    border-radius: 9px;
    font-size: 20px;
    cursor: pointer;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search .ajax-loader { display: none; }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search .ajax-live-results {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 9px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--gw-h5-search-bg, #fff);
    box-shadow: none;
    max-height: min(40dvh, 330px);
    overflow-y: auto;
    box-sizing: border-box;
    display: none;
  }
  .airkit_header-style5 .searchbox.style-input .hidden-form-search .ajax-live-results.visible {
    display: block;
    visibility: visible;
    opacity: 1;
  }
}
@media only screen and (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .airkit_header-style5 .searchbox.style-input .hidden-form-search { transition: none; }
}
