@media screen {
  [html-header-search-has-query] body {
    overflow: hidden;
  }
  /* MAIN NAV TRIGGER
  ------------------------------ */
  .menu-item-search-dropdown {
    padding-left: 20px !important;
    cursor: pointer;
    background-repeat: no-repeat;
  }
  .menu-item-search-dropdown:focus {
    outline: none;
    text-decoration: underline;
  }
  /* MAIN NAV DROPDOWN
  ------------------------------ */
  /* WRAP */
  /* Note: The z-index has to be so high to appear over the mobile hamburger menu: <aside class="desktop-hide aside_open ..."> */
  .p-search {
    z-index: 3000000011;
    position: fixed;
    top: 0;
    left: 0;
    padding: 47px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(74, 74, 74, 0.05);
    box-sizing: border-box;
    transform: translateY(-7px);
    transition: transform 0.5s;
  }
  [html-header-search-active] .p-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .p-search-wrap {
    position: relative;
    width: 100%;
    max-width: 558px;
  }
  /* INPUT */
  .p-search-input-wrap {
    position: relative;
  }
  .p-search .icon-search {
    position: absolute;
    top: 50%;
    left: 1px;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .p-search-input {
    padding: 0 1.625rem 0 1.5625rem;
    width: 100%;
    height: 50px;
    color: #313538;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0);
    border-bottom-color: #2AD39B;
  }
  .p-search-input::-webkit-input-placeholder {
    opacity: 1;
    color: #ababab;
    font-size: 1rem;
    transition: opacity 0.15s ease-out;
  }
  .p-search-input:focus::-webkit-input-placeholder {
    opacity: 0.7;
  }
  .p-search-input:-moz-placeholder, ::-moz-placeholder {
    color: #ababab;
    font-size: 1rem;
  }
  .p-search-input:-ms-input-placeholder {
    color: #ababab;
    font-size: 1rem;
  }
  .p-search-input:focus::-ms-input-placeholder {
    opacity: 0.7;
    color: #ababab;
    font-size: 1rem;
  }
  .p-search-input:focus {
    outline: none;
  }
  [ie] .p-search-input::-ms-clear {
    display: none;
    width: 0;
    height: 0;
  }
  [ie] .p-search-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
  }
  /* CLOSE */
  .p-search-close {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 0;
    cursor: pointer;
    border: 0;
    background: none;
    transform: translateY(-50%);
  }
  .p-search-close > * {
    pointer-events: none;
  }
  .p-search-close:focus {
    outline: none;
  }
  .p-search-close:focus path {
    fill: #2AD39B;
  }
  /* MASK */
  .p-search-mask {
    z-index: 3000000010;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    background: rgba(49, 53, 56, 0);
    transition: background-color 0.5s;
  }
  [html-header-search-active] .p-search-mask {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(49, 53, 56, 0.5);
  }
  /* AUTO-COMPLETE */
  .header-search-autocomplete {
    padding: 12px 0 14px;
    display: none;
    border-bottom: 1px solid #eee;
  }
  .header-search-autocomplete.active {
    display: block;
  }
  .header-search-autocomplete span {
    height: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.15s ease-out;
  }
  .header-search-autocomplete span:hover {
    background-color: rgba(114, 114, 114, 0.08);
  }
  /* RESULTS */
  .search-nav-results {
    opacity: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
  }
  /* Remove this when header 'Quick Links' are ready to be shown again */
  /* (You'll also need to enable the widget in the search.js file) */
  .search-nav-results {
    display: none;
  }
  [html-header-search-has-query] .search-nav-results {
    margin-top: 20px;
    opacity: 1;
    height: auto;
    visibility: visible;
    pointer-events: auto;
  }
  .search-nav-results-title {
    margin-bottom: 0.4375rem;
    display: block;
    color: #2AD39B;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  /* RESULT */
  a.search-result-nav {
    padding: 12px 10px;
    width: calc(100% + 10px);
    display: block;
    color: #313538;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 2px;
    transform: translateX(-10px);
    transition: background-color 0.3s;
  }
  .search-result-nav:hover {
    text-decoration: none;
    background-color: #f5f5f5;
  }
  .search-result-nav > strong {
    margin-bottom: 5px;
    display: block;
    color: #8f8f8f;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .search-result-nav mark {
    color: #313538;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0);
  }
  .search-nav-results-hits-header .ais-Hits--empty {
    margin-bottom: 12px;
    display: block;
  }
  .search-nav-results-hits-cta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #eee;
  }
  .search-nav-results-hits-all {
    margin-bottom: -35px;
    padding: 22px 0;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    cursor: pointer;
    color: #727272 !important;
    font-weight: 600;
    letter-spacing: 0.08em;
  }
  .search-nav-results-hits-all svg {
    margin-left: 10px;
    transform: translate(0, -2px);
    transition: transform 0.2s ease-out;
  }
  [lang=zh-hans] .search-nav-results-hits-all svg {
    transform: translate(0, -1px);
  }
  .search-nav-results-hits-all:hover svg {
    transform: translate(3px, -2px);
  }
  [lang=zh-hans] .search-nav-results-hits-all:hover svg {
    transform: translate(3px, -1px);
  }
  .search-result-nav .hit-event-date {
    display: block;
  }
}
/* HEADER DESKTOP (Shows full nav - not mobile nav) */
@media screen and (min-width: 1200px) {
  /* 'Search' nav link (in menu) */
  .menu--main .menu-item:focus {
    outline: none;
    text-decoration: underline;
    border: 0;
  }
  .menu-item-search-dropdown {
    background-image: url("/themes/custom/twist_barrio/plugins/search/img/search-dark.svg");
    background-position: 0 0;
  }
  .dark-header .menu-item-search-dropdown,
  .reverse .menu-item-search-dropdown {
    background-image: url("/themes/custom/twist_barrio/plugins/search/img/search-light.svg");
  }
  /* Chinese site */
  html[lang=zh-hans] .menu-item-search-dropdown {
    background-position: 0 4px;
  }
  /* 'Search' nav link (out of menu, mobile only) */
  .p-search-mobile-trigger {
    display: none;
  }
}
/* MEDIA QUERIES (RANGE)
--------------------------- */
@media screen and (min-width: 1200px) and (max-width: 1440px) {
  #quote, #quote-menu {
    padding: 8px 10px;
  }
  /* Hide the 'Search' text in the header search link to ensure all items appear on one horizontal line */
  .menu-item-search-dropdown {
    width: 12px;
    display: block;
    overflow: hidden;
    padding: 0 0 0 12px !important;
    transform: translate(-3px, 7px);
  }
  [lang=zh-hans] .menu-item-search-dropdown {
    transform: translate(-3px, 4px);
  }
}
/* HEADER MOBILE (Shows hamburger nav - not destop nav) */
@media screen and (max-width: 1199px) {
  /* 'Search' nav link (in menu) */
  .menu-item-search-dropdown {
    background-image: url("/themes/custom/twist_barrio/plugins/search/img/search-dark.svg");
    background-position: 0 2px;
  }
  [ie] .menu-item-search-dropdown {
    background-position: 0 3px;
  }
  /* 'Search' nav link (out of menu, mobile only) */
  .p-search-mobile-trigger {
    z-index: 1;
    position: fixed;
    top: 34px;
    right: 100px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: top 0.3s;
  }
  .p-search-mobile-trigger span {
    width: 30px;
    height: 30px;
    background: url("/themes/custom/twist_barrio/plugins/search/img/search-dark.svg") no-repeat 50% 50%;
    transform: scale(1.3);
  }
  .dark-header .p-search-mobile-trigger {
    top: 24px;
  }
  .dark-header .p-search-mobile-trigger span {
    background-image: url("/themes/custom/twist_barrio/plugins/search/img/search-light.svg");
  }
  /* MAIN NAV DROPDOWN
  ------------------------------ */
  .p-search {
    position: fixed;
  }
}
@media screen and (max-width: 1110px) {
  /* 'Search' nav link (out of menu, mobile only) */
  .p-search-mobile-trigger {
    right: 85px;
  }
}
/* UP TO TABLET: PORTRAIT MAX */
@media screen and (max-width: 1023px) {
  /* 'Search' nav link (out of menu, mobile only) */
  .p-search-mobile-trigger {
    right: 80px;
  }
  .search-searchbox {
    margin-top: -24px;
    transform: translateY(24px);
  }
}
@media screen and (max-width: 1007px) {
  /* 'Search' nav link (out of menu, mobile only) */
  .p-search-mobile-trigger {
    top: 25px;
    right: 70px;
  }
  .dark-header .p-search-mobile-trigger {
    top: 25px;
  }
}
@media screen and (max-width: 767px) {
  /* 'Search' nav link (out of menu, mobile only) */
  .p-search-mobile-trigger {
    top: 15px;
    right: 65px;
  }
  .dark-header .p-search-mobile-trigger {
    top: 16px;
  }
  /* HEADER INPUT */
  .p-search {
    padding: 35px 1.25rem 40px;
    min-height: 144px;
  }
  /* HEADER RESULTS */
  .search-results-header h1 {
    font-size: 1.5rem;
  }
  .hit-event-date {
    margin-top: 4px;
    font-size: 0.75rem;
  }
  /* AUTO_COMPLETE */
  .search-autocomplete {
    top: 88px;
    max-width: 558px;
    transform: translateX(-50%);
  }
}