.galley-restock-prototype .galley-restock-scroll {
  padding: 5px 10px calc(66px + env(safe-area-inset-bottom));
}

.galley-restock-prototype .restock-control-band {
  margin: -5px -10px 8px;
  padding: 7px 10px 8px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 20px rgba(5, 20, 47, .09);
}

.galley-restock-prototype .restock-search,
.galley-restock-prototype .restock-control-band > .restock-section-label {
  display: none;
}

.galley-restock-prototype .restock-categories {
  gap: 5px;
}

.galley-restock-prototype .restock-category {
  min-height: 34px;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 4px;
  padding: 4px 6px;
  border-radius: 10px;
  font-size: 8px;
}

.galley-restock-prototype .restock-category-icon {
  width: 15px;
  height: 15px;
}

.galley-restock-prototype .restock-category-icon svg {
  width: 14px;
  height: 14px;
}

.galley-restock-prototype .galley-restock-scroll > .restock-section-label {
  margin: 0 0 5px;
  font-size: 8.5px;
  letter-spacing: .1em;
}

.galley-restock-prototype .galley-restock-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 8px;
  padding-top: 0;
}

.galley-restock-prototype .restock-product-card {
  width: 92%;
  min-height: 88px;
  grid-template-rows: 56px auto;
  margin-top: 22px;
  justify-self: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.galley-restock-prototype .restock-product-card:nth-child(odd),
.galley-restock-prototype .restock-product-card:nth-child(even) {
  justify-self: center;
}

.galley-restock-prototype .restock-product-card:active {
  transform: scale(.985);
}

.galley-restock-prototype .restock-product-visual {
  min-height: 56px;
  height: 56px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.galley-restock-prototype .restock-product-visual::before {
  display: none;
}

.galley-restock-prototype .restock-product-visual::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 44%;
  bottom: 1px;
  width: 54px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(7, 24, 48, .24) 0%, rgba(7, 24, 48, .09) 50%, transparent 76%);
  transform: translateX(-50%);
  filter: blur(1.3px);
  pointer-events: none;
}

.galley-restock-prototype .restock-product-card img {
  position: relative;
  z-index: 3;
  width: min(88px, 96%);
  height: 90px;
  object-fit: contain;
  transform: translate(-7px, -29px) scale(1.05);
  transform-origin: center;
  filter: drop-shadow(0 10px 8px rgba(15, 31, 54, .23));
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 170ms ease, filter 170ms ease;
}

.galley-restock-prototype .restock-product-count {
  top: -28px;
  right: -2px;
  bottom: auto;
  left: auto;
  z-index: 2;
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(43, 127, 241, .98);
  font-size: clamp(31px, 8.4vw, 38px);
  line-height: .95;
  font-weight: 950;
  letter-spacing: -.08em;
  text-align: center;
  text-shadow:
    -1px 0 rgba(255, 255, 255, .98),
    1px 0 rgba(255, 255, 255, .98),
    0 -1px rgba(255, 255, 255, .98),
    0 1px rgba(255, 255, 255, .98),
    0 3px 8px rgba(7, 35, 76, .24);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  animation: restockQuantityPulse 150ms cubic-bezier(.2,.9,.25,1.16);
}

.galley-restock-prototype .restock-product-copy {
  position: relative;
  z-index: 4;
  width: 94%;
  min-height: 32px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 5px 7px 6px;
  border: 1px solid rgba(18, 43, 82, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 5px 14px rgba(19, 39, 70, .075);
}

.galley-restock-prototype .restock-product-name {
  display: -webkit-box;
  overflow: hidden;
  color: #0d2347;
  font-size: 8.8px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: .004em;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.galley-restock-prototype .restock-product-meta {
  display: none;
}

.galley-restock-prototype .restock-product-card--selected {
  box-shadow: none;
}

.galley-restock-prototype .restock-product-card--selected .restock-product-visual {
  background: transparent;
}

.galley-restock-prototype .restock-product-card--selected .restock-product-visual::after {
  width: 58px;
  background: radial-gradient(ellipse at center, rgba(32, 112, 225, .28) 0%, rgba(13, 57, 121, .14) 50%, transparent 78%);
}

.galley-restock-prototype .restock-product-card--selected img {
  transform: translate(-7px, -30px) scale(1.09);
  filter:
    drop-shadow(0 0 1px rgba(105, 177, 255, .95))
    drop-shadow(0 0 7px rgba(49, 135, 247, .42))
    drop-shadow(0 11px 9px rgba(0, 8, 22, .34))
    saturate(1.08);
}

.galley-restock-prototype .restock-product-card--selected .restock-product-copy {
  color: #ffffff;
  border-color: rgba(95, 160, 245, .28);
  background: linear-gradient(160deg, #071a39 0%, #0b2d63 100%);
  box-shadow: 0 7px 17px rgba(7, 31, 72, .15), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.galley-restock-prototype .restock-product-card--selected .restock-product-name {
  color: #ffffff;
}

.galley-restock-prototype .galley-restock-footer {
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}

.galley-restock-prototype .restock-primary {
  min-height: 46px;
  padding: 5px 6px 5px 14px;
  border-radius: 14px;
}

.galley-restock-prototype .restock-total-pill {
  min-width: 35px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
}

@media (min-height: 820px) {
  .galley-restock-prototype .restock-product-card {
    min-height: 94px;
    grid-template-rows: 61px auto;
    margin-top: 25px;
  }

  .galley-restock-prototype .restock-product-visual {
    min-height: 61px;
    height: 61px;
  }

  .galley-restock-prototype .restock-product-card img {
    width: min(94px, 96%);
    height: 96px;
    transform: translate(-8px, -32px) scale(1.05);
  }

  .galley-restock-prototype .restock-product-card--selected img {
    transform: translate(-8px, -33px) scale(1.09);
  }

  .galley-restock-prototype .restock-product-count {
    top: -31px;
    right: -3px;
    width: 49px;
    height: 45px;
    font-size: clamp(34px, 8.8vw, 41px);
  }

  .galley-restock-prototype .restock-product-copy {
    min-height: 33px;
  }
}

@media (max-width: 360px) {
  .galley-restock-prototype .restock-category {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1px;
    padding-inline: 3px;
  }

  .galley-restock-prototype .restock-category-icon {
    display: none;
  }

  .galley-restock-prototype .galley-restock-grid {
    gap-inline: 5px;
  }

  .galley-restock-prototype .restock-product-card {
    width: 94%;
  }

  .galley-restock-prototype .restock-product-card img {
    width: min(80px, 96%);
    height: 84px;
    transform: translate(-5px, -27px) scale(1.03);
  }

  .galley-restock-prototype .restock-product-card--selected img {
    transform: translate(-5px, -28px) scale(1.07);
  }

  .galley-restock-prototype .restock-product-count {
    top: -25px;
    right: -2px;
    width: 39px;
    height: 38px;
    font-size: 29px;
  }

  .galley-restock-prototype .restock-product-name {
    font-size: 8.1px;
  }
}

@media (max-height: 740px) {
  .galley-restock-prototype .galley-restock-scroll {
    padding-top: 4px;
    padding-bottom: calc(61px + env(safe-area-inset-bottom));
  }

  .galley-restock-prototype .restock-control-band {
    margin-top: -4px;
    margin-bottom: 6px;
    padding-top: 5px;
    padding-bottom: 6px;
  }

  .galley-restock-prototype .restock-category {
    min-height: 30px;
  }

  .galley-restock-prototype .restock-product-card {
    min-height: 81px;
    grid-template-rows: 51px auto;
    margin-top: 18px;
  }

  .galley-restock-prototype .restock-product-visual {
    min-height: 51px;
    height: 51px;
  }

  .galley-restock-prototype .restock-product-card img {
    width: min(80px, 95%);
    height: 82px;
    transform: translate(-6px, -26px) scale(1.03);
  }

  .galley-restock-prototype .restock-product-card--selected img {
    transform: translate(-6px, -27px) scale(1.07);
  }

  .galley-restock-prototype .restock-product-count {
    top: -25px;
    right: -2px;
    width: 40px;
    height: 38px;
    font-size: 29px;
  }

  .galley-restock-prototype .restock-product-copy {
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 5px;
  }

  .galley-restock-prototype .restock-product-name {
    font-size: 8px;
  }

  .galley-restock-prototype .restock-primary {
    min-height: 43px;
  }

  .galley-restock-prototype .restock-total-pill {
    height: 31px;
  }
}
