/*
 * Mobile compact chrome.
 * Header stays full size until the section menu under it sticks,
 * then the same buttons shrink with the bar. When that menu leaves, the bar grows back.
 * Gated by html.wofdi-mcc.
 */

.mcc-contact,
.mcc-contact-sheet {
  display: none;
}

@media only screen and (max-width: 767px) {
  html.wofdi-mcc .header .header_bottom-line,
  html.wofdi-mcc .la-topnav {
    z-index: 110;
    transition: transform 0.32s ease, padding 0.22s ease;
  }

  html.wofdi-mcc .header {
    transition: padding-top 0.22s ease;
  }

  html.wofdi-mcc .la-topnav-spacer {
    transition: height 0.22s ease;
  }

  html.wofdi-mcc .mcc-contact {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: OpenSansRegular, sans-serif;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  html.wofdi-mcc .mcc-contact__icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  html.wofdi-mcc .mcc-contact__label {
    white-space: nowrap;
  }

  html.wofdi-mcc .mcc-contact-sheet {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 202;
    background: #2f3759;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  html.wofdi-mcc .la-topnav .mcc-contact-sheet {
    background: #1e2440;
  }

  html.wofdi-mcc.is-mcc-contact-open .mcc-contact-sheet,
  html.wofdi-mcc.is-mcc-contact-open .mcc-contact-sheet[hidden] {
    display: block !important;
  }

  html.wofdi-mcc .mcc-contact-sheet__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    color: #fff;
    text-decoration: none;
    font-family: OpenSansRegular, sans-serif;
    font-size: 15px;
    line-height: 1.3;
  }

  html.wofdi-mcc .mcc-contact-sheet__item + .mcc-contact-sheet__item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  html.wofdi-mcc .mcc-contact-sheet__meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }

  html.wofdi-mcc .header .header_bottom-line .container .logo-link,
  html.wofdi-mcc .header .header_bottom-line .container .logo-link .logo,
  html.wofdi-mcc .header .header-contacts_mail > a,
  html.wofdi-mcc .header .header-contacts_mail > a > img,
  html.wofdi-mcc .header .header-mobile-burger img,
  html.wofdi-mcc .la-topnav__bar,
  html.wofdi-mcc .la-topnav__logo,
  html.wofdi-mcc .la-topnav__action,
  html.wofdi-mcc .la-topnav__icon {
    transition: padding 0.22s ease, height 0.22s ease, width 0.22s ease;
  }

  html.wofdi-mcc.is-mcc-compact .header {
    padding-top: var(--mcc-header-h, calc(36px + env(safe-area-inset-top, 0px)));
  }

  html.wofdi-mcc.is-mcc-compact .header .header_bottom-line .container .logo-link {
    padding: 10px 12px !important;
  }

  html.wofdi-mcc.is-mcc-compact .header .header_bottom-line .container .logo-link .logo {
    height: 16px !important;
  }

  html.wofdi-mcc.is-mcc-compact .header .header-contacts_mail > a {
    padding: 10px 8px !important;
  }

  html.wofdi-mcc.is-mcc-compact .header .header-contacts_mail img,
  html.wofdi-mcc.is-mcc-compact .header .header-mobile-burger img {
    height: 16px !important;
    width: auto !important;
    max-height: 16px !important;
  }

  html.wofdi-mcc.is-mcc-compact .header .header_support-phone-list-mobile,
  html.wofdi-mcc.is-mcc-compact .header .header-menu {
    top: var(--mcc-header-h, 36px) !important;
  }

  html.wofdi-mcc.is-mcc-compact .la-topnav__bar {
    padding: 8px 12px;
  }

  html.wofdi-mcc.is-mcc-compact .la-topnav__logo {
    height: 18px;
  }

  html.wofdi-mcc.is-mcc-compact .la-topnav__action {
    width: 28px;
    height: 28px;
  }

  html.wofdi-mcc.is-mcc-compact .la-topnav__icon {
    width: 16px;
    height: 16px;
  }

  html.wofdi-mcc.is-mcc-compact .la-topnav-spacer {
    height: var(--mcc-header-h, calc(40px + env(safe-area-inset-top, 0px)));
  }

  html.wofdi-mcc .special-links_block.mobile.mcc-section-pinned {
    position: fixed !important;
    top: var(--mcc-header-h, 44px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 89;
    margin: 0;
    background: #2f3759;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.32s ease;
  }

  html.wofdi-mcc .form-container,
  html.wofdi-mcc .white-content,
  html.wofdi-mcc .tours-block,
  html.wofdi-mcc .tours-left,
  html.wofdi-mcc .itinerary-block.wofdi-widget {
    overflow: visible;
  }

  html.wofdi-mcc .wofdi-widget .tabs__nav {
    position: sticky;
    top: var(--mcc-section-top, var(--mcc-header-h, 60px));
    z-index: 89;
  }

  html.wofdi-mcc.is-mcc-section-off .destination-content-tabs.special-links_block,
  html.wofdi-mcc.is-mcc-section-off .wofdi-widget .tabs__nav,
  html.wofdi-mcc.is-mcc-section-off .special-links_block.mobile.mcc-section-pinned {
    position: relative !important;
    top: auto !important;
    transform: none;
    box-shadow: none;
  }

  html.wofdi-mcc .group-select--mobile-bar .sticky-team-bar.is-fixed,
  html.wofdi-mcc .group-select.group-select--mobile-bar .sticky-team-bar.is-fixed {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    box-shadow: none;
  }

  html.wofdi-mcc .group-select--mobile-bar {
    min-height: 0 !important;
  }

  html.wofdi-mcc.is-mcc-released .destination-content-tabs.special-links_block,
  html.wofdi-mcc.is-mcc-released .wofdi-widget .tabs__nav {
    position: relative !important;
    top: auto !important;
    transform: none;
    box-shadow: none;
  }

  html.wofdi-mcc .special-links_block.mobile.mcc-section-inflow {
    position: relative !important;
    top: auto !important;
    left: auto;
    right: auto;
    width: 100%;
    z-index: 1;
    margin: 12px 0 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(30, 36, 64, 0.08);
  }

  html.wofdi-mcc .special-links_block.mobile.mcc-section-inflow .special-link,
  html.wofdi-mcc .special-links_block.mobile.mcc-section-inflow .special-link.active {
    color: #1e2440;
    background: transparent;
  }

  html.wofdi-mcc .special-links_block.mobile.mcc-section-inflow .special-link.active {
    color: #fff;
    background: #db752f;
  }

  html.wofdi-mcc.is-mcc-released .mcc-contact,
  html.wofdi-mcc.is-mcc-released .mcc-contact-sheet {
    display: none !important;
  }
}
