/* Commerce components use the storefront's original color and type tokens. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dialog-header .dialog-eyebrow {
  margin: 0 0 9px;
  font-size: 9px;
  color: var(--muted);
}
.dialog-count { color: #a08c7c; font-size: .7em; }
.dialog-header > div { min-width: 0; }
.product-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  background: #fbf8f3d9;
}
.product-dialog-close:hover { background: var(--ivory); }
.product-dialog .product-copy { padding-top: 42px; }
.visual-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 23px;
  text-align: center;
  font-size: 9px;
  color: #91816f;
}
.color-dot { background: var(--swatch, var(--wine)); }
.color-choice strong { font-weight: 500; }
.add-to-bag { width: 100%; justify-content: space-between; }
.add-to-bag > svg { flex-shrink: 0; }
.product-favorite.is-favorite > svg,
.favorite-item > .is-favorite > svg { fill: var(--wine); color: var(--wine); }
.product-specs summary > span { display: none; }
.product-specs summary::-webkit-details-marker { display: none; }
.product-specs dl { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 4px; }
.product-specs dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.product-specs dt { color: var(--muted); }
.product-specs dd { color: var(--ink); }
.product-footnote { margin-top: 23px; font-size: 9px; color: #9c8e80; }
.quantity-control .icon-button { border: 0; border-radius: 0; }
.quantity-control output { min-width: 25px; text-align: center; }
.empty-icon { color: var(--sand); margin-bottom: 5px; }

.cart-item-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cart-item-heading > h3 { min-width: 0; margin: 0; }
.cart-item-heading > .icon-button { width: 26px; height: 26px; margin-top: 1px; }
.cart-item-heading .text-button,
.favorite-item-info .text-button {
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  padding: 5px 0;
}
.cart-item-heading .text-button:hover,
.favorite-item-info .text-button:hover { color: var(--wine); }
.cart-item-info { min-width: 0; }
.cart-item-bottom > strong { font-size: 11px; font-weight: 500; white-space: nowrap; color: var(--wine); }
.cart-item-bottom .quantity-control output { min-width: 22px; font-size: 10px; }
.checkout-button { justify-content: space-between; }
.continue-shopping { display: block; margin: 15px auto 0; font-size: 10px; }

.favorite-item { position: relative; min-width: 0; }
.favorite-item-art {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee8de;
  overflow: hidden;
}
.favorite-item-art .bag-art { width: 94%; transition: transform .45s var(--ease); }
.favorite-item-art:hover .bag-art { transform: translateY(-4px); }
.favorite-item > .icon-button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 32px;
  height: 32px;
  background: #fbf8f388;
}
.favorite-item-info { padding-top: 9px; }
.favorites-grid .favorite-item-info > h3 { margin: 0; }
.favorites-grid .favorite-item-info > p { font-size: 10px; margin: 0 0 6px; }
.favorite-item-info > strong { font-size: 11px; font-weight: 500; color: var(--wine); }
.favorites-footer { padding: 0 25px 30px; }
.favorites-footer > .button { width: 100%; gap: 16px; }

.search-result-art { display: block; flex: 0 0 76px; }
.search-result-copy { display: block; flex: 1; min-width: 0; }
.search-result-copy > strong { color: var(--ink); }
.search-result-copy > span { display: block; margin-top: 4px; line-height: 1.6; }
.search-result > svg { flex-shrink: 0; }
.search-empty { padding: 38px 12px 25px; }
.search-empty h3 { font-size: 28px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[popover] {
  inset: auto auto 26px 50%;
  margin: 0;
  border: 0;
  overflow: visible;
}
.flying-bag[popover] {
  inset: auto;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: visible;
  background-color: transparent;
}
.toast[popover]::backdrop,
.flying-bag[popover]::backdrop { background: transparent; pointer-events: none; }

@media (max-width: 760px) {
  .product-dialog-close { top: 9px; right: 9px; }
  .product-dialog .product-copy { padding-top: 24px; }
  .visual-caption { bottom: 13px; font-size: 8px; }
  .product-footnote { margin-top: 18px; font-size: 8px; }
  .dialog-header .dialog-eyebrow { font-size: 8px; margin-bottom: 6px; }
  .search-result-art { flex-basis: 65px; }
  .search-result-copy > strong { font-size: 11px; }
  .search-result-copy > span { font-size: 9px; margin-top: 3px; }
  .search-result-price { font-size: 10px; }
  .favorites-grid { padding: 22px; gap: 24px 13px; }
  .favorites-footer { padding: 0 22px 25px; }
  .favorite-item-info .text-button { font-size: 11px; }
}

@media (max-width: 380px) {
  .cart-item { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
  .cart-item-bottom { gap: 5px; }
  .cart-item-bottom .quantity-control { min-width: 82px; }
  .cart-item-bottom .quantity-control button { width: 25px; }
  .cart-item-bottom > strong { font-size: 10px; }
  .search-result { gap: 10px; }
  .search-result > svg { display: none; }
  .search-result-art { flex-basis: 56px; }
  .search-result-art .bag-art { width: 56px; }
}
