/* Shop navigation in the existing fixed header. */
.slideout-menu {
  max-width: 100vw;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#masthead .main-logo__row {
  position: relative;
  gap: 0.75rem;
}

.admin-bar #masthead .main-header {
  top: 32px;
}

#masthead .main-logo__icons,
.andante-shop-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.andante-shop-links {
  gap: 0.5rem;
}

.andante-shop-link,
.andante-basket-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.andante-shop-link:hover,
.andante-basket-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.andante-shop-link:focus-visible,
.andante-basket-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.andante-basket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background-color: #fff;
  color: #0d4982;
  font-size: 0.875rem;
  line-height: 1;
}

.andante-basket-link svg {
  flex-shrink: 0;
}

#masthead .main-logo__icons > .slideout-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

.andante-back-to-shop {
  margin: 0 0 1.5rem;
}

.andante-back-to-shop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid #0d4982;
  border-radius: 6px;
  color: #0d4982;
  font-weight: 700;
  text-decoration: none;
}

.andante-back-to-shop a:hover {
  background-color: #e0eaf4;
}

.andante-back-to-shop a:focus-visible {
  outline: 2px solid #0d4982;
  outline-offset: 3px;
}

/* Comfortable native product selectors, including keyboard and touch use. */
.woocommerce.single-product div.product form.cart .variations th,
.woocommerce.single-product div.product form.cart .variations td {
  vertical-align: top;
  text-align: left;
}

.woocommerce.single-product div.product form.cart .variations th {
  padding-top: 0.8rem;
  padding-right: 1rem;
}

.woocommerce.single-product div.product form.cart .variations select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 2.75rem 0.7rem 0.9rem;
  border: 1px solid #8095a8;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230d4982' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  color: #333;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}

.woocommerce.single-product div.product form.cart .variations select:hover {
  border-color: #0d4982;
}

.woocommerce.single-product div.product form.cart .variations select:focus-visible {
  border-color: #0d4982;
  outline: 2px solid #0d4982;
  outline-offset: 2px;
}

.woocommerce.single-product div.product form.cart .reset_variations {
  display: inline-block;
  margin-top: 0.5rem;
}

body.andante-product-without-sku .product_meta .sku_wrapper:not(.andante-sku-present),
.single-product .product_meta .sku_wrapper[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  #masthead .main-logo__icons {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  #masthead .main-logo__icons > .slideout-menu-toggle {
    display: none;
  }
}

@media (max-width: 782px) {
  .admin-bar #masthead .main-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar #masthead.site-header--scrolled .main-header {
    top: 0;
  }
}

@media (max-width: 599px) {
  #masthead .home-link__logo {
    width: clamp(110px, 36vw, 180px) !important;
  }

  #masthead .main-logo__icons,
  .andante-shop-links {
    gap: 0.375rem;
  }

  .andante-shop-link,
  .andante-basket-link {
    min-width: 44px;
    padding: 0.375rem;
    font-size: 0.875rem;
  }

  .andante-basket-link {
    gap: 0.25rem;
  }

  .andante-basket-label {
    display: none;
  }

  .andante-basket-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.125rem;
  }
}
