.galley-restock-prototype .restock-primary-title {
  transition: opacity 120ms ease;
}

.galley-restock-prototype .restock-product-card {
  transition: opacity 170ms ease, filter 170ms ease, transform 120ms ease;
}

.galley-restock-prototype.restock-mode--collecting .restock-product-card:not(.restock-product-card--selected) {
  opacity: .18;
  filter: saturate(.35) grayscale(.15);
  pointer-events: none;
}

.galley-restock-prototype.restock-mode--collecting .restock-product-card--selected {
  opacity: 1;
  filter: none;
}

.galley-restock-prototype.restock-mode--collecting .restock-product-card--selected .restock-product-visual::before {
  display: none !important;
}

.galley-restock-prototype.restock-mode--collecting .restock-product-card--collected .restock-product-visual::before {
  content: '✓';
  position: absolute;
  z-index: 8;
  top: -2px;
  left: 55%;
  width: 40px;
  height: 40px;
  display: grid !important;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .98);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(7, 38, 83, .94);
  box-shadow:
    0 0 0 3px rgba(65, 148, 255, .18),
    0 7px 18px rgba(7, 29, 66, .26);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  transform: translateX(-50%);
  pointer-events: none;
}

.galley-restock-prototype.restock-mode--collecting .restock-product-card--collected img {
  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-mode--collecting .restock-product-card--collected .restock-product-copy {
  box-shadow:
    0 7px 17px rgba(7, 31, 72, .15),
    inset 0 0 0 1px rgba(106, 175, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.galley-restock-prototype.restock-mode--editing .restock-product-card--selected .restock-product-copy {
  padding-right: 34px;
}

.galley-restock-prototype .restock-quantity-minus {
  position: absolute;
  z-index: 14;
  top: 50%;
  right: 4px;
  left: auto;
  bottom: auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  color: #0a2855;
  background: rgba(255, 255, 255, .98);
  box-shadow:
    0 0 0 2px rgba(70, 151, 255, .13),
    0 4px 10px rgba(2, 19, 47, .22);
  font-size: 20px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.galley-restock-prototype .restock-quantity-minus:active {
  transform: translateY(-50%) scale(.92);
}

.galley-restock-prototype.restock-mode--editing .restock-product-card--selected {
  overflow: visible;
}

@media (max-width: 360px), (max-height: 740px) {
  .galley-restock-prototype.restock-mode--collecting .restock-product-card--collected .restock-product-visual::before {
    top: -1px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .galley-restock-prototype.restock-mode--editing .restock-product-card--selected .restock-product-copy {
    padding-right: 31px;
  }

  .galley-restock-prototype .restock-quantity-minus {
    right: 3px;
    width: 24px;
    height: 24px;
    font-size: 18px;
  }
}
