@media (max-width:600px) {
  .qh-widget { --qh-menu-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m9 5 7 7-7 7'/%3E%3C/svg%3E"); }
  .qh-widget .qh-mobile-drawer-close { display:none !important; }
  .qh-widget .qh-mobile-menu-toggle {
    border:1px solid #c9d2d9 !important;
    background:transparent !important;
    cursor:pointer;
  }
  .qh-widget.is-mobile-menu-open .qh-mobile-menu-toggle {
    border-color:#c9d2d9 !important;
    background:#c9d2d9 !important;
  }
  .qh-widget .qh-trigger > .qh-icon { display:inline-flex !important; visibility:visible !important; opacity:1 !important; }
  .qh-widget .qh-trigger > span:not(.qh-circle) { display:none; }
  .qh-widget .qh-trigger > .qh-icon { display:inline-flex !important; }
  .qh-widget.is-mobile-menu-open .qh-menu,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary { overflow:visible !important; }
  .qh-widget.is-mobile-menu-open .qh-menu,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary { width:100vw !important; display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:14px 4px !important; padding:24px 14px !important; }
  .qh-widget.is-mobile-menu-open .qh-menu,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary { position:relative !important; top:auto !important; right:auto !important; bottom:auto !important; left:50% !important; order:3 !important; flex:0 0 100vw !important; margin:8px 0 0 -50vw !important; background:#c9d2d9 !important; }
  .qh-widget.is-mobile-menu-open .qh-bar { min-height:0 !important; height:auto !important; overflow:visible !important; }
  .qh-widget.is-mobile-menu-open .qh-nav { height:auto !important; min-height:124px !important; align-content:flex-start !important; overflow:visible !important; }
  .qh-widget.is-mobile-menu-open .qh-menu-item,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li { width:100% !important; min-width:0 !important; }
  .qh-widget.is-mobile-menu-open .qh-menu-item,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li a { width:100% !important; white-space:nowrap !important; overflow:visible !important; word-break:keep-all !important; padding-left:16px !important; padding-right:16px !important; }
  .qh-widget.is-mobile-menu-open .qh-menu-item,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li a { min-height:46px !important; height:46px !important; }
  .qh-widget .qh-utility-icons { display:contents !important; }
  .qh-widget .qh-search-trigger { display:none !important; }
  .qh-widget .qh-mobile-location-toggle,
  .qh-widget .qh-mobile-search-toggle { display:grid !important; }
  .qh-widget.is-location-drawer-open::before { content:"";position:fixed;z-index:9997;inset:0;background:var(--qh-mobile-overlay);animation:qh-overlay-in .5s ease both; }
  .qh-widget.is-location-drawer-open .qh-mobile-location-drawer { transform:translateX(0) !important; }
  .qh-widget.is-mobile-menu-open .qh-wp-menu-primary { display:none !important; }
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary { display:grid !important; }
}

@media (max-width:600px) {
  .qh-widget .qh-panel,
  .qh-widget .qh-panel.is-open,
  .qh-widget .qh-mobile-location-drawer {
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    width:var(--qh-mobile-panel-width,60vw) !important;
    max-width:var(--qh-mobile-panel-width,60vw) !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow:visible !important;
    border-radius:0 !important;
    background:var(--qh-panel-bg,#99a9b5) !important;
  }
  .qh-widget .qh-panel > .qh-inner {
    width:100% !important;
    height:100% !important;
    margin:0 !important;
    padding:38px 10px 70px !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  .qh-widget .qh-panel > .qh-close,
  .qh-widget .qh-mobile-location-drawer > .qh-close {
    position:absolute !important;
    z-index:10002 !important;
    top:24px !important;
    right:auto !important;
    bottom:auto !important;
    left:100% !important;
    display:none !important;
    width:38px !important;
    min-width:38px !important;
    height:60px !important;
    margin:0 !important;
    padding:0 !important;
    place-items:center !important;
    overflow:visible !important;
    transform:none !important;
    border:0 !important;
    border-radius:0 32px 32px 0 !important;
    background:var(--qh-panel-bg,#99a9b5) !important;
    color:#fff !important;
    box-shadow:none !important;
  }
  .qh-widget .qh-panel.is-open > .qh-close,
  .qh-widget.is-location-drawer-open .qh-mobile-location-drawer > .qh-mobile-location-close {
    display:grid !important;
  }
  .qh-widget .qh-panel > .qh-close:hover,
  .qh-widget .qh-panel > .qh-close:focus-visible,
  .qh-widget .qh-mobile-location-drawer > .qh-close:hover,
  .qh-widget .qh-mobile-location-drawer > .qh-close:focus-visible {
    color:#fff !important;
    transform:none !important;
    outline:0 !important;
  }
  .qh-widget .qh-panel > .qh-close .qh-icon,
  .qh-widget .qh-mobile-location-drawer > .qh-close .qh-icon {
    width:22px !important;
    height:22px !important;
    margin:0 !important;
    transform:none !important;
  }
  .qh-widget .qh-mobile-location-drawer {
    padding:40px 10px 70px !important;
  }
}

/* Give division names room while keeping the drawer close button on screen. */
@media (max-width:600px) {
  .qh-widget .qh-panel.qh-panel--sites {
    width:max(var(--qh-mobile-panel-width,60vw),340px) !important;
    max-width:calc(100vw - 48px) !important;
  }
  .qh-widget .qh-panel--sites .qh-site-grid {
    grid-template-columns:minmax(0,1fr);
  }
  .qh-widget .qh-panel--sites .qh-site-link {
    padding-left:16px;
    padding-right:16px;
    gap:12px;
    white-space:nowrap;
  }
  .qh-widget .qh-panel--sites .qh-site-link > span:first-child {
    flex-shrink:0;
  }
}

/* Sample-cart state shared with the Sample Order widget. */
.qh-widget .qh-cart-trigger {
  display:flex;
  padding:0;
  align-items:center;
  justify-content:center;
  gap:0;
  text-decoration:none;
  overflow:hidden;
  transition:width .25s ease,background-color .2s ease,color .2s ease,border-color .2s ease;
}
.qh-widget .qh-cart-count {
  display:none;
  min-width:16px;
  margin-left:6px;
  padding-left:0;
  border-left:0;
  color:inherit;
  font-size:16px;
  font-weight:400;
  line-height:24px;
  text-align:center;
}
.qh-widget .qh-cart-trigger.has-items {
  width:76px;
  padding:0 11px;
  border-color:transparent;
  border-radius:999px;
  color:var(--qh-cart-filled-color,#fff) !important;
  background:var(--qh-cart-filled-bg,#99a9b5);
}
.qh-widget .qh-cart-trigger.has-items:hover,
.qh-widget .qh-cart-trigger.has-items:focus-visible {
  border-color:transparent;
  color:var(--qh-cart-filled-color,#fff) !important;
  background:var(--qh-cart-filled-hover-bg,#0078c9);
}
.qh-widget .qh-cart-trigger.has-items .qh-cart-count { display:block; }
.qh-widget .qh-cart-active-icon { display:none; }
.qh-widget .qh-cart-trigger.has-items .qh-cart-default-icon { display:none !important; }
.qh-widget .qh-cart-trigger.has-items .qh-cart-active-icon { display:inline-flex !important;flex:0 0 25px;width:25px;height:25px; }
.qh-widget .qh-cart-trigger.has-items .qh-cart-active-icon svg { stroke-width:2.4; }

@media (min-width:601px) {
  .qh-widget .qh-cart-trigger.has-items {
    width:68px !important;
    min-width:68px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 8px !important;
  }
  .qh-widget .qh-cart-trigger.has-items .qh-cart-active-icon {
    width:22px !important;
    height:22px !important;
    flex-basis:22px !important;
  }
  .qh-widget .qh-cart-trigger.has-items .qh-cart-count {
    min-width:14px;
    margin-left:4px;
    font-size:14px;
    line-height:20px;
  }
}

@media (max-width:600px) {
  .qh-widget .qh-cart-trigger.has-items {
    width:76px !important;
    min-width:76px !important;
    padding:0 11px !important;
    border-color:transparent !important;
    border-radius:999px !important;
    color:var(--qh-cart-filled-color,#fff) !important;
    background:var(--qh-cart-filled-bg,#99a9b5) !important;
  }
  .qh-widget .qh-cart-trigger.has-items:hover,
  .qh-widget .qh-cart-trigger.has-items:focus-visible {
    background:var(--qh-cart-filled-hover-bg,var(--qh-accent)) !important;
  }
}

@media (max-width:600px) {
  /* Closed header: no menu placeholder or menu background is rendered. */
  .qh-widget:not(.is-mobile-menu-open) .qh-menu,
  .qh-widget:not(.is-mobile-menu-open) .qh-wp-menu-secondary { display:none !important; }

  /* Keep the closed header geometry while the second-level menu occupies
     normal document flow below it. */
  .qh-widget.is-mobile-menu-open .qh-bar { height:auto !important; min-height:0 !important; overflow:visible !important; }
  .qh-widget.is-mobile-menu-open .qh-nav { height:auto !important; min-height:124px !important; overflow:visible !important; }
  .qh-widget .qh-logo,
  .qh-widget.is-mobile-menu-open .qh-logo { top:68px !important; bottom:auto !important; transform:none !important; }
  .qh-widget.is-mobile-menu-open .qh-mobile-menu-toggle { top:86px !important; bottom:auto !important; }
  .qh-widget.is-mobile-menu-open .qh-menu,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary {
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    order:3 !important;
    flex:0 0 calc(100% + 28px) !important;
    width:calc(100% + 28px) !important;
    margin:70px -14px 0 !important;
    padding:24px 14px 26px !important;
    background:#c9d2d9 !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:18px 2px !important;
    overflow:hidden !important;
  }
  .qh-widget.is-mobile-menu-open .qh-menu-item,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li a {
    position:relative;
    min-height:46px !important;
    height:46px !important;
    padding:10px 42px 10px 20px !important;
    overflow:hidden !important;
    border:3px solid transparent !important;
    border-radius:30px !important;
    background:#fff !important;
    white-space:nowrap !important;
  }
  .qh-widget.is-mobile-menu-open .qh-menu-item:hover,
  .qh-widget.is-mobile-menu-open .qh-menu-item:focus-visible,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li a:hover,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li a:focus-visible,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary .current-menu-item > a {
    border-color:var(--qh-accent) !important;
    color:var(--qh-accent) !important;
  }

  /* Uploaded SVG is used as a colour-following mask for every menu arrow. */
  .qh-widget.is-mobile-menu-open .qh-menu-item::after,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li a::after,
  .qh-widget .qh-mobile-location-drawer nav a::after {
    content:"" !important;
    display:block;
    width:18px;
    height:18px;
    flex:0 0 18px;
    background:currentColor;
    -webkit-mask:var(--qh-menu-arrow) center/contain no-repeat;
    mask:var(--qh-menu-arrow) center/contain no-repeat;
  }
  .qh-widget.is-mobile-menu-open .qh-menu-item::after,
  .qh-widget.is-mobile-menu-open .qh-wp-menu-secondary li a::after {
    position:absolute;
    top:50%;
    right:18px;
    transform:translateY(-50%);
  }

  /* Location icon alone opens the first-level-menu drawer. */
  .qh-widget .qh-mobile-location-drawer nav { gap:14px !important; }
  .qh-widget .qh-mobile-location-drawer nav a {
    height:46px !important;
    min-height:46px !important;
    padding:0 22px !important;
  }
}
