/**
 * Hairpiece Warehouse modern product page.
 * Scoped to .hpw-modern-product-page so current PDP/cart/account UI remains untouched.
 */

.hpw-modern-product-page {
  --hpw-pdp-color-brand: #0d69a0;
  --hpw-pdp-color-brand-strong: #075f97;
  --hpw-pdp-color-brand-soft: #eaf6ff;
  --hpw-pdp-color-accent: #0757c7;
  --hpw-pdp-color-text: #101827;
  --hpw-pdp-color-muted: #64748b;
  --hpw-pdp-color-border: #dbe5ef;
  --hpw-pdp-color-border-strong: #b8d5e7;
  --hpw-pdp-color-surface: #ffffff;
  --hpw-pdp-color-surface-soft: #f8fbff;
  --hpw-pdp-color-success: #128a42;
  --hpw-pdp-color-success-bg: #ecfdf3;
  --hpw-pdp-color-danger: #b42318;
  --hpw-pdp-radius-sm: 7px;
  --hpw-pdp-radius-md: 9px;
  --hpw-pdp-radius-lg: 12px;
  --hpw-pdp-shadow-card: rgba(17, 68, 105, 0.04) 0 10px 35px;
  --hpw-pdp-focus: 0 0 0 3px rgba(13, 105, 160, 0.22);
  --hpw-pdp-space-1: 3px;
  --hpw-pdp-space-2: 5px;
  --hpw-pdp-space-3: 6px;
  --hpw-pdp-space-4: 7px;
  --hpw-pdp-space-5: 8px;
  --hpw-pdp-space-6: 9px;
  --hpw-pdp-space-7: 10px;
  --hpw-pdp-space-8: 11px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 64px;
  color: var(--hpw-pdp-color-text);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.container.woo-container {
  box-sizing: border-box !important;
}
.hpw-modern-product-page *,
.hpw-modern-product-page *::before,
.hpw-modern-product-page *::after {
  box-sizing: border-box;
}

.hpw-modern-product-page :focus-visible {
  outline: 0;
  box-shadow: var(--hpw-pdp-focus);
}

.single-product .hpw-modern-product-page nav.hpw-pdp-breadcrumbs,
.single-product
  .hpw-modern-product-page
  nav.hpw-pdp-breadcrumbs
  .woocommerce-breadcrumb,
.single-product
  .hpw-modern-product-page
  nav.hpw-pdp-breadcrumbs
  .woocommerce-breadcrumb
  a,
.single-product
  .hpw-modern-product-page
  nav.hpw-pdp-breadcrumbs
  .hpw-pdp-breadcrumbs__separator {
  color: #3a3a3a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.hpw-pdp-breadcrumbs {
  margin: 0 0 18px;
}

.single-product
  .hpw-modern-product-page
  nav.hpw-pdp-breadcrumbs
  .woocommerce-breadcrumb
  a:hover,
.single-product
  .hpw-modern-product-page
  nav.hpw-pdp-breadcrumbs
  .woocommerce-breadcrumb
  a:focus-visible {
  color: var(--hpw-pdp-color-brand);
  text-decoration: underline;
}

.hpw-pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 42px;
  align-items: start;
}

.hpw-pdp-gallery,
.hpw-pdp-summary,
.hpw-pdp-trust-strip,
.hpw-pdp-accordions,
.hpw-pdp-related {
  min-width: 0;
}

.hpw-pdp-gallery__stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: var(--hpw-pdp-radius-lg);
  background: linear-gradient(
    180deg,
    #fff 0%,
    var(--hpw-pdp-color-surface-soft) 100%
  );
  box-shadow: var(--hpw-pdp-shadow-card);
}

@media (min-width: 901px) {
  .hpw-pdp-gallery {
    position: sticky;
    top: calc(var(--hpw-pdp-sticky-offset, 0px) + 52px);
    align-self: start;
  }
}

.hpw-pdp-gallery__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 560px;
  padding: 44px;
}

.hpw-pdp-gallery__main {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  cursor: zoom-in;
}

.hpw-pdp-gallery__video {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
  background: #000;
}

.hpw-pdp-gallery__video[hidden],
.hpw-pdp-gallery__main[hidden] {
  display: none;
}

.hpw-pdp-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hpw-pdp-badge,
.hpw-pdp-badges .onsale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 0;
  margin: 0;
  padding: 5px 12px;
  position: static;
  border-radius: var(--hpw-pdp-radius-sm);
  background: #d92d20;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 24px !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  background: var(--hpw-pdp-color-brand) !important;
  color: #fff !important;
  font-size: 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
}

.hpw-pdp-badge--new {
  background: var(--hpw-pdp-color-accent) !important;
}

.hpw-pdp-wishlist,
.hpw-pdp-gallery__arrow,
.hpw-pdp-360 {
  border: 1px solid var(--hpw-pdp-color-border);
  background: #fff;
  color: var(--hpw-pdp-color-text);
  cursor: pointer;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.hpw-pdp-360[hidden] {
  display: none !important;
}

.hpw-pdp-360__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hpw-pdp-color-brand-soft);
  color: var(--hpw-pdp-color-brand);
  font-size: 9px;
  line-height: 1;
}

.hpw-pdp-360:hover,
.hpw-pdp-360:focus,
.hpw-pdp-gallery__thumb:hover,
.hpw-pdp-gallery__thumb:focus {
  background: #fff !important;
  color: var(--hpw-pdp-color-brand) !important;
}

.hpw-pdp-wishlist {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 10px;
}

/* Keep both upper gallery controls on the exact same row at every viewport. */
.hpw-pdp-gallery__stage > .hpw-pdp-badges,
.hpw-pdp-gallery__stage > .hpw-pdp-wishlist {
  top: 18px !important;
  margin-top: 0 !important;
}

.hpw-modern-product-page .hpw-pdp-wishlist.is-added svg {
  fill: var(--hpw-pdp-color-brand) !important;
  stroke: none !important;
}

.hpw-pdp-wishlist svg,
.hpw-pdp-gallery__arrow svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hpw-pdp-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 9px;
  transform: translateY(-50%);
}

.hpw-pdp-gallery__arrow--prev {
  left: 18px;
}

.hpw-pdp-gallery__arrow--next {
  right: 18px;
}

.hpw-pdp-360 {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  width: auto;
  max-width: max-content;
  white-space: nowrap;
}

.hpw-pdp-wishlist:hover,
.hpw-pdp-gallery__arrow:hover,
.hpw-pdp-360:hover,
.hpw-pdp-gallery__thumb:hover {
  border-color: var(--hpw-pdp-color-brand);
  background: #fff !important;
  color: var(--hpw-pdp-color-brand);
  transform: translateY(-1px);
}

.hpw-pdp-gallery__arrow:hover {
  transform: translateY(-50%) scale(1.03);
}

.hpw-pdp-gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hpw-pdp-gallery__thumbs-shell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.hpw-pdp-gallery__thumb-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: 50%;
  background: #fff !important;
  color: var(--hpw-pdp-color-text) !important;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hpw-pdp-gallery__thumb-arrow:hover,
.hpw-pdp-gallery__thumb-arrow:focus {
  border-color: var(--hpw-pdp-color-brand);
  background: #fff !important;
  color: var(--hpw-pdp-color-brand) !important;
}

.hpw-pdp-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.hpw-pdp-gallery__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 8px;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: var(--hpw-pdp-radius-md);
  background: #fff;
  cursor: pointer;
  flex: 0 0 calc((100% - 48px) / 5);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.hpw-pdp-gallery__thumb.is-active {
  border-color: var(--hpw-pdp-color-accent);
  box-shadow: inset 0 0 0 1px var(--hpw-pdp-color-accent);
}

.hpw-pdp-gallery__thumb img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.hpw-pdp-gallery__thumb--video {
  position: relative;
}

.hpw-pdp-gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding-left: 2px;
  border-radius: 50%;
  background: rgba(13, 87, 199, 0.9);
  box-shadow: 0 4px 14px rgba(15, 41, 64, 0.22);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.hpw-pdp-summary {
  padding-top: 0;
}

.hpw-pdp-summary__topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 10px;
  color: var(--hpw-pdp-color-muted);
  font-size: 12px;
}

.hpw-pdp-stock {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hpw-pdp-stock.is-in-stock {
  background: var(--hpw-pdp-color-success-bg);
  color: var(--hpw-pdp-color-success);
}

.hpw-pdp-stock.is-out-of-stock {
  background: #fff1f0;
  color: var(--hpw-pdp-color-danger);
}

.hpw-pdp-title {
  margin: 0 0 6px;
  color: var(--hpw-pdp-color-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: left;
}

.hpw-pdp-price,
.hpw-pdp-price .amount,
.hpw-pdp-price .woocommerce-Price-currencySymbol {
  color: var(--hpw-pdp-color-brand) !important;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.hpw-pdp-native-form .woocommerce-variation-price .amount,
.hpw-pdp-native-form
  .woocommerce-variation-price
  .woocommerce-Price-currencySymbol {
  color: var(--hpw-pdp-color-brand) !important;
}

/* The modern header is the single visible price source after variation selection. */
.hpw-modern-product-page .hpw-pdp-native-form .woocommerce-variation-price,
.hpw-modern-product-page .hpw-pdp-native-form .hpw-selected-variation-price {
  display: none !important;
}

.hpw-pdp-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
  color: var(--hpw-pdp-color-brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hpw-pdp-rating__stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.hpw-pdp-short-description {
  margin: 0 0 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.hpw-pdp-short-description p {
  margin: 0;
}

.hpw-pdp-feature-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 22px;
}

.hpw-pdp-feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: var(--hpw-pdp-radius-md);
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 68, 105, 0.06);
  color: var(--hpw-pdp-color-text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.hpw-pdp-feature-pill > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hpw-pdp-color-brand-soft);
  color: var(--hpw-pdp-color-brand);
}

.hpw-pdp-native-form {
  margin-top: 16px;
}

.hpw-pdp-native-form p.stock,
.hpw-pdp-native-form .woocommerce-variation-availability .stock {
  display: none !important;
}

.hpw-pdp-availability {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0 10px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--hpw-pdp-radius-md);
}

.hpw-pdp-availability[hidden] {
  display: none !important;
}

.hpw-pdp-availability strong {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hpw-pdp-availability span {
  color: #536273;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.hpw-pdp-availability--in-stock {
  border-color: #a7dfbd;
  background: #effbf4;
}

.hpw-pdp-availability--in-stock strong {
  color: #16854a;
}

.hpw-pdp-availability--backorder {
  border-color: #f2c36b;
  background: #fff8e9;
}

.hpw-pdp-availability--backorder strong {
  color: #b76400;
}

.hpw-pdp-availability--out-of-stock {
  border-color: #f0b4ae;
  background: #fff3f2;
}

.hpw-pdp-availability--out-of-stock strong {
  color: var(--hpw-pdp-color-danger);
}

.hpw-pdp-notify-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  color: var(--hpw-pdp-color-brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.hpw-pdp-notify-choice[hidden] {
  display: none !important;
}

.hpw-pdp-notify-choice button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--hpw-pdp-color-brand) !important;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.hpw-pdp-notify-choice button i,
.hpw-pdp-notify-choice button svg {
  flex: 0 0 auto;
}

.hpw-pdp-waitlist {
  position: fixed;
  width: min(590px, calc(100vw - 30px));
  padding: 34px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(7, 22, 38, 0.3);
  overflow: hidden;
}

.hpw-pdp-waitlist,
.hpw-pdp-waitlist * {
  box-sizing: border-box;
}

.hpw-pdp-waitlist::backdrop {
  background: rgba(7, 22, 38, 0.66);
  backdrop-filter: blur(4px);
}

.hpw-pdp-waitlist__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  font-size: 26px;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  z-index: 20;
}

.hpw-pdp-waitlist.is-success .hpw-pdp-waitlist__close {
  display: inline-flex !important;
  background: #0d69a0 !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hpw-pdp-waitlist__close:hover,
.hpw-pdp-waitlist__close:focus-visible {
  background: rgba(255, 255, 255, 0.28) !important;
  transform: rotate(4deg);
}

.hpw-pdp-waitlist__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 58px 24px 34px;
  margin: -34px -34px 26px;
  background: #0d69a0;
}

.hpw-pdp-waitlist__icon {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 21px;
}

.hpw-pdp-waitlist h2 {
  margin: 0 0 8px;
  color: var(--hpw-pdp-color-text);
  font-size: 22px;
  font-weight: 800;
  text-align: left;
}

.hpw-pdp-waitlist__header h2,
.hpw-pdp-waitlist__header p {
  color: #fff !important;
}

.hpw-pdp-waitlist p {
  margin: 0;
  color: var(--hpw-pdp-color-muted);
  font-size: 14px;
  line-height: 1.55;
}
.hpw-pdp-waitlist__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.hpw-pdp-waitlist label {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--hpw-pdp-color-text);
  font-size: 13px;
  font-weight: 800;
}
.hpw-pdp-waitlist label > input {
  flex: 0 0 44px;
}
.hpw-pdp-waitlist__field-label {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  min-height: 20px;
  line-height: 20px;
}
.hpw-pdp-waitlist__email-field {
  grid-column: 1 / -1;
}
.hpw-pdp-waitlist__required {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 20px;
  color: #000 !important;
  line-height: 20px;
}
.hpw-pdp-waitlist label small {
  color: var(--hpw-pdp-color-muted);
  font-weight: 600;
}
.hpw-pdp-waitlist input {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin-top: 6px;
  padding: 11px 12px 11px 3px !important;
  border: 0;
  border-bottom: 1px solid var(--hpw-pdp-color-border);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--hpw-pdp-color-text);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hpw-pdp-waitlist input:focus {
  border-color: var(--hpw-pdp-color-brand);
  box-shadow: 0 1px 0 var(--hpw-pdp-color-brand);
}

.hpw-pdp-waitlist input[aria-invalid="true"] {
  border-color: var(--hpw-pdp-color-danger);
  box-shadow: 0 1px 0 var(--hpw-pdp-color-danger);
}

.hpw-pdp-waitlist__field-error {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: var(--hpw-pdp-color-danger) !important;
  font-size: 11px;
  font-weight: 600 !important;
}

.hpw-pdp-waitlist__submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background-color: #0d69a0 !important;
  color: #fff !important;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 22px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hpw-pdp-waitlist__submit:hover,
.hpw-pdp-waitlist__submit:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

.hpw-pdp-waitlist__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hpw-pdp-waitlist__message {
  margin-top: 10px !important;
  color: var(--hpw-pdp-color-danger);
  text-align: center;
  min-height: 20px;
}
.hpw-pdp-waitlist__success {
  padding: 35px 10px;
  text-align: center;
}
.hpw-pdp-waitlist__success > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 3px solid #3dbb78;
  border-radius: 50%;
  color: #24985b;
  font-size: 34px;
}
.hpw-pdp-waitlist__success h2 {
  text-align: center;
}

@media (max-width: 560px) {
  .hpw-pdp-waitlist {
    padding: 26px 20px;
  }
  .hpw-pdp-waitlist__header {
    padding: 24px 52px 22px 20px;
    margin: -26px -20px 24px;
  }
  .hpw-pdp-waitlist__fields {
    grid-template-columns: 1fr;
  }
  .hpw-pdp-waitlist__email-field {
    grid-column: auto;
  }
}

.hpw-pdp-native-form form.cart {
  display: block;
  width: 100%;
  margin: 0;
}

.hpw-pdp-native-form .hpw-pdp-buying-options,
.hpw-pdp-native-form .wcsatt-options-wrapper,
.hpw-pdp-native-form .wcsatt-options-product,
.hpw-pdp-native-form .wcsatt-options-prompt,
.hpw-pdp-native-form .autoship-schedule-options {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.hpw-pdp-native-form
  .woocommerce-variation-add-to-cart
  .hpw-auto-reorder-panel {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hpw-pdp-native-form .e-atc-qty-button-holder {
  display: contents !important;
}

.hpw-pdp-native-form .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  width: 100% !important;
  max-width: none !important;
}

.hpw-pdp-native-form
  .woocommerce-variation-add-to-cart
  .single_add_to_cart_button {
  flex: 1 1 auto;
}

.hpw-pdp-native-form table.variations {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  border: 0;
}

.hpw-pdp-native-form table.variations tbody,
.hpw-pdp-native-form table.variations tr {
  display: block;
  width: 100%;
}

.hpw-pdp-native-form table.variations tr {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hpw-pdp-color-border);
}

.hpw-pdp-native-form table.variations th,
.hpw-pdp-native-form table.variations td {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
  vertical-align: middle;
}

.hpw-pdp-native-form table.variations label,
.hpw-pdp-native-form label {
  margin: 0;
  color: var(--hpw-pdp-color-text);
  font-size: 14px;
  font-weight: 800;
}

.hpw-pdp-native-form select,
.hpw-pdp-native-form input[type="text"],
.hpw-pdp-native-form input[type="email"],
.hpw-pdp-native-form input[type="number"],
.hpw-pdp-native-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--hpw-pdp-color-border) !important;
  border-radius: var(--hpw-pdp-radius-md);
  background: #fff;
  color: var(--hpw-pdp-color-text);
  font:
    600 14px/1.45 Montserrat,
    sans-serif;
}

.hpw-pdp-native-form textarea {
  min-height: 92px;
  resize: vertical;
}

.hpw-pdp-native-form .wc-pao-addon-container.hpw-last-visible-addon {
  border-bottom: 0 !important;
}

/* Keep the native upload control and its size guidance stacked. This is
   intentionally scoped to the renamed Upload Photos add-on on the modern PDP. */
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-upload-photos
  .wc-pao-addon-wrap {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-upload-photos
  input.wc-pao-addon-file-upload {
  max-width: 100%;
  padding-left: 0 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-upload-photos
  .wc-pao-addon-wrap
  small {
  display: block;
  margin-top: 4px;
}

.hpw-pdp-native-form .reset_variations {
  display: inline-flex;
  margin-top: 8px;
  color: var(--hpw-pdp-color-brand);
  font-size: 13px;
  font-weight: 800;
}

.hpw-pdp-native-form .quantity {
  display: inline-flex;
  align-items: center;
  width: 150px;
  max-width: 100%;
  min-height: 46px;
  margin: 0 12px 0 0;
  border: 1px solid var(--hpw-pdp-color-border) !important;
  border-radius: var(--hpw-pdp-radius-md);
  overflow: hidden;
  vertical-align: middle;
}

.hpw-pdp-native-form .hpw-atc-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  width: 100%;
}

.hpw-pdp-native-form .hpw-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.hpw-pdp-native-form .hpw-qty-label {
  color: var(--hpw-pdp-color-text);
  font-size: 13px;
  font-weight: 800;
}

.hpw-pdp-required-asterisk {
  color: #000;
  font-weight: 800;
  font-size: 12px !important;
}

.hpw-pdp-native-form .hpw-purchase-invalid {
  border-color: var(--hpw-pdp-color-danger) !important;
  box-shadow: 0 0 0 1px var(--hpw-pdp-color-danger) !important;
}

.hpw-pdp-native-form .hpw-purchase-field-error {
  margin: 6px 0 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.hpw-pdp-native-form tr.hpw-purchase-field-error td {
  padding: 6px 0 4px !important;
  border: 0 !important;
  background: transparent !important;
}

.hpw-pdp-native-form .hpw-purchase-field-error__inner {
  padding: 5px 9px;
  border-left: 3px solid var(--hpw-pdp-color-danger);
  border-radius: 0 4px 4px 0;
  background: #fff5f5;
  color: var(--hpw-pdp-color-danger);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.hpw-pdp-native-form .hpw-qty-wrap .quantity {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.hpw-pdp-native-form .woocommerce-variation-add-to-cart .quantity {
  width: 150px !important;
  margin: 0 !important;
}

.hpw-pdp-native-form
  .woocommerce-variation-add-to-cart
  .single_add_to_cart_button,
.hpw-pdp-native-form .hpw-atc-row .single_add_to_cart_button {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: var(--hpw-pdp-radius-md) !important;
}

.hpw-pdp-native-form .qty-dropdown {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0 36px 0 14px;
  border: 0;
  background-color: #fff;
  color: var(--hpw-pdp-color-text);
  font:
    800 15px/1 Montserrat,
    sans-serif;
  cursor: pointer;
}

.hpw-pdp-native-form .hpw-atc-row .single_add_to_cart_button {
  flex: 1 1 auto;
}

.hpw-pdp-native-form .quantity .qty {
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: #fff;
  color: var(--hpw-pdp-color-text);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.hpw-pdp-native-form .hpw-pdp-qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--hpw-pdp-color-text);
  font:
    800 20px/1 Montserrat,
    sans-serif;
  cursor: pointer;
}

.hpw-pdp-native-form .hpw-pdp-qty-button--minus {
  border-right: 1px solid var(--hpw-pdp-color-border);
}

.hpw-pdp-native-form .hpw-pdp-qty-button--plus {
  border-left: 1px solid var(--hpw-pdp-color-border);
}

.hpw-pdp-native-form .quantity input.qty {
  min-width: 42px;
  -moz-appearance: textfield;
}

.hpw-pdp-native-form .quantity input.qty::-webkit-inner-spin-button,
.hpw-pdp-native-form .quantity input.qty::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.hpw-pdp-native-form .single_add_to_cart_button,
.hpw-pdp-native-form button[name="add-to-cart"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--hpw-pdp-radius-md);
  background: var(--hpw-pdp-color-brand) !important;
  color: #fff !important;
  font:
    800 15px/1.2 Montserrat,
    sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 200ms ease,
    transform 200ms ease,
    opacity 200ms ease;
}

.hpw-pdp-native-form .single_add_to_cart_button:hover,
.hpw-pdp-native-form button[name="add-to-cart"]:hover {
  background: var(--hpw-pdp-color-brand-strong) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.hpw-pdp-native-form .single_add_to_cart_button:disabled,
.hpw-pdp-native-form button[name="add-to-cart"]:disabled,
.hpw-pdp-native-form .disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hpw-pdp-wishlist-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
}

.hpw-pdp-wishlist-inline > * {
  margin: 0 !important;
}

.hpw-pdp-secondary-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  width: calc(100% - 162px);
  margin: 13px 0 0 162px;
}

.hpw-pdp-secondary-actions > * {
  display: flex;
  width: 100%;
  justify-content: center;
}

.hpw-pdp-configured-total {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: var(--hpw-pdp-radius-md);
  background: #fff;
  box-sizing: border-box;
}

.hpw-pdp-configured-total__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.hpw-pdp-configured-total__label {
  color: #000;
  font-size: 17px;
  font-weight: 600;
}

.hpw-pdp-configured-total__copy small {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.hpw-pdp-configured-total__amount {
  display: inline-flex;
  min-width: 32px;
  min-height: 27px;
  align-items: center;
  justify-content: flex-end;
  color: var(--hpw-pdp-color-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.hpw-pdp-configured-total__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #dce8f1;
  border-top-color: var(--hpw-pdp-color-brand);
  border-radius: 50%;
  box-sizing: border-box;
  animation: hpw-configured-total-spin 0.7s linear infinite;
}

@keyframes hpw-configured-total-spin {
  to {
    transform: rotate(360deg);
  }
}

.hpw-pdp-wishlist-inline a,
.hpw-pdp-wishlist-inline button,
.hpw-pdp-wishlist-inline a:hover,
.hpw-pdp-wishlist-inline button:hover,
.hpw-pdp-wishlist-inline a:focus,
.hpw-pdp-wishlist-inline button:focus {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--hpw-pdp-color-brand) !important;
  box-shadow: none !important;
  text-decoration: none;
}

.hpw-pdp-wishlist-inline a *,
.hpw-pdp-wishlist-inline button * {
  color: var(--hpw-pdp-color-brand) !important;
}

.hpw-pdp-link-button {
  border: 0;
  background: transparent;
  color: var(--hpw-pdp-color-brand);
  font:
    800 13px/1.3 Montserrat,
    sans-serif;
  cursor: pointer;
}

.hpw-pdp-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 38px 0 12px;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: var(--hpw-pdp-radius-lg);
  background: #fff;
  box-shadow: var(--hpw-pdp-shadow-card);
}

.hpw-pdp-trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 15px;
  border-right: 1px solid #e8eef4;
}

.hpw-pdp-trust-strip__item:last-child {
  border-right: 0;
}

.hpw-pdp-trust-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hpw-pdp-color-border-strong);
  border-radius: 50%;
  color: var(--hpw-pdp-color-brand);
  font-size: 15px;
}

.hpw-pdp-trust-strip__icon--reverse > i,
.hpw-pdp-trust-strip__icon--reverse > svg {
  transform: scaleX(-) !important;
}

.hpw-pdp-trust-strip__icon > img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hpw-pdp-trust-strip strong,
.hpw-pdp-trust-strip small {
  display: block;
}

.hpw-pdp-trust-strip strong {
  color: var(--hpw-pdp-color-brand);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hpw-pdp-trust-strip small {
  color: var(--hpw-pdp-color-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.hpw-pdp-accordions,
.hpw-pdp-related {
  margin-top: 14px;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: var(--hpw-pdp-radius-lg);
  background: #fff;
  box-shadow: var(--hpw-pdp-shadow-card);
}

.hpw-pdp-accordion {
  border-bottom: 1px solid var(--hpw-pdp-color-border);
}

.hpw-pdp-accordion:last-child {
  border-bottom: 0;
}

.hpw-pdp-accordion__heading {
  margin: 0;
}

.hpw-pdp-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  border: 0;
  background: #fff;
  color: var(--hpw-pdp-color-text);
  font:
    800 15px/1.3 Montserrat,
    sans-serif;
  text-align: left !important;
  cursor: pointer;
  max-width: 100% !important;
}

.hpw-pdp-accordion__trigger > span:first-child {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  text-align: left;
}

.hpw-pdp-accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-left: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 41, 64, 0.16);
  color: var(--hpw-pdp-color-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 200ms ease,
    color 200ms ease;
}

.hpw-pdp-accordion__trigger:hover {
  background: #fff !important;
  color: var(--hpw-pdp-color-brand);
}

.hpw-pdp-accordion__trigger:focus,
.hpw-pdp-accordion__trigger:active {
  background: #fff !important;
  color: var(--hpw-pdp-color-brand);
}

.hpw-pdp-accordion.is-open .hpw-pdp-accordion__icon {
  transform: none;
}

.hpw-pdp-accordion__panel {
  padding: 0 22px 20px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.hpw-pdp-faqs {
  border-top: 1px solid #e8eef4;
}

.hpw-pdp-faq {
  margin: 0;
  border-bottom: 1px solid #e8eef4;
}

.hpw-pdp-faq:last-child {
  border-bottom: 0;
}

.hpw-pdp-faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 2px;
  color: var(--hpw-pdp-color-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.hpw-pdp-faq > summary::-webkit-details-marker {
  display: none;
}

.hpw-pdp-faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f8fb;
  color: var(--hpw-pdp-color-brand);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.hpw-pdp-faq__icon::before {
  content: "+";
}

.hpw-pdp-faq[open] .hpw-pdp-faq__icon::before {
  content: "−";
}

.hpw-pdp-faq__answer {
  padding: 0 40px 18px 2px;
  color: #334155;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.hpw-pdp-faq__answer p,
.hpw-pdp-faq__answer li {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.hpw-pdp-faq__answer > :last-child {
  margin-bottom: 0;
}

.hpw-pdp-accordion__panel > h2:first-child,
.hpw-pdp-accordion__panel
  > .woocommerce-Tabs-panel--description
  > h2:first-child {
  display: none !important;
}

.hpw-pdp-related h2 {
  margin: 0 0 12px;
  color: var(--hpw-pdp-color-text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.hpw-pdp-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hpw-pdp-related__nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.hpw-pdp-related__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: 50%;
  background: #fff !important;
  color: var(--hpw-pdp-color-brand) !important;
  box-shadow: 0 5px 14px rgba(7, 22, 38, 0.1);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hpw-pdp-related__arrow {
  font-size: 0;
}

.hpw-pdp-related__arrow::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform-origin: center;
}

.hpw-pdp-related__arrow--previous::before {
  transform: rotate(-135deg);
}

.hpw-pdp-related__arrow--next::before {
  transform: rotate(45deg);
}

.hpw-pdp-related__arrow:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.hpw-pdp-related__viewport {
  min-width: 0;
}

.hpw-pdp-related {
  padding: 22px;
}

.hpw-pdp-related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hpw-pdp-related ul.products::before,
.hpw-pdp-related ul.products::after {
  display: none !important;
}

.hpw-pdp-related ul.products li.product {
  display: flex;
  float: none !important;
  flex-direction: column;
  width: auto !important;
  height: 100%;
  margin: 0 !important;
}

.hpw-pdp-related ul.products li.product > a:first-child {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.hpw-pdp-related ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hpw-pdp-related ul.products li.product .woocommerce-loop-product__title {
  min-height: 3.2em;
}

.hpw-pdp-related ul.products li.product .price {
  min-height: 2em;
  color: var(--hpw-pdp-color-brand) !important;
}

.hpw-pdp-related ul.products li.product .price .amount,
.hpw-pdp-related
  ul.products
  li.product
  .price
  .woocommerce-Price-currencySymbol {
  color: #0d69a0 !important;
}

.hpw-pdp-related ul.products li.product .button {
  align-self: flex-start;
  margin-top: auto !important;
}

.hpw-pdp-related ul.products li.product .onsale,
.hpw-pdp-related ul.products li.product .new,
.hpw-pdp-related ul.products li.product [class*="new-badge"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  top: 12px !important;
  right: auto !important;
  left: 12px !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--hpw-pdp-color-brand) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  white-space: nowrap !important;
}

.hpw-pdp-related ul.products li.product .hpw-wishlist-button--archive {
  top: 12px !important;
  right: 12px !important;
  margin: 0 !important;
}

.hpw-pdp-lightbox {
  width: min(1100px, calc(100vw - 32px));
  height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.hpw-pdp-lightbox[open] {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
}

.hpw-pdp-lightbox::backdrop {
  background: rgba(7, 22, 38, 0.82);
}

.hpw-pdp-lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 24px 0;
  overflow: hidden;
}

.hpw-pdp-lightbox__content img,
.hpw-pdp-lightbox__content iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 80px);
  border: 0;
  object-fit: contain;
}

.hpw-pdp-lightbox__content [hidden] {
  display: none;
}

.hpw-pdp-lightbox__close,
.hpw-pdp-lightbox__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hpw-pdp-color-border);
  border-radius: 50%;
  background: #fff !important;
  color: var(--hpw-pdp-color-text) !important;
  cursor: pointer;
}

.hpw-pdp-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 28px;
}

.hpw-pdp-lightbox__arrow {
  margin: auto;
  font-size: 30px;
}

html.hpw-pdp-lightbox-open {
  overflow: hidden;
}

.hpw-pdp-accordions + #reviews,
.hpw-pdp-accordions + .woocommerce-Reviews,
.hpw-pdp-accordions + [class*="review"] {
  display: block;
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .hpw-pdp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 28px;
  }

  .hpw-pdp-feature-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hpw-modern-product-page {
    padding: 18px 14px 48px;
  }

  .hpw-pdp-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hpw-pdp-summary {
    padding-top: 0;
  }

  .hpw-pdp-summary__topline {
    justify-content: flex-start;
  }

  .hpw-pdp-gallery__stage,
  .hpw-pdp-gallery__image {
    min-height: 430px;
  }

  .hpw-pdp-gallery__main {
    max-height: 390px;
  }

  .hpw-pdp-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hpw-pdp-trust-strip__item:nth-child(2n) {
    border-right: 0;
  }

  .hpw-pdp-trust-strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hpw-pdp-color-border);
  }

  .hpw-pdp-related__nav {
    display: flex;
  }

  .hpw-pdp-related__viewport {
    overflow: hidden;
  }

  .hpw-pdp-related.is-carousel ul.products {
    display: flex !important;
    grid-template-columns: none;
    gap: 18px;
    transition: transform 320ms ease;
    will-change: transform;
  }

  .hpw-pdp-related.is-carousel ul.products li.product {
    flex-grow: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .hpw-modern-product-page {
    padding-inline: 12px;
  }

  .hpw-pdp-gallery__stage,
  .hpw-pdp-gallery__image {
    min-height: 320px;
  }

  .hpw-pdp-gallery__image {
    padding: 28px;
  }

  .hpw-pdp-gallery__main {
    max-height: 280px;
  }

  .hpw-pdp-gallery__thumbs {
    gap: 9px;
  }

  .hpw-pdp-gallery__thumb {
    flex-basis: calc((100% - 27px) / 4);
    min-height: 68px;
    padding: 6px;
  }

  .hpw-pdp-gallery__thumb img {
    height: 56px;
  }

  .hpw-pdp-feature-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hpw-pdp-trust-strip {
    grid-template-columns: 1fr;
  }

  .hpw-pdp-trust-strip__item {
    border-right: 0;
    border-bottom: 1px solid var(--hpw-pdp-color-border);
  }

  .hpw-pdp-trust-strip__item:last-child {
    border-bottom: 0;
  }

  .hpw-pdp-native-form table.variations tr {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hpw-pdp-native-form .quantity {
    width: 132px;
    margin-bottom: 10px;
  }

  .hpw-pdp-native-form .hpw-atc-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hpw-pdp-native-form .woocommerce-variation-add-to-cart {
    grid-template-columns: 1fr;
  }

  .hpw-pdp-native-form .hpw-qty-wrap {
    flex-basis: 100%;
  }

  .hpw-pdp-secondary-actions {
    width: 100%;
    margin-left: 0;
  }

  .hpw-pdp-native-form .single_add_to_cart_button,
  .hpw-pdp-native-form button[name="add-to-cart"] {
    width: 100%;
  }

  .hpw-pdp-wishlist-inline {
    justify-content: center;
  }

  .hpw-pdp-related {
    padding: 18px 14px;
  }

  .hpw-pdp-related h2 {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .hpw-pdp-related__arrow {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  .hpw-pdp-lightbox[open] {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
}

/* Keep the modern PDP price independent of legacy global WooCommerce spans. */
.hpw-modern-product-page .hpw-pdp-price .price,
.hpw-modern-product-page .hpw-pdp-price .woocommerce-Price-amount,
.hpw-modern-product-page .hpw-pdp-price .woocommerce-Price-amount bdi,
.hpw-modern-product-page .hpw-pdp-price .woocommerce-Price-currencySymbol {
  color: #101827 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

/*
 * Custom hair-system simple products: keep the purchase sections in their
 * intended visual order even when a late-running integration appends the
 * availability card at the end of form.cart.
 */
.single-product
  .hpw-modern-product-page[data-hpw-custom-hair-product="true"]
  .hpw-pdp-native-form
  form.cart:not(.variations_form) {
  display: flex !important;
  flex-direction: column;
}

.single-product
  .hpw-modern-product-page[data-hpw-custom-hair-product="true"]
  .hpw-pdp-native-form
  form.cart:not(.variations_form)
  > .wc-pao-addons-container {
  order: 1;
}

.single-product
  .hpw-modern-product-page[data-hpw-custom-hair-product="true"]
  .hpw-pdp-native-form
  form.cart:not(.variations_form)
  > .hpw-pdp-availability {
  order: 2;
}

.single-product
  .hpw-modern-product-page[data-hpw-custom-hair-product="true"]
  .hpw-pdp-native-form
  form.cart:not(.variations_form)
  > .hpw-service-wrapper[data-hpw-position="before_quantity_add_to_cart"] {
  order: 3;
}

.single-product
  .hpw-modern-product-page[data-hpw-custom-hair-product="true"]
  .hpw-pdp-native-form
  form.cart:not(.variations_form)
  > .hpw-pdp-service-warning {
  order: 4;
}

.single-product
  .hpw-modern-product-page[data-hpw-custom-hair-product="true"]
  .hpw-pdp-native-form
  form.cart:not(.variations_form)
  > .hpw-atc-row {
  order: 5;
}

/* Joined quantity control: one outer border with full-height separators. */
.single-product .hpw-modern-product-page .hpw-pdp-native-form .quantity {
  box-sizing: border-box;
  padding: 0 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .quantity
  input.qty {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 42px;
  height: 46px !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .quantity
  .hpw-pdp-qty-button {
  align-self: stretch;
  height: auto;
  min-height: 46px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .quantity
  .hpw-pdp-qty-button--minus {
  border-right: 1px solid var(--hpw-pdp-color-border) !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .quantity
  .hpw-pdp-qty-button--plus {
  border-left: 1px solid var(--hpw-pdp-color-border) !important;
}

/* Desktop typography baseline from the approved PDP review. */
@media (min-width: 1101px) {
  .hpw-pdp-breadcrumbs,
  .hpw-pdp-breadcrumbs a,
  .hpw-pdp-breadcrumbs .hpw-pdp-breadcrumbs__separator {
    font-size: 13px;
    font-weight: 400;
  }

  .hpw-pdp-title {
    font-size: 28px;
    font-weight: 700;
  }

  .hpw-pdp-price,
  .hpw-pdp-price .amount,
  .hpw-pdp-price .woocommerce-Price-currencySymbol,
  .hpw-pdp-native-form .woocommerce-variation-price,
  .hpw-pdp-native-form .woocommerce-variation-price .amount,
  .hpw-pdp-native-form
    .woocommerce-variation-price
    .woocommerce-Price-currencySymbol {
    color: #000 !important;
    font-size: 24px;
    font-weight: 700;
  }

  .hpw-pdp-rating,
  .hpw-pdp-rating > span:last-child {
    color: #000;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
  }

  .hpw-pdp-rating:hover > span:last-child,
  .hpw-pdp-rating:focus-visible > span:last-child {
    color: var(--hpw-pdp-color-brand);
    text-decoration: underline;
  }

  .hpw-pdp-rating:hover,
  .hpw-pdp-rating:focus-visible {
    text-decoration: none !important;
  }

  .hpw-pdp-rating__stars,
  .hpw-pdp-rating:hover .hpw-pdp-rating__stars,
  .hpw-pdp-rating:focus-visible .hpw-pdp-rating__stars {
    color: #f59e0b;
    text-decoration: none;
  }

  .hpw-pdp-short-description,
  .hpw-pdp-short-description p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
  }

  .hpw-pdp-native-form table.variations label,
  .hpw-pdp-native-form table.variations select,
  .hpw-pdp-native-form table.variations .value,
  .hpw-pdp-native-form table.variations [data-hpw-flyout-trigger],
  .hpw-pdp-native-form table.variations [class*="flyout-trigger"] {
    font-size: 16px;
    font-weight: 600;
  }

  .hpw-pdp-native-form .reset_variations {
    font-size: 14px;
    font-weight: 600;
  }

  .hpw-pdp-native-form .wc-pao-addon-name,
  .hpw-pdp-native-form .wc-pao-addon-special-instructions label,
  .hpw-pdp-native-form label[for*="special-instructions"] {
    font-size: 16px;
    font-weight: 600;
  }

  .hpw-pdp-native-form select,
  .hpw-pdp-native-form input[type="text"],
  .hpw-pdp-native-form input[type="email"],
  .hpw-pdp-native-form input[type="number"],
  .hpw-pdp-native-form textarea {
    font-size: 16px;
    font-weight: 500;
  }

  .hpw-pdp-availability strong {
    font-size: 15px;
    font-weight: 700;
  }

  .hpw-pdp-availability span {
    font-size: 14px;
    font-weight: 500;
  }

  .hpw-pdp-native-form h2,
  .hpw-pdp-native-form h3,
  .hpw-pdp-native-form .hpw-service-heading,
  .hpw-pdp-native-form .hpw-ar-heading,
  .hpw-pdp-native-form .hpw-buying-options-heading {
    font-size: 17px;
    font-weight: 600;
  }

  .hpw-pdp-native-form .hpw-service-name,
  .hpw-pdp-native-form .hpw-ar-option-title,
  .hpw-pdp-native-form .hpw-purchase-option-title {
    font-size: 16px;
    font-weight: 600;
  }

  .hpw-pdp-native-form .hpw-service-description,
  .hpw-pdp-native-form .hpw-ar-option-subtitle,
  .hpw-pdp-native-form .hpw-ar-option-description,
  .hpw-pdp-native-form .hpw-purchase-option-description {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
  }

  .hpw-pdp-native-form .hpw-service-price,
  .hpw-pdp-native-form .hpw-ar-option-price,
  .hpw-pdp-native-form .hpw-purchase-option-price {
    color: #000 !important;
    font-size: 17px;
    font-weight: 700;
  }

  body.single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-ar-option-price.hpw-ar-auto-price,
  body.single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-ar-option-price.hpw-ar-auto-price
    .hpw-ar-summary-price,
  body.single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-ar-option-price.hpw-ar-auto-price
    .woocommerce-Price-amount,
  body.single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-ar-option-price.hpw-ar-auto-price
    .woocommerce-Price-currencySymbol,
  body.single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-ar-option-price.hpw-ar-auto-price
    bdi,
  body.single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-ar-option-price.hpw-ar-auto-price
    span {
    color: #101827 !important;
  }

  .hpw-pdp-native-form .hpw-auto-reorder-body,
  .hpw-pdp-native-form .hpw-ar-body,
  .hpw-pdp-native-form .hpw-ar-description,
  .hpw-pdp-native-form .hpw-ar-discount-line,
  .hpw-pdp-native-form .hpw-ar-future-label,
  .hpw-pdp-native-form .hpw-ar-next-date-label,
  .hpw-pdp-native-form .hpw-ar-next-date-value,
  .hpw-pdp-native-form .hpw-ar-cart-restriction-note {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
  }

  .hpw-pdp-native-form .hpw-auto-reorder-frequency,
  .hpw-pdp-native-form .hpw-ar-frequency,
  .hpw-pdp-native-form .hpw-ar-frequency-option,
  .hpw-pdp-native-form .hpw-auto-reorder-panel fieldset legend,
  .hpw-pdp-native-form .hpw-auto-reorder-panel fieldset label,
  .hpw-pdp-native-form .hpw-auto-reorder-panel fieldset label span {
    font-size: 15px;
    font-weight: 600;
  }

  .hpw-pdp-native-form .hpw-configured-total-label,
  .hpw-pdp-native-form .hpw-ar-configured-total-label,
  .hpw-pdp-native-form .hpw-ar-today-label,
  .hpw-pdp-native-form [class*="configured-total"] small,
  .hpw-pdp-native-form [class*="configured-total"] label {
    font-size: 14px;
    font-weight: 500;
  }

  .hpw-pdp-native-form .hpw-configured-total-amount,
  .hpw-pdp-native-form .hpw-ar-configured-total-amount,
  .hpw-pdp-native-form .hpw-ar-summary-price,
  .hpw-pdp-native-form .hpw-ar-today-amount,
  .hpw-pdp-native-form [class*="configured-total"] .amount {
    font-size: 17px;
    font-weight: 700;
    color: #101827 !important;
  }

  .hpw-pdp-native-form .hpw-qty-label,
  .hpw-pdp-native-form .quantity .qty,
  .hpw-pdp-native-form .qty-dropdown {
    font-size: 16px;
    font-weight: 600;
  }

  .hpw-pdp-native-form .single_add_to_cart_button,
  .hpw-pdp-native-form button[name="add-to-cart"] {
    font-size: 16px;
    font-weight: 700;
  }

  .hpw-pdp-notify-choice,
  .hpw-pdp-notify-choice button,
  .hpw-pdp-wishlist-inline,
  .hpw-pdp-wishlist-inline button,
  .hpw-pdp-wishlist-inline a {
    font-size: 14px;
    font-weight: 700;
  }

  .hpw-pdp-trust-strip__item strong {
    font-size: 16px;
    font-weight: 700;
  }

  .hpw-pdp-trust-strip__item small {
    font-size: 14px;
    font-weight: 500;
  }

  .hpw-pdp-accordion__trigger {
    font-size: 16px;
    font-weight: 700;
  }

  .hpw-pdp-accordion__panel,
  .hpw-pdp-accordion__panel p,
  .hpw-pdp-accordion__panel li {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
  }

  .hpw-modern-product-page #reviews h2,
  .hpw-modern-product-page .woocommerce-Reviews-title,
  .hpw-modern-product-page [class*="reviews"] > h2,
  .hpw-modern-product-page [class*="questions"] > h2 {
    font-size: 24px;
    font-weight: 700;
  }

  .hpw-modern-product-page #reviews .average-rating,
  .hpw-modern-product-page #reviews .cr-average-rating,
  .hpw-modern-product-page #reviews .cr-average-rating > span,
  .hpw-modern-product-page #reviews [class*="rating-average"],
  .hpw-modern-product-page #reviews [class*="rating-number"] {
    font-size: 40px;
    font-weight: 700;
  }

  .hpw-modern-product-page #reviews [class*="distribution"],
  .hpw-modern-product-page #reviews [class*="rating-count"],
  .hpw-modern-product-page #reviews .cr-total-rating-count {
    font-size: 14px;
    font-weight: 500;
  }

  .hpw-modern-product-page #reviews button,
  .hpw-modern-product-page #reviews .button,
  .hpw-modern-product-page #reviews [class*="write-review"],
  .hpw-modern-product-page #reviews [class*="ask-question"] {
    font-size: 15px;
    font-weight: 600;
  }

  .hpw-modern-product-page #reviews .comment-text .meta strong,
  .hpw-modern-product-page #reviews .cr-comment-head-text,
  .hpw-modern-product-page #reviews [class*="review-title"] {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
  }

  .hpw-modern-product-page #reviews .woocommerce-review__author,
  .hpw-modern-product-page #reviews [class*="review-author"] {
    font-size: 14px;
    font-weight: 700;
  }

  .hpw-modern-product-page #reviews .woocommerce-review__published-date,
  .hpw-modern-product-page #reviews [class*="review-meta"] {
    font-size: 14px;
    font-weight: 500;
  }

  .hpw-modern-product-page #reviews .description,
  .hpw-modern-product-page #reviews .description p,
  .hpw-modern-product-page #reviews .cr-comment-text > p,
  .hpw-modern-product-page #reviews [class*="review-content"] {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }

  .hpw-pdp-related h2 {
    font-size: 24px;
    font-weight: 700;
  }
}

/*
 * Keep one consistent vertical rhythm between the PDP configuration sections.
 * These rules only adjust outer section spacing; card padding and behavior stay
 * unchanged. Hidden/absent sections do not reserve any space.
 */
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .single_variation_wrap
  > .hpw-pdp-availability {
  margin: 16px 0 0 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .single_variation_wrap
  > .hpw-service-wrapper,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  form.cart:not(.variations_form)
  > .hpw-service-wrapper {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .woocommerce-variation-add-to-cart {
  margin-top: 16px !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  form.cart:not(.variations_form):has(
    > .wc-pao-addons-container,
    > .hpw-pdp-availability,
    > .hpw-service-wrapper
  )
  > .hpw-atc-row {
  margin-top: 16px !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  form.cart:not(.variations_form)
  > .hpw-pdp-availability {
  margin: 16px 0 0 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .woocommerce-variation-add-to-cart,
.single-product .hpw-modern-product-page .hpw-pdp-native-form .hpw-atc-row {
  column-gap: 12px;
  row-gap: 16px;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-auto-reorder-panel {
  margin-top: 0 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-pdp-configured-total {
  margin-bottom: 0;
}

/* Final modern-PDP form/table rules. Keep these more specific than the
 * legacy WooCommerce and Product Add-ons typography bundled by the site. */
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  table.variations
  th.label,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  table.variations
  th.label
  label,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  table.variations
  td.value,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  table.variations
  td.value
  select,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  table.variations
  [data-hpw-flyout-trigger],
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  table.variations
  [class*="flyout-trigger"],
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-container
  .wc-pao-addon-name,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-container
  select.wc-pao-addon-select {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-special-instructions {
  display: flex !important;
  width: 100% !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-special-instructions
  .wc-pao-addon-name,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-special-instructions
  label {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .wc-pao-addon-special-instructions
  textarea,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  textarea.wc-pao-addon-custom-textarea {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* The global PDP textarea minimum visually expands a three-row Stock field to
 * roughly four lines. Let rows="3" control only Stock hair-system products. */
.single-product
  .hpw-modern-product-page[data-hpw-stock-hair-product="true"]
  .hpw-pdp-native-form
  .wc-pao-addon-special-instructions
  textarea,
.single-product
  .hpw-modern-product-page[data-hpw-stock-hair-product="true"]
  .hpw-pdp-native-form
  textarea.wc-pao-addon-custom-textarea[name*="special"] {
  height: auto !important;
  min-height: 0 !important;
}

.single-product
  .hpw-modern-product-page[data-hpw-supplies-product="true"]
  .hpw-pdp-configured-total,
.single-product
  .hpw-modern-product-page[data-hpw-service-product="true"]
  .hpw-pdp-configured-total {
  display: none !important;
}

.single-product .hpw-modern-product-page .hpw-pdp-accordion__panel table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-accordion__panel
  table
  tbody
  > tr:nth-child(odd) {
  background: #fff !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-accordion__panel
  table
  tbody
  > tr:nth-child(even) {
  background: #f6f6f8 !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-accordion__panel
  table
  tbody
  > tr
  > :first-child {
  width: 30%;
}

/* Final scoped PDP type sizes. Keep the existing weights supplied by the
 * service and Auto-Reorder components. */
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-service-title,
.single-product .hpw-modern-product-page .hpw-pdp-native-form .hpw-ar-heading,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-buying-options-heading,
.single-product .hpw-modern-product-page .hpw-pdp-configured-total__label {
  font-size: 16px !important;
}

.single-product .hpw-modern-product-page .hpw-pdp-native-form .hpw-service-name,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-ar-option-title,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-purchase-option-title,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-service-price,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-ar-option-price,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-native-form
  .hpw-purchase-option-price {
  font-size: 15px !important;
}

/* A text decoration applied to the parent link propagates through child
 * content. Keep the link itself clean and underline only its text label. */
.single-product .hpw-modern-product-page .hpw-pdp-rating:hover,
.single-product .hpw-modern-product-page .hpw-pdp-rating:focus-visible {
  text-decoration: none !important;
}

.single-product
  .hpw-modern-product-page
  .hpw-pdp-rating:hover
  > span:last-child,
.single-product
  .hpw-modern-product-page
  .hpw-pdp-rating:focus-visible
  > span:last-child {
  text-decoration: underline;
}

.single-product .hpw-modern-product-page .hpw-pdp-accordion__panel table th,
.single-product .hpw-modern-product-page .hpw-pdp-accordion__panel table td {
  padding: 12px 14px;
  border: 0;
  background: transparent !important;
  text-align: left;
  vertical-align: top;
}

/* Gallery zoom and touch gestures. */
.hpw-pdp-gallery__magnifier {
  position: absolute;
  z-index: 6;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 275%;
  box-shadow: 0 8px 28px rgba(15, 36, 64, 0.24);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.hpw-pdp-gallery__magnifier.is-visible {
  opacity: 1;
}

.hpw-pdp-lightbox__content img {
  transform-origin: center;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hpw-pdp-lightbox__content img.is-resetting {
  transition: transform 180ms ease;
}

.hpw-pdp-service-warning {
  margin: 15px 0 0px;
  padding: 12px 15px;
  border: 1px solid #efc36d;
  border-radius: 8px;
  background: #fff8e8;
  color: #8a5700;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.hpw-pdp-service-warning[hidden] {
  display: none !important;
}

.hpw-pdp-mixed-cart {
  width: min(520px, calc(100vw - 32px));
  padding: 30px;
  border: 0;
  border-radius: 16px;
  color: var(--hpw-pdp-color-text, #101828);
  box-shadow: 0 24px 70px rgba(15, 36, 64, 0.28);
}

.hpw-pdp-mixed-cart::backdrop {
  background: rgba(10, 22, 38, 0.62);
}
.hpw-pdp-mixed-cart h2 {
  margin: 0 42px 12px 0;
  font-size: 24px;
  font-weight: 700;
}
.hpw-pdp-mixed-cart p {
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}
.hpw-pdp-mixed-cart__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef5fb;
  color: #101828;
  font-size: 25px;
  line-height: 1;
}
.hpw-pdp-mixed-cart__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
}
.hpw-pdp-mixed-cart__view,
.hpw-pdp-mixed-cart__new-cart {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 210px;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 18px;
  border: 1px solid var(--hpw-pdp-color-primary, #1473a8);
  border-radius: 7px;
  box-sizing: border-box;
  color: var(--hpw-pdp-color-primary, #1473a8);
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.hpw-pdp-mixed-cart__view {
  background: var(--hpw-pdp-color-primary, #1473a8);
  color: #fff;
}
.hpw-pdp-mixed-cart__new-cart {
  background: #fff;
  color: var(--hpw-pdp-color-primary, #1473a8);
}
.hpw-pdp-mixed-cart__view:hover,
.hpw-pdp-mixed-cart__view:focus {
  background: var(--hpw-pdp-color-primary, #1473a8);
  color: #fff;
  text-decoration: none;
}
.hpw-pdp-mixed-cart__new-cart:hover,
.hpw-pdp-mixed-cart__new-cart:focus {
  background: #fff;
  color: var(--hpw-pdp-color-primary, #1473a8);
}
.hpw-pdp-mixed-cart__new-cart[disabled] {
  cursor: wait;
  opacity: 0.7;
}

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .hpw-pdp-gallery__magnifier {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hpw-pdp-mixed-cart {
    padding: 24px 20px;
  }
  .hpw-pdp-mixed-cart__actions {
    flex-direction: column;
    align-items: center;
  }
  .hpw-pdp-mixed-cart__view,
  .hpw-pdp-mixed-cart__new-cart {
    max-width: none;
  }
}

/* Approved desktop typography gap fixes.
 * Keep these scoped to the modern PDP so legacy product forms and responsive
 * typography retain their existing presentation. The explicit specificity is
 * required to supersede the older variation/add-on and Auto-Reorder rules. */
@media (min-width: 1101px) {
  .single-product .hpw-modern-product-page nav.hpw-pdp-breadcrumbs,
  .single-product .hpw-modern-product-page nav.hpw-pdp-breadcrumbs a,
  .single-product
    .hpw-modern-product-page
    nav.hpw-pdp-breadcrumbs
    .hpw-pdp-breadcrumbs__separator {
    color: #3a3a3a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    table.variations
    th.label,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    table.variations
    th.label
    label,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    table.variations
    td.value,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    table.variations
    td.value
    select,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    table.variations
    [data-hpw-flyout-trigger],
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    table.variations
    [class*="flyout-trigger"],
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .wc-pao-addon-container
    .wc-pao-addon-name,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .wc-pao-addon-container
    select.wc-pao-addon-select {
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .single-product .hpw-modern-product-page .hpw-pdp-native-form textarea,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    textarea.wc-pao-addon-custom-textarea {
    font-size: 15px !important;
    font-weight: 500 !important;
  }

  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-auto-reorder-panel
    .hpw-ar-frequency-option,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-auto-reorder-panel
    .hpw-ar-frequency-option
    span {
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-auto-reorder-panel
    .hpw-ar-consent
    label,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .hpw-auto-reorder-panel
    .hpw-ar-consent
    label
    span {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
  }

  .single-product .hpw-modern-product-page .hpw-pdp-native-form .hpw-qty-label {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    .single_add_to_cart_button,
  .single-product
    .hpw-modern-product-page
    .hpw-pdp-native-form
    button[name="add-to-cart"] {
    font-size: 16px !important;
    font-weight: 700 !important;
  }
}
