/* Price styling uses WooCommerce's original values and genuine sale metadata. */
body.heretro-pdp-context #main .hrp-buy-panel section.hrp-price-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 10px;
  padding: 13px 14px;
  border: 1px solid #e1e6ee;
  border-radius: 10px;
  background: #fff;
  margin: 0 0 12px;
  box-shadow: none;
  min-width: 0;
}
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-price-top { display: contents; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-price-caption { display: none; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .price-wrapper { order: 1; min-width: 0; max-width: 100%; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .product-page-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  padding: 0;
  margin: 0 !important;
  color: #c82128;
  font: 750 30px/1.15 "Segoe UI", Arial, sans-serif !important;
}
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .product-page-price ins { order: 1; color: #c82128; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .product-page-price del {
  order: 2;
  color: #969daa;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  opacity: 1;
}
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .product-page-price .woocommerce-price-suffix { order: 3; color: #687384; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-saving {
  order: 2;
  margin: 0;
  padding: 4px 7px;
  border-radius: 5px;
  color: #fff;
  background: #b8202d;
  font: 700 12px/1.3 "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
}
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-countdown {
  order: 3;
  flex-basis: 100%;
  width: 100%;
  padding: 8px 10px;
  margin: 0;
  border: 1px solid #e1e6ee;
  border-radius: 7px;
  background: #f8f9fb;
  gap: 6px 12px;
}
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-countdown-label { color: #677486; font-size: 12px; font-weight: 500; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-timer { gap: 0; font-variant-numeric: tabular-nums; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-time-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c82128;
  font: 700 13px/1.4 "Segoe UI", Arial, sans-serif;
}
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-time-cell:first-child { margin-right: 5px; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-time-cell small { color: inherit; font: inherit; text-transform: lowercase; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-time-cell:not(:first-child) small { display: none; }
body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .hrp-time-cell:nth-child(n+3)::before { content: ":"; }

/* Native item data stays intact; text, color-group labels and images align. */
body.woocommerce-page #main dl.variation,
body #header dl.variation,
body #cart-popup dl.variation {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 3px 8px;
  min-width: 0;
  max-width: 100%;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  font: 400 11px/18px "Segoe UI", Arial, sans-serif;
}
body :is(#main, #header, #cart-popup) dl.variation > :is(dt, dd) {
  display: block !important;
  float: none !important;
  clear: none !important;
  align-self: start;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 11px !important;
  line-height: 18px !important;
  vertical-align: top;
  overflow-wrap: anywhere;
}
body :is(#main, #header, #cart-popup) dl.variation > dt { color: #657080; font-weight: 500; }
body :is(#main, #header, #cart-popup) dl.variation > dd { color: #3e4958; font-weight: 400; }
body :is(#main, #header, #cart-popup) dl.variation > dd::after { display: none !important; }
body :is(#main, #header, #cart-popup) dl.variation dd :is(p, .wcpa_cart_val, .wcpa_cart_type_color-group, .wcpa_cart_type_image-group) {
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
  font-size: inherit !important;
  line-height: 18px !important;
  color: inherit;
}
body :is(#main, #header, #cart-popup) dl.variation dd :is(.wcpa_cart_type_color-group, .wcpa_cart_type_image-group) {
  display: flex !important;
  align-items: flex-start;
  gap: 3px 5px;
}
body :is(#main, #header, #cart-popup) dl.variation dd .wcpa_cart_color.label_inside {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #3e4958 !important;
  font: inherit !important;
  line-height: 18px !important;
  text-align: left;
}
body :is(#main, #header, #cart-popup) dl.variation dd .wcpa_cart_color:not(.label_inside) {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
}
body :is(#main, #header, #cart-popup) dl.variation dd .wcpa_cart_val { word-break: normal; overflow-wrap: anywhere; }

@media (max-width: 549px) {
  body.heretro-pdp-context #main .hrp-buy-panel section.hrp-price-card { padding: 12px; gap: 10px 8px; }
  body.heretro-pdp-context #main .hrp-buy-panel .hrp-price-card .product-page-price { font-size: 28px !important; }
  body.woocommerce-page #main dl.variation { gap: 2px 6px; }
}

/* The native total stays available to the add-on calculator, without a second visible block. */
body.heretro-pdp-context #main .hrp-buy-panel form.hr-has-cta-total .wcpa_price_summary {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  pointer-events: none;
}
body.heretro-pdp-context #main .hrp-buy-panel :is(form.cart, .woocommerce-variation-add-to-cart, .sticky-add-to-cart):has(> .quantity):has(> .single_add_to_cart_button) {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 12px 10px;
}
body.heretro-pdp-context #main .hrp-buy-panel form.cart .quantity { width: 96px !important; }
body.heretro-pdp-context #main .hrp-buy-panel form.cart .single_add_to_cart_button.hr-cta-with-total {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px !important;
  min-width: 0;
  font-size: 13px !important;
  white-space: nowrap;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-cta-total {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.4);
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-cta-total[hidden],
body.heretro-pdp-context #main .hrp-buy-panel .hr-cta-context[hidden] { display: none !important; }
@media (max-width: 549px) {
  body.heretro-pdp-context #main .hrp-buy-panel :is(form.cart, .woocommerce-variation-add-to-cart, .sticky-add-to-cart):has(> .quantity):has(> .single_add_to_cart_button) { grid-template-columns: 84px minmax(0, 1fr) !important; gap: 10px 8px; }
  body.heretro-pdp-context #main .hrp-buy-panel form.cart .quantity { width: 84px !important; }
  body.heretro-pdp-context #main .hrp-buy-panel form.cart .single_add_to_cart_button.hr-cta-with-total { padding: 10px !important; font-size: 12px !important; }
  body.heretro-pdp-context #main .hrp-buy-panel .hr-cta-total { margin-left: 6px; padding-left: 6px; }
}

/* Compact arrival timeline, with the original dates and placement retained. */
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-card {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 12px 0 0 !important;
  padding: 14px 12px 12px !important;
  border: 1px solid #e8ecf1 !important;
  border-radius: 10px;
  background: #fafbfd !important;
  color: #172235;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-card h3 {
  margin: 0 0 12px !important;
  padding: 0;
  color: #172235;
  font: 650 14px/1.3 "Segoe UI", Arial, sans-serif;
  text-align: center;
  text-transform: none;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-stages > li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 3px;
  text-align: center;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-stages > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: #e0e5eb;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0 0 6px;
  border-radius: 50%;
  background: #f8ebed;
  color: #ae2833;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-stages strong {
  color: #273346;
  font: 600 12px/1.35 "Segoe UI", Arial, sans-serif;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-date {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: #647184;
  font: 400 11px/1.4 "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-note {
  margin: 9px 0 0 !important;
  padding: 0;
  border: 0;
  color: #667284;
  font: 400 10px/1.4 "Segoe UI", Arial, sans-serif;
  text-align: center;
}
@media (max-width: 549px) {
  body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-card { padding: 12px 8px 10px !important; margin-top: 10px !important; }
  body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-card h3 { margin-bottom: 11px !important; }
  body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-stages > li { padding: 0 2px; }
  body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-stages > li:not(:last-child)::after { top: 15px; }
  body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-icon { width: 30px; height: 30px; flex-basis: 30px; }
  body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-stages strong { font-size: 11px; }
  body.heretro-pdp-context #main .hrp-buy-panel .hr-arrival-date { font-size: 11px; }
}
