  .pcard > .pcard__select,
  .pcard > .pcard__select[data-selection="pending"] {
    position: relative; inset: auto; isolation: isolate;
    display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px;
    width: 100%; max-width: 100%; height: auto; min-height: 38px;
    margin: 4px 0 0; padding: 6px 5px; border-radius: 10px;
    font: 750 14px/1.15 Montserrat, Arial, sans-serif; white-space: nowrap; box-shadow: none;
  }
  /* The surrounding gap gives the shorter button a 44px touch target. */
  .pcard > .pcard__select::before { content: ""; position: absolute; inset: -3px 0; }
  .pcard > .pcard__select:hover { transform: none; }
  .pcard__select .pcard__phone-action { display: inline-flex; align-items: center; gap: 5px; }
  .pcard__select svg { flex: 0 0 auto; width: 18px; height: 18px; }
  .pcard > .pcard__select[data-selection="pending"] { font-size: clamp(11px, 3vw, 13px); }

.pcard.pcard--selectable > .pcard__body { padding-top: 4px; }
.saved-product-info > .saved-row-cart {
  width: fit-content; height: auto; min-height: 38px; padding: 5px 12px;
  margin-top: 4px; border-radius: 10px; font-weight: 750;
}
.saved-row-cart .pcard__phone-action { display: inline-flex; align-items: center; gap: 5px; }
@media (min-width: 651px) {
  .pcard.pcard--selectable {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
  }
  .pcard--selectable > .pcard__img { grid-row: 1; }
  .pcard--selectable > .pcard__labels,
  .carousel > .pcard--selectable > .pcard__labels {
    grid-row: 2; height: auto; min-height: 0; max-height: none; margin-top: 4px;
  }
  .pcard--selectable > .pcard__labels:empty,
  .carousel > .pcard--selectable > .pcard__labels:empty { display: none; }
  .pcard--selectable > .pcard__body { grid-row: 3; }
  .pcard--selectable > .pcard__select { grid-row: 4; }
  .pcard > .pcard__select { min-height: 40px; }
}
@media (max-width: 650px) {
  .pcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }
  .pcard > .pcard__img { grid-area: 1 / 1; width: 100%; }
  .pcard > .pcard__select { grid-area: 3 / 1; }
  .pcard > .pcard__body { grid-area: 2 / 1; }
  /* The photo and its taste labels share one track, including in recommendation carousels. */
  .pcard > .pcard__labels,
  .carousel > .pcard > .pcard__labels,
  .home-shelf .carousel > .pcard > .pcard__labels {
    grid-area: 1 / 1;
    z-index: 1;
    align-self: end;
    height: auto; min-height: 0; max-height: none;
    margin: 0 7px 7px; gap: 3px;
    pointer-events: none;
  }
  .pcard > .pcard__labels:empty, .carousel > .pcard > .pcard__labels:empty { display: none; }
  .pcard__save-actions {
    inset: 7px 7px auto auto;
    flex-direction: column;
    gap: 4px;
  }
  .pcard__img .stk { right: 45px; }
  .pcard__img .pcard__hit { width: min(calc(100% - 52px), 154px); }
  .pcard__hit + .stk { top: 38px; }
  .pcard .stock-note, .home-spotlight-stock { font-size: 11px; font-weight: 400; }
  /* The brand's bundled italic is a display face with a single weight of 900. */
  .home-shelf .stock-note, .home-spotlight-stock { font-family: system-ui, sans-serif; }
  .product-stock #stockLabel { font-size: 14px; font-weight: 400; }
  .product .product__tagline { white-space: normal; overflow-wrap: anywhere; }
  .list-detail .saved-product-info .saved-unavailable { font-size: 12px; font-weight: 400; }
  @supports (grid-template-rows: subgrid) {
    #grid.pgrid { row-gap: 0; }
    #grid > .pcard--selectable {
      display: grid; grid-row: span 3; grid-template-rows: subgrid;
      align-items: start; row-gap: 0; padding-bottom: 20px;
    }
    #grid .pcard--selectable > .pcard__img { grid-row: 1; width: 100%; }
    .home-shelf .carousel { grid-template-rows: repeat(6, auto); }
    .home-shelf .carousel > .pcard { grid-row: span 6; }
    .home-shelf .pcard__body { grid-row: 2 / span 4; }
    .home-shelf .pcard__select { grid-row: 6; }
  }
  .pcard__buy, .home-spotlight-buy .to-cart { min-height: 48px; font-size: 15px; white-space: nowrap; }

  .product .buybar .buy {
    display: grid; grid-template-columns: max-content minmax(0, 1fr);
    align-items: center; gap: 8px; width: 100%;
  }
  .product .buybar #toCart {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-width: 0; height: 50px; padding: 0 7px; margin: 0;
    font-size: clamp(14px, 3.8vw, 17px); line-height: 1.15; white-space: nowrap;
  }
  .product .buybar #toCart .to-cart__txt { display: inline-flex; align-items: center; font: inherit; }
  .product .buybar #toCart .div { display: none; }
  .product .buybar #toCart:not([data-selection]),
  .product .buybar #toCart[data-selection="empty"] { gap: 5px; }
  .product .buybar #toCart:not([data-selection]) .to-cart__ico,
  .product .buybar #toCart[data-selection="empty"] .to-cart__ico {
    display: inline-flex; flex: none;
  }
  .product .buybar #toCart .to-cart__ico svg { width: 20px; height: 20px; }
  .product .buybar #toCart[data-selection="pending"] .disc { display: none; }

  [data-add][data-selection="pending"] { isolation: isolate; overflow: hidden; }
  [data-add][data-selection="pending"]::after { z-index: 2; height: 4px; pointer-events: none; }
  #toast {
    visibility: visible;
    width: calc(100% - 24px);
    max-width: none;
    border-radius: 12px;
    padding: 11px 15px;
    line-height: 1.35;
    pointer-events: none;
  }
  /* The button already offers undo. Announce it without covering the countdown or its tap area. */
  #toast[data-removal-notice].show {
    width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none;
  }
}

@media (max-width: 650px) and (prefers-reduced-motion: reduce) {
  /* Three discrete states: full, half, finished. Only the two-second undo indicator changes. */
  [data-add][data-selection="pending"]::after {
    animation: selection-countdown 2s steps(2, end) var(--remove-delay, 0ms) both !important;
  }
}

/* Saving uses the browser's list. The static photo and title also work without scripts. */
@media (scripting: none) { .pcard__select[data-ssr-selection] { display: none; } }

/* Frame the photograph without changing its size or intercepting clicks. */
.pcard > .pcard__img::after,
.product__visual > .gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #e8e8e8;
  border-radius: inherit;
  pointer-events: none;
}
.product__visual > .gallery { border-radius: 16px; }

.product + .about { margin-top: 20px; }
.product .product__title { font-size: 30.8px; line-height: 32.2px; }
.product-actions { min-width: 0; }
.product-actions .p-icons { margin-top: 0; }
.product-actions .p-rate.show { display: grid; gap: 12px; justify-content: stretch; text-align: left; }
.review-stars { display: flex; justify-content: center; }
.review-stars button { min-width: 40px; min-height: 40px; }
.product-actions .review-link, .product-actions form button[type=button] {
  font: inherit; font-size: 14px; color: #514b40; text-decoration: underline; text-underline-offset: 2px;
}
.product-actions .review-link { justify-self: center; margin: 0; }
.product-actions form:not([hidden]) { display: grid; gap: 12px; }
.product-actions form label { display: grid; gap: 5px; font-weight: 650; }
.product-actions textarea { resize: vertical; padding: 10px; border: 1px solid #bebbb2; border-radius: 10px; font: inherit; }
.product-actions input, .product-actions textarea { width: 100%; min-width: 0; }
.product-actions form small, .product-actions form p, .review-status { font-size: 13px; }
.product-actions form button[type=submit] { padding: 12px; border-radius: 10px; background: #171614; color: #fff; font: inherit; font-weight: 700; }
.product-actions .review-status:empty, .product-actions [hidden] { display: none; }
@media (min-width:901px) {
  .product { grid-template-rows: auto 1fr; align-items: start; row-gap: 12px; }
  .product > .product__details { grid-column: 2; grid-row: 1 / 3; }
  .product > .product-actions { grid-column: 1; grid-row: 2; }
}
@media (max-width:900px) {
  .product .product__title { font-size: 25.3px; line-height: 26.45px; }
}
