/* Veelyon catalogue product layout */
#purchase.pdp {
  align-items: stretch;
}
#purchase.pdp .pdp-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 18px 12px;
}
#purchase.pdp .pdp-stage > img {
  position: static;
  display: block;
  width: min(100%, clamp(255px, 27vw, 375px));
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
}
#purchase.pdp .pdp-image-pills {
  position: static;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
}
#purchase.pdp .pdp-copy {
  padding: clamp(12px, 1.3vw, 20px);
}
#purchase.pdp .art-purchase-form > h1 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
#purchase.pdp .quantity-options {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px;
}
#purchase.pdp .quantity-options > button {
  display: flex !important;
  grid-column: auto !important;
  min-height: 0 !important;
  padding: 8px 5px !important;
}
#purchase.pdp .quantity-options > button > * {
  grid-area: auto !important;
}
#purchase.pdp .quantity-options > button > .bundle-vials {
  display: none !important;
}
@media (max-width: 760px) {
  #purchase.pdp .pdp-stage {
    gap: 6px;
    padding: 10px 8px;
  }
  #purchase.pdp .pdp-stage > img {
    width: min(100%, clamp(170px, 28svh, 232px));
  }
  #purchase.pdp .quantity-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

#purchase.pdp .purchase-selection {
  gap: 8px 12px;
}
#purchase.pdp .quantity-line {
  margin-top: 6px;
}
#purchase.pdp .quantity-label {
  margin: 10px 0 6px;
}
#purchase.pdp .quantity-options > button {
  gap: 2px;
  padding: 6px 4px !important;
}
#purchase.pdp .quantity-discount-note {
  margin: 7px 0 9px;
}
#purchase.pdp .purchase-benefits {
  margin-top: 9px;
}
#purchase.pdp .purchase-benefits > div {
  gap: 7px;
  padding: 7px 8px;
}
@media (min-width: 1024px) {
  #purchase.pdp .purchase-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #purchase.pdp .purchase-benefits > div {
    align-items: flex-start;
    border: 0;
  }
  #purchase.pdp .purchase-benefits > div + div {
    border-inline-start: 1px solid #dce6ed;
  }
}
#purchase.pdp .purchase-benefits p {
  margin: 0;
  min-width: 0;
}
#purchase.pdp .purchase-benefits p strong {
  font-size: 0.85rem;
  line-height: 1.2;
}
#purchase.pdp .purchase-benefits p span {
  font-size: 0.75rem;
  line-height: 1.25;
}
@media (min-width: 1024px) {
  #purchase.pdp .purchase-benefits > div > svg {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }
}

@media (min-width: 1024px) {
  #purchase.pdp {
    margin-top: 18px;
  }
  #purchase.pdp .pdp-copy {
    padding: 14px 18px;
  }
  #purchase.pdp .art-purchase-form > h1 {
    margin-bottom: 7px;
    padding-bottom: 7px;
    font-size: clamp(2rem, 3vw, 3rem);
  }
  #purchase.pdp .quantity-options > button {
    gap: 0;
    padding-block: 4px !important;
  }
  #purchase.pdp .quantity-options .tier-comparison,
  #purchase.pdp .quantity-options .tier-money-saving {
    min-height: 0;
    line-height: 1.15;
  }
  #purchase.pdp .pdp-action {
    margin-top: 8px;
  }
}

/* Light the panel behind the original product photograph. */
#purchase.pdp .pdp-stage {
  background-color: #f1f2f3;
  background-image: radial-gradient(ellipse 49% 48% at 50% 45%, #fff 18%, rgba(255,255,255,.93) 48%, rgba(255,255,255,0) 100%);
}
/* The catalogue uses one outline for vials and another for spray bottles. */
#purchase.pdp .pdp-stage > img:is([src*="-sticker-v8"], [src*="-powder-white-v9"], [src*="-powder-blue-v9"], [src*="-orange-proposal"]):not([src*="-nasal-spray-"]) {
  clip-path: polygon(50% 4.6%, 36% 4.8%, 31.8% 5%, 30.6% 5.4%, 30.4% 5.8%, 30.4% 9.8%, 30.8% 10.2%, 30.9% 19.4%, 31.2% 20%, 31.8% 20.3%, 36.4% 20.4%, 36.4% 28%, 36% 28.6%, 35% 29.4%, 33.2% 30.6%, 32% 31.6%, 31.2% 32.8%, 30.8% 34%, 30.56% 35.6%, 30.56% 88.4%, 30.8% 89.8%, 31.4% 91%, 32.2% 92.2%, 33.4% 93%, 36.6% 93.8%, 40.2% 94.3%, 44.8% 94.6%, 50% 94.8%, 55.2% 94.6%, 59.8% 94.3%, 63.4% 93.8%, 66.6% 93%, 67.8% 92.2%, 68.6% 91%, 69.2% 89.8%, 69.44% 88.4%, 69.44% 35.6%, 69.2% 34%, 68.8% 32.8%, 68% 31.6%, 66.8% 30.6%, 65% 29.4%, 64% 28.6%, 63.6% 28%, 63.6% 20.4%, 68.2% 20.3%, 68.8% 20%, 69.1% 19.4%, 69.2% 10.2%, 69.6% 9.8%, 69.6% 5.8%, 69.4% 5.4%, 68.2% 5%, 64% 4.8%);
}
#purchase.pdp .pdp-stage > img[src*="-nasal-spray-"][src*="-sticker-v8"] {
  clip-path: polygon(50% 4.4%, 46.4% 4.6%, 45.2% 4.9%, 44.8% 5.4%, 43.6% 28.8%, 43.2% 30.2%, 43.2% 31.7%, 40.2% 32%, 38.8% 32.4%, 37.8% 32.8%, 37.6% 33.6%, 37.8% 34.4%, 39.4% 34.8%, 43.2% 35%, 43.2% 38.4%, 42.2% 38.8%, 42% 39.4%, 42% 43.4%, 41.6% 44.2%, 41.6% 46%, 40.8% 46.6%, 40.4% 47.2%, 40% 61.2%, 40.2% 62%, 39.6% 62.8%, 39.4% 63.6%, 39.2% 65%, 39.3% 87.6%, 39.4% 89%, 39.8% 90.2%, 40.4% 90.8%, 41.8% 91.2%, 44.8% 91.5%, 50% 91.7%, 55.2% 91.5%, 58.2% 91.2%, 59.6% 90.8%, 60.2% 90.2%, 60.6% 89%, 60.7% 87.6%, 60.8% 65%, 60.6% 63.6%, 60.4% 62.8%, 59.8% 62%, 60% 61.2%, 59.6% 47.2%, 59.2% 46.6%, 58.4% 46%, 58.4% 44.2%, 58% 43.4%, 58% 39.4%, 57.8% 38.8%, 56.8% 38.4%, 56.8% 35%, 60.6% 34.8%, 62.2% 34.4%, 62.4% 33.6%, 62.2% 32.8%, 61.2% 32.4%, 59.8% 32%, 56.8% 31.7%, 56.8% 30.2%, 56.4% 28.8%, 55.2% 5.4%, 54.8% 4.9%, 53.6% 4.6%);
}

/* Bring the desktop purchase controls together. */
@media (min-width: 1024px) {
  #purchase.pdp .purchase-selection {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  #purchase.pdp .purchase-selectors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
  }
  #purchase.pdp .format-row,
  #purchase.pdp .quantity-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
  }
  #purchase.pdp .pdp-price {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-items: end;
    gap: 2px 8px;
  }
  #purchase.pdp .pdp-price .off {
    margin: 0;
  }
  #purchase.pdp .art-purchase-form {
    display: flex;
    flex-direction: column;
  }
  #purchase.pdp .pdp-action {
    order: 1;
  }
  #purchase.pdp .quantity-discount-note {
    order: 2;
    margin: 7px 0 0;
  }
  #purchase.pdp .purchase-benefits {
    order: 3;
  }
}

/* Show the selected bundle cost on compact quantity cards. */
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) and (max-height: 540px) {
  .vly-art .art-purchase-form .quantity-options:has([data-quantity="30"]) button .tier-unit {
    display: none !important;
  }
  .vly-art .art-purchase-form .quantity-options:has([data-quantity="30"]) button .tier-total {
    display: block !important;
    color: #0069ad;
    font-weight: 650;
    line-height: 1.3;
  }
}
