/* Quantity cards: the size name sits above the field so the two can never overlap. */
body[data-product] .product .productSizePicker .sizeGrid,
body[data-product] .customizerPage .sizePanel .sizeGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 10rem)) !important;
  gap: 0.75rem !important;
  align-items: stretch !important;
}

body[data-product] .product .productSizePicker .sizeGrid label,
body[data-product] .customizerPage .sizePanel .sizeGrid label {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.55rem !important;
  width: 10rem !important;
  min-width: 10rem !important;
  max-width: 10rem !important;
  padding: 0.75rem !important;
  overflow: hidden !important;
}

body[data-product] .product .productSizePicker .sizeGrid label > b,
body[data-product] .customizerPage .sizePanel .sizeGrid label > b {
  box-sizing: border-box !important;
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 1.25rem;
  margin: 0 !important;
  overflow: visible !important;
  color: #f8f5ff;
  font-size: 0.82rem;
  line-height: 1.25 !important;
  white-space: normal !important;
  word-break: normal !important;
}

body[data-product] .product .productSizePicker .sizeGrid input[type="number"],
body[data-product] .customizerPage .sizePanel .sizeGrid input[type="number"] {
  box-sizing: border-box !important;
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: 0.65rem 1.6rem 0.65rem 0.75rem !important;
  font-variant-numeric: tabular-nums;
}

/* A cleaner, premium volume-pricing deck shared by every priced product. */
body[data-product] .product .pricing {
  padding: clamp(1.25rem, 2.2vw, 1.8rem) !important;
  border: 1px solid rgba(126, 42, 194, 0.72) !important;
  border-radius: 0.75rem !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(26, 106, 126, 0.28), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(126, 42, 194, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(7, 30, 45, 0.98), rgba(3, 14, 26, 0.99)) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

body[data-product] .product .pricing .priceHead {
  margin-bottom: 1.15rem !important;
  padding-bottom: 1rem !important;
}

body[data-product] .product .pricing .priceHead > b {
  font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
}

body[data-product] .product .pricing .priceHead > span {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(183, 255, 41, 0.35);
  border-radius: 999px;
  background: rgba(183, 255, 41, 0.08);
}

body[data-product] .product .pricing .tiers {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)) !important;
  gap: 0.75rem !important;
}

body[data-product] .product .pricing .tiers button {
  position: relative;
  min-height: 7.4rem !important;
  padding: 1rem !important;
  gap: 0.55rem !important;
  overflow: hidden;
  border: 1px solid rgba(116, 159, 181, 0.38) !important;
  border-radius: 0.65rem !important;
  background: linear-gradient(155deg, rgba(7, 29, 45, 0.94), rgba(3, 15, 27, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body[data-product] .product .pricing .tiers button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #7e2ac2, #b7ff29);
  opacity: 0.38;
}

body[data-product] .product .pricing .tiers button:hover,
body[data-product] .product .pricing .tiers button:focus-visible {
  border-color: rgba(183, 255, 41, 0.78) !important;
  background: linear-gradient(155deg, rgba(16, 55, 66, 0.98), rgba(8, 24, 39, 0.98)) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(183, 255, 41, 0.1) !important;
}

body[data-product] .product .pricing .tiers button.active {
  border-color: #b7ff29 !important;
  background: linear-gradient(145deg, rgba(126, 42, 194, 0.38), rgba(19, 75, 76, 0.62)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 2px rgba(183, 255, 41, 0.16) !important;
  transform: translateY(-2px);
}

body[data-product] .product .pricing .tiers button.active::before {
  height: 4px;
  opacity: 1;
}

body[data-product] .product .pricing .tiers button > b {
  color: #b7ff29 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
}

body[data-product] .product .pricing .tiers button > span {
  font-size: clamp(1.15rem, 1.55vw, 1.45rem) !important;
  letter-spacing: -0.025em;
}

body[data-product] .product .pricing .tiers button > small {
  margin-top: 0.1rem;
}

body[data-product] .product .pricing .order {
  display: grid !important;
  grid-template-columns: minmax(13rem, 1fr) minmax(12rem, 0.72fr) minmax(15rem, 0.85fr) !important;
  align-items: stretch !important;
  gap: 0.85rem !important;
  margin-top: 1.25rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(116, 159, 181, 0.34) !important;
  border-radius: 0.7rem !important;
  background: rgba(2, 13, 24, 0.72) !important;
}

body[data-product] .product .pricing .order label {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem !important;
  padding: 0.15rem;
}

body[data-product] .product .pricing .order label input[type="number"] {
  min-height: 3.35rem;
  border-color: rgba(183, 255, 41, 0.52);
  border-radius: 0.45rem;
  background: rgba(5, 25, 40, 0.96);
  font-size: 1.08rem;
  font-weight: 800;
}

body[data-product] .product .pricing .order > div {
  align-content: center;
  justify-items: start !important;
  padding: 0.65rem 0.85rem;
  border-left: 1px solid rgba(183, 255, 41, 0.22);
  text-align: left !important;
}

body[data-product] .product .pricing .order > div > b {
  font-size: clamp(1.5rem, 2.3vw, 2rem) !important;
}

body[data-product] .product .pricing .order > button.primary {
  align-self: stretch;
  min-height: 4.6rem;
  margin: 0 !important;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(126, 42, 194, 0.2);
}

body[data-product] .product .pricing > small:last-child {
  display: block;
  margin-top: 0.85rem;
  color: #9caebe;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  body[data-product] .product .pricing .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body[data-product] .product .pricing .order {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.7fr) !important;
  }

  body[data-product] .product .pricing .order > button.primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body[data-product] .product .productSizePicker .sizeGrid,
  body[data-product] .customizerPage .sizePanel .sizeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-product] .product .productSizePicker .sizeGrid label,
  body[data-product] .customizerPage .sizePanel .sizeGrid label {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body[data-product] .product .pricing .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-product] .product .pricing .order {
    grid-template-columns: 1fr !important;
  }

  body[data-product] .product .pricing .order > div {
    border-top: 1px solid rgba(183, 255, 41, 0.22);
    border-left: 0;
  }

  body[data-product] .product .pricing .order > button.primary {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  body[data-product] .product .productSizePicker .sizeGrid,
  body[data-product] .customizerPage .sizePanel .sizeGrid,
  body[data-product] .product .pricing .tiers {
    grid-template-columns: 1fr !important;
  }
}
