/* Mobile product introduction and variation choice. */
.vps-intro,
.vps-choice {
  display: none;
}

.vps-options-anchor {
  scroll-margin-top: 88px;
}

/* Product choices: make garment previews and sizes easy to see and tap. */
body.single-product .summary .wcboost-variation-swatches__wrapper {
  flex-wrap: wrap;
  gap: 10px 12px;
  overflow: visible;
}

body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__item {
  box-sizing: border-box;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  padding: 3px;
  border: 1px solid rgba(22, 22, 22, .22);
  box-shadow: none;
}

body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__item.selected {
  border-color: var(--v-ink);
  outline: 2px solid var(--v-ink);
  outline-offset: 2px;
}

body.single-product .summary .wcboost-variation-swatches__item:focus-visible {
  outline: 2px solid var(--v-ink);
  outline-offset: 4px;
}

body.single-product .summary .wcboost-variation-swatches--label .wcboost-variation-swatches__item {
  box-sizing: border-box;
  min-width: 58px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
}

body.single-product .summary table.variations th.label {
  margin-bottom: 10px;
}

body.single-product .summary table.variations td.value {
  padding-bottom: 22px;
}

@media (max-width: 767px) {
  /* Keep the plugin tooltip visible without pushing narrow screens sideways. */
  body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__item::before {
    left: 0;
    right: auto;
    transform: translateY(-10px);
  }

  body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__item:nth-child(n+4)::before {
    left: auto;
    right: 0;
  }

  body.single-product .product-gallery-summary {
    row-gap: 18px;
  }

  .vps-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    width: 100%;
    margin: 0;
    color: var(--v-ink);
  }

  .vps-intro__name {
    flex: 1 1 auto;
    font-family: var(--v-serif);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
  }

  .vps-intro__price {
    flex: none;
    font-family: var(--v-ui);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
  }

  .vps-intro__price .woocommerce-Price-amount {
    color: inherit;
  }

  .vps-intro__jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    background: var(--v-gold);
    color: var(--v-black);
    font: 500 12px/1.3 var(--v-ui);
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .vps-intro__jump:hover {
    background: var(--v-gold-2);
    color: var(--v-black);
  }

  .vps-intro__jump:focus-visible {
    outline: 2px solid var(--v-ink);
    outline-offset: 3px;
  }

  .vps-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 12px 0 0;
    padding: 12px 0;
    border-top: 1px solid var(--v-line);
    color: var(--v-ink);
    font: 400 13px/1.45 var(--v-ui);
  }

  .vps-choice__label {
    color: var(--v-muted);
  }

  .vps-choice__value {
    font-weight: 500;
  }
}

@media (max-width: 767px) {
  /* Glozin positions these against the whole row; the intro now precedes the gallery. */
  body.single-product .product-gallery-summary > .product-featured-icons--mobile {
    position: static !important;
    align-self: flex-end;
    margin: 0;
  }

  body.single-product .product-gallery-summary.vps-icons-ready > .product-featured-icons--mobile {
    position: absolute !important;
    top: var(--vps-icons-top) !important;
    right: 15px !important;
  }
}

@media (max-width: 360px) {
  body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__wrapper {
    overflow-x: visible !important;
  }
}

@media (max-width: 327px) {
  body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__item:nth-child(n+5)::before {
    left: 0;
    right: auto;
  }
}

@media (min-width: 328px) and (max-width: 389px) {
  body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__item:nth-child(n+6)::before {
    left: 0;
    right: auto;
  }
}

@media (min-width: 390px) and (max-width: 451px) {
  body.single-product .summary .wcboost-variation-swatches--image .wcboost-variation-swatches__item:nth-child(n+7)::before {
    left: 0;
    right: auto;
  }
}
