/* Shared purchase panel. Native forms, hooks and quantity semantics stay intact. */
.ParentTopProducts .ParentVariable.mr-purchase-card {
  --purchase-accent: #9f1c31;
  --purchase-line: #e3dfe0;
  padding: 20px;
  border: 1px solid var(--purchase-line);
  border-radius: 20px;
  background: #f6f5f5;
  color: #292329;
  box-sizing: border-box;
}
.mr-purchase-card > .CustomMyPrice { width: 100%; min-width: 0; }
.ParentTopProducts .mr-purchase-card form.cart,
.ParentTopProducts .mr-purchase-card .woocommerce-variation-add-to-cart {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 12px;
  width: 100%;
  margin: 0 !important;
}
.ParentTopProducts .mr-purchase-card form.variations_form,
.ParentTopProducts .mr-purchase-card form.grouped_form {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.ParentTopProducts .mr-purchase-card .single_variation_wrap {
  width: 100%; gap: 12px; align-items: stretch;
}
.ParentTopProducts .mr-purchase-card .single-product-base-price-wrap,
.ParentTopProducts .mr-purchase-card .theme-relocated-single-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 100%;
  width: 100%;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
}
.ParentTopProducts .mr-purchase-card .theme-relocated-single-price { margin: 0 0 4px; }
.mr-purchase-card .single-product-base-price-wrap > .price { margin: 0; min-width: 0; text-align: left; }
.mr-purchase-card .mr-purchase-price-label,
.ParentTopProducts .mr-purchase-card .theme-relocated-single-price .LabelsPrice {
  color: #43383d; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ParentTopProducts .mr-purchase-card .single-product-base-price-wrap .theme-price-wrap {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  align-items: center; gap: 6px; direction: rtl; padding: 0;
}
.ParentTopProducts .mr-purchase-card .theme-price-wrap .theme-price-numbers {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
.ParentTopProducts .mr-purchase-card .theme-price-wrap .theme-price-current {
  font-size: 18px !important; font-weight: 700; line-height: 1.6;
  color: var(--purchase-accent);
}
.ParentTopProducts .mr-purchase-card .theme-price-wrap .theme-price-regular {
  font-size: 10px; color: #8d7c83; line-height: 1.35;
}
.mr-purchase-card .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 400; }
.ParentTopProducts .mr-purchase-card .cart .single_add_to_cart_button.button.alt {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  min-height: 48px;
  height: auto;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  gap: 7px;
  color: #fff;
  background: var(--purchase-accent) !important;
}
.mr-purchase-card .single_add_to_cart_button svg { width: 18px; height: 18px; flex-shrink: 0; }
.ParentTopProducts .mr-purchase-card .cart .single_add_to_cart_button:is(:disabled, .disabled) {
  opacity: .45; cursor: not-allowed;
}
.ParentTopProducts .mr-purchase-card .cart .customQuantityWrapper {
  flex: 0 0 100px; min-width: 100px; height: 48px;
  padding: 7px; border: 1px solid var(--purchase-line); border-radius: 12px;
  background: #fff; gap: 5px; justify-content: space-between;
}
.ParentTopProducts .mr-purchase-card .cart .customQuantityWrapper .input-text {
  min-width: 26px; width: 26px !important; height: 30px; text-align: center;
}
.mr-purchase-card .variations { width: 100%; }
.mr-purchase-card .carton-sale-info { width: 100%; flex: 0 0 100%; }
.ParentTopProducts .mr-purchase-card .txtHelpsBox {
  margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--purchase-line);
  color: #76676e; font-size: 12px; line-height: 1.9;
}
.mr-purchase-card .stock { font-size: 12px; margin: 0 0 12px; }
/* Grouped products retain one independent quantity control per child. */
.mr-purchase-card .woocommerce-grouped-product-list {
  width: 100%; margin: 0; border: 0; border-collapse: collapse;
}
.mr-purchase-card .woocommerce-grouped-product-list tr {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--purchase-line);
}
.mr-purchase-card .woocommerce-grouped-product-list td { border: 0; padding: 0; font-size: 13px; min-width: 0; }
.mr-purchase-card .woocommerce-grouped-product-list-item__label { grid-column: 1 / -1; grid-row: 1; }
.mr-purchase-card .woocommerce-grouped-product-list-item__price { align-self: center; text-align: left; }
.ParentTopProducts .mr-purchase-card form.grouped_form > .single_add_to_cart_button,
.ParentTopProducts .mr-purchase-card[data-product-type="external"] form.cart > .single_add_to_cart_button {
  flex: 0 0 auto; width: 100%;
}
@media (max-width: 1260px) {
  .ParentTopProducts .ParentVariable.mr-purchase-card { padding: 18px 16px; }
}
@media (max-width: 768px) {
  .ParentTopProducts .ParentVariable.mr-purchase-card {
    background: #f6f5f5; border: 1px solid var(--purchase-line); border-radius: 18px;
  }
}
/* One shared price hierarchy for native sales and rule-based discounts. */
.ParentTopProducts .mr-purchase-card .theme-price-wrap.theme-price-onsale {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) max-content;
  grid-template-areas: "regular badge" "current current";
  justify-content: end;
  align-items: center;
  gap: 1px 8px;
  direction: rtl;
  padding: 0;
}
.ParentTopProducts .mr-purchase-card .theme-price-wrap.theme-price-onsale .theme-price-numbers { display: contents; }
.ParentTopProducts .mr-purchase-card .theme-price-onsale .theme-discount-percent {
  grid-area: badge; justify-self: end; position: static; margin: 0; padding: 3px 7px;
  border-radius: 6px; background: #9f1c31; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1.5; direction: ltr;
}
.ParentTopProducts .mr-purchase-card .theme-price-onsale .theme-price-regular {
  grid-area: regular; justify-self: end; text-align: left; color: #8d8186;
  text-decoration: none;
}
.ParentTopProducts .mr-purchase-card .theme-price-onsale .theme-price-regular bdi {
  position: relative;
  display: inline-block;
  font-size: inherit !important;
  line-height: inherit;
}
.ParentTopProducts .mr-purchase-card .theme-price-onsale .theme-price-regular .woocommerce-Price-currencySymbol {
  font-size: inherit;
}
.ParentTopProducts .mr-purchase-card .theme-price-onsale .theme-price-regular bdi::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  border-block-start: 1px solid currentColor;
  pointer-events: none;
}
.ParentTopProducts .mr-purchase-card .theme-price-regular .woocommerce-Price-amount::after { content: none; }
.ParentTopProducts .mr-purchase-card .theme-price-onsale .theme-price-current {
  grid-area: current; justify-self: end; text-align: left;
  text-decoration: none; background: transparent; color: #292329;
  font-size: 20px !important; line-height: 1.2;
}
.ParentTopProducts .mr-purchase-card .theme-price-onsale .theme-price-current bdi {
  line-height: inherit;
  letter-spacing: normal;
  word-spacing: -.12em;
}
.ParentTopProducts .mr-purchase-card .theme-relocated-single-price .theme-price-wrap {
  width: 100%; display: grid; grid-template-columns: 1fr minmax(max-content, auto) max-content;
  grid-template-areas: "label regular badge" "label current current";
}
.ParentTopProducts .mr-purchase-card .theme-relocated-single-price .LabelsPrice {
  grid-area: label; justify-self: start; align-self: center; margin: 0;
}
.ParentTopProducts .mr-purchase-card .theme-relocated-single-price .theme-price-wrap:not(.theme-price-onsale) {
  grid-template-areas: "label current current";
}
.ParentTopProducts .mr-purchase-card .theme-relocated-single-price .theme-price-wrap:not(.theme-price-onsale) .theme-price-numbers { grid-area: current; }
