/*
    Storefront phone layout. Screens wider than 1169px keep the desktop menu.
    html font-size on this site is 10px, so 1rem = 10px.
*/

body.um-nav-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Close is for the phone menu. The desktop menu dismisses on its own. */
.um-nav-close {
  display: none;
}

/* ----- Header: stop the top links and the icon row from widening the page ----- */

@media only screen and (max-width: 1169px) {
  .Header.cd-main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    padding: 10px 12px 12px;
  }

  .Header .container-fluid {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .Header .container-fluid .row {
    margin-left: 0;
    margin-right: 0;
  }

  #top-links.text-nowrap {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  #top-links a {
    display: inline-block;
    padding: 0.35em 0.55em;
    font-size: 12px;
  }

  .Header-logo {
    float: none;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 0;
  }

  .Header-logo svg {
    width: 168px;
    height: 32px;
  }

  .Header-actions {
    float: none;
    width: auto;
    margin: 0;
  }

  .Header-actions-menu {
    justify-content: flex-end;
  }

  .Header-actions-menu > li {
    margin-left: 2px;
    margin-right: 2px;
  }

  .Header .cd-header-buttons {
    position: static;
    top: auto;
    right: auto;
    display: flex;
    flex: 0 0 auto;
    margin: 0;
  }

  /* The site forces link color with !important, which paints the word
     "Menu" on top of the hamburger bars. Keep the word for screen readers. */
  .Header a.cd-nav-trigger,
  .Header a.cd-nav-trigger:hover,
  .Header a.cd-nav-trigger:focus,
  .Header a.cd-nav-trigger:active {
    width: 44px;
    height: 44px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    color: transparent !important;
  }

  .Header .clearfix {
    display: none;
  }

  .Header-search {
    padding: 10px 12px;
    bottom: -46px;
  }

  .cd-main-content iframe,
  .cd-main-content img {
    max-width: 100%;
  }
}

@media only screen and (max-width: 340px) {
  .Header-logo svg {
    width: 112px;
    height: 22px;
  }
}

/* ----- Menu: full-screen panel, readable rows, visible arrows ----- */

@media only screen and (max-width: 1169px) {
  body .cd-main-content.nav-is-visible,
  body .cd-main-header.nav-is-visible,
  body .cd-overlay.is-visible {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
  }

  body .cd-primary-nav {
    width: 100% !important;
    max-width: 100%;
    z-index: 80;
    visibility: hidden;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
  }

  body .cd-primary-nav.nav-is-visible {
    visibility: visible;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  body .cd-primary-nav ul {
    width: 100% !important;
    max-width: 100%;
    z-index: 81;
  }

  body .cd-primary-nav a,
  body .cd-primary-nav ul a {
    height: auto;
    min-height: 48px;
    line-height: 1.35;
    white-space: normal;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 16px;
    color: #ffffff !important;
  }

  body .cd-primary-nav .has-children > a::before,
  body .cd-primary-nav .has-children > a::after,
  body .cd-primary-nav .go-back a::before,
  body .cd-primary-nav .go-back a::after {
    background: #ffffff;
  }

  body .cd-primary-nav .go-back a {
    color: #69c6bc !important;
    font-weight: 700;
  }

  body .cd-primary-nav .see-all a {
    background: #69c6bc;
    color: #191d20 !important;
    font-weight: 700;
    text-align: center;
  }

  body .cd-primary-nav .cd-nav-gallery .cd-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 64px;
    line-height: 1.35;
    padding: 10px 16px 10px 76px;
  }

  body .cd-primary-nav .cd-nav-gallery .cd-nav-item img {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    object-fit: cover;
  }

  body .cd-primary-nav .cd-nav-gallery .cd-nav-item h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .um-nav-close {
    display: block;
    list-style: none;
    margin: 0;
    border-bottom: 1px solid #3a3f40;
  }

  .um-nav-close button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    background: transparent;
    border: 0;
    color: #ffffff;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
  }
}
