html:has(.store-v2 > .header) {
  scroll-padding-top: calc(var(--hb-store-header, 150px) + 14px);
}
.store-v2 :is(#wholesale-benefits, #business-audiences, #flavors, #atelier, #excursion-program, #excursion-faq) {
  scroll-margin-top: 0;
}
.gift-workshop .workshop-preview-scroll {
  overscroll-behavior-y: auto;
}
.gift-workshop .workshop-note-preview p {
  max-height: none;
  overflow: visible;
}
.gift-workshop .gift-message textarea {
  field-sizing: content;
  min-height: 6em;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.store-v2 > .header) { scroll-behavior: smooth; }
}

.order-workspace .order-quantity > .hb-cart-quantity-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.order-workspace input.hb-cart-quantity-input {
  box-sizing: border-box;
  width: 3.2rem;
  height: 2rem;
  min-height: 0;
  margin: 0;
  padding: 0 .15rem;
  border: 1px solid transparent;
  border-bottom-color: #cdbba9;
  border-radius: .25rem;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: inherit;
}
.order-workspace input.hb-cart-quantity-input:focus {
  border-color: #804056;
  outline: 2px solid #804056;
  outline-offset: 1px;
}
.order-workspace input.hb-cart-quantity-input[aria-invalid=true] { border-color: #a21b32; }
.order-workspace .hb-cart-quantity-error {
  position: absolute;
  z-index: 2;
  inset-inline-start: 50%;
  top: calc(100% + 3px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 12rem;
  padding: .3rem .55rem;
  border: 1px solid #d7b3b6;
  border-radius: .4rem;
  background: #fffcf6;
  color: #84263b;
  font-size: .8rem;
  line-height: 1.3;
}

@media (min-width: 701px) {
  .gift-workshop .gift-builder-intro h2 {
    margin-block: 6px 4px;
    font-size: clamp(28px, 3.8vh, 42px);
  }
  .gift-workshop .gift-builder-intro h2 br {
    display: none;
  }
  .gift-workshop .gift-builder-intro h2 em {
    margin-inline-start: 0.22em;
  }
  .gift-workshop .workshop-steps {
    margin-block: 12px 14px;
  }
}

/* Each desktop column has its own scrollport, bounded above the checkout bar. */
@media (min-width: 701px) and (min-height: 500px) {
  .gift-workshop .workshop-scroll {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scrollbar-gutter: auto;
    padding-block: clamp(18px, 3vh, 32px) 12px;
  }
  .gift-workshop .workshop-scroll > :not(.workshop-layout) {
    flex: none;
  }
  .gift-workshop .workshop-layout {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  .gift-workshop .workshop-panel,
  .gift-workshop .workshop-preview {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }
  .gift-workshop .workshop-panel {
    padding: 3px 4px 12px;
  }
  .gift-workshop .workshop-preview {
    position: static;
  }
  .gift-workshop .workshop-preview-scroll {
    flex: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

/* A short landscape window needs the same uninterrupted vertical flow as a phone. */
@media (min-width: 701px) and (max-height: 499px) {
  .gift-workshop .workshop-scroll {
    padding-block: 16px 12px;
  }
  .gift-workshop .workshop-preview {
    position: static;
    max-height: none;
  }
  .gift-workshop .workshop-preview-scroll {
    overflow: visible;
    scrollbar-gutter: auto;
  }
}
.gift-workshop .workshop-preview:focus-visible,
.gift-workshop .workshop-panel:focus-visible {
  outline: 2px solid #633549;
  outline-offset: -2px;
}
