/* Product details use the space below the photo; the gallery keeps normal flow. */
body.mppc-product { --mppc-price-blue: #087fae; }
body.mppc-product .mppc-media-column { min-width: 0; }
body.mppc-product .mppc-media-column .mppc-details {
  display: block;
  border: 0;
  padding-top: 12px;
}
body.mppc-product .mppc-details > div + div { margin-top: 24px; }
body.mppc-product .mppc-details .eyebrow { display: none; }
body.mppc-product .mppc-details h2 { font-size: 20px !important; margin-bottom: 10px; }
body.mppc-product .mppc-details p { font-size: 14px; line-height: 1.65; margin: 0; }
body.mppc-product .mppc-details dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
body.mppc-product .mppc-details dl > div { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; padding: 8px 0; font-size: 12px; }
body.mppc-product .mppc-photo-frame { position: relative; }
body.mppc-product button.mppc-favorite-heart {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 44px; height: 44px; min-width: 0; padding: 0;
  display: grid; place-items: center; border: 1px solid #cbdbe6;
  border-radius: 50%; background: #fff; color: #1685b3;
  box-shadow: 0 2px 7px #102b5010; font-size: 0; line-height: 0;
}
body.mppc-product .mppc-favorite-heart::before { content: '♡'; font-size: 33px; line-height: 1; }
body.mppc-product .mppc-favorite-heart[aria-pressed=true]::before { content: '♥'; }
body.mppc-product .mppc-favorite-heart:hover { background: #edf8fc; border-color: #1685b3; }
body.mppc-product .mppc-save-status { display: block; font-size: 12px; color: #8d362c; }
body.mppc-product .mppc-save-status:empty { display: none; }
body.mppc-product .woocommerce-Price-amount { color: var(--mppc-price-blue); }
body.mppc-product .mppc-unit-price > strong,
body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:nth-last-child(-n+2) {
  font-size: 24px; font-weight: 400; color: var(--mppc-price-blue);
}
body.mppc-product .mppc-buy-panel .mppc-tiers tbody th,
body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:first-of-type { font-size: 15px; }
body.mppc-product .mppc-buy-panel .mppc-tiers thead th { font-size: 12px; }
body.mppc-product form.cart { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: start; }
body.mppc-product form.cart::before, body.mppc-product form.cart::after { content: none !important; display: none !important; }
body.mppc-product form.cart .quantity { width: auto; }
body.mppc-product form.cart .mppc-has-pack { width: 204px; grid-template-columns: 42px 30px minmax(0,60px) 30px 42px; }
body.mppc-product form.cart .mppc-quantity-hint { max-width: 204px; }
body.mppc-product .mppc-purchase-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
body.mppc-product .mppc-purchase-actions > button {
  display: flex; align-items: center; justify-content: center;
  min-width: 0 !important; min-height: 50px !important; width: 100%;
  margin: 0 !important; padding: 10px 8px; border-radius: 7px;
  font-size: 14px !important; line-height: 1.3; text-align: center;
}
body.mppc-product .mppc-purchase-actions > [data-save=budget] { border: 1px solid var(--accent); background: #edf6fc; color: var(--accent); }
body.mppc-product form.cart .single_add_to_cart_button { background: var(--accent) !important; }
body.mppc-product form.cart > .mppc-save-status { grid-column: 1 / -1; }
body.mppc-product .mppc-purchase-actions > button:disabled { opacity: .45; cursor: default; }
body.mppc-product .mppc-total { display: block; padding: 16px 0; }
body.mppc-product .mppc-total-label { display: block; font-size: 16px; margin-bottom: 9px; color: #52647b; }
body.mppc-product .mppc-total-prices { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: baseline; }
body.mppc-product .mppc-total-prices > strong { font-size: 27px; font-weight: 500; white-space: nowrap; }
body.mppc-product .mppc-total-prices small { font-size: 15px; font-weight: 400; color: #52647b; }
body.mppc-product .mppc-family-price { font-size: 17px; }
body.mppc-product .mppc-family-tiers { border-collapse: separate; border-spacing: 0 4px; width: 100%; table-layout: fixed; margin: 12px 0 16px; }
body.mppc-product .mppc-family-tiers caption { text-align: left; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
body.mppc-product .mppc-family-tiers th,
body.mppc-product .mppc-family-tiers td { padding: 7px 4px; border: 0; text-align: right; line-height: 1.3; }
body.mppc-product .mppc-family-tiers thead th { font-size: 11px; font-weight: 400; color: #52647b; }
body.mppc-product .mppc-family-tiers tr > :first-child { text-align: left; }
body.mppc-product .mppc-family-tiers tbody tr { cursor: pointer; }
body.mppc-product .mppc-family-tiers tbody tr > * { background: #f3f7fb; font-size: 15px; font-weight: 400; white-space: nowrap; }
body.mppc-product .mppc-family-tiers tbody tr > :first-child { border-radius: 5px 0 0 5px; }
body.mppc-product .mppc-family-tiers tbody tr > :last-child { border-radius: 0 5px 5px 0; }
body.mppc-product .mppc-family-tiers tbody tr:hover > *,
body.mppc-product .mppc-family-tiers tbody tr:focus-within > *,
body.mppc-product .mppc-family-tiers tbody tr.active > * { background: #dfedf8; }
body.mppc-product .mppc-family-tiers button { padding: 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: #344e69; }
body.mppc-product .mppc-color-total > strong { display: block; font-weight: 500; font-size: 15px; }
body.mppc-product .mppc-color-total small { font-weight: 400; }
@media (max-width:1100px) and (min-width:801px) {
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody th,
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:first-of-type { font-size: 12px; }
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:first-of-type { white-space: normal; }
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:nth-last-child(-n+2) { font-size: 20px; }
  body.mppc-product .mppc-color-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:800px) {
  body.mppc-product .mppc-media-column { display: contents; }
  body.mppc-product .mppc-media-column .mppc-gallery { grid-column: 1; grid-row: 1; }
  body.mppc-product div.product > .summary { grid-column: 1; grid-row: 2; }
  body.mppc-product .mppc-media-column .mppc-details { grid-column: 1; grid-row: 3; }
  body.mppc-product .mppc-unit-price > strong { font-size: 20px; }
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:nth-last-child(-n+2) { font-size: 18px; }
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody th,
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:first-of-type { font-size: 12px; }
  body.mppc-product .mppc-buy-panel .mppc-tiers tbody td:first-of-type { white-space: normal; }
  body.mppc-product .mppc-buy-panel .mppc-tiers thead th { font-size: 10px; white-space: normal; }
  body.mppc-product .mppc-total-prices { gap: 10px 18px; }
  body.mppc-product .mppc-total-prices > strong { font-size: 23px; }
  body.mppc-product .mppc-total-prices small { font-size: 13px; }
  body.mppc-product .mppc-purchase-actions > button { font-size: 12px !important; }
  body.mppc-product .mppc-family-tiers th,
  body.mppc-product .mppc-family-tiers td { padding: 6px 2px; }
  body.mppc-product .mppc-family-tiers thead th { font-size: 9px; }
  body.mppc-product .mppc-family-tiers tbody tr > * { font-size: 12px; }
  body.mppc-product .mppc-family-tiers button { font-size: 10px; }
}
@media (max-width:620px) { body.mppc-product .mppc-details dl { grid-template-columns: minmax(0,1fr); } }
@media (max-width:480px) {
  body.mppc-product form.cart { grid-template-columns: minmax(0,1fr); }
  body.mppc-product .mppc-purchase-actions > button { font-size: 13px !important; }
}
