/* Scope all overrides to verified MP rows and the new membership control. */
.fmmm-block-mp .wc-block-components-product-price__value,
.fmmm-block-mp .wc-block-components-product-price__regular,
.fmmm-block-mp .wc-block-components-product-price .screen-reader-text,
.fmmm-block-mp .wc-block-components-sale-badge,
.fmmm-block-mp > .screen-reader-text { display: none !important; }
.fmmm-block-mp .wc-block-components-product-price { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fmmm-blocks-mp { margin: 18px 0; padding: 18px; border: 1px solid #dce4e8; border-radius: 20px; background: #f7f9fa; color: #20292e; font: inherit; font-size: 13px; line-height: 1.6; min-width: 0; }
.fmmm-blocks-mp *, .fmmm-blocks-mp *::before, .fmmm-blocks-mp *::after { box-sizing: border-box; }
.fmmm-blocks-mp :where(p,h3,dl,dt,dd) { margin: 0; overflow-wrap: anywhere; }
.fmmm-blocks-mp h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.fmmm-blocks-mp__totals { display: grid; gap: 10px; margin-bottom: 16px !important; }
.fmmm-blocks-mp__totals > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; }
.fmmm-blocks-mp__totals dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.fmmm-blocks-mp__controls { display: grid; gap: 12px; }
.fmmm-blocks-mp__controls label { display: grid; gap: 6px; min-width: 0; }
.fmmm-blocks-mp__controls input { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #b7c4cc; border-radius: 10px; background: #fff; color: #20292e; font: inherit; }
.fmmm-blocks-mp__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fmmm-blocks-mp__buttons button { flex: 1 1 auto; max-width: 100%; min-height: 44px; height: auto; margin: 0; padding: 9px 12px; border: 1px solid #c9d4db; border-radius: 12px; background: #fff; color: #20292e; font: inherit; font-weight: 600; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.fmmm-blocks-mp__buttons button:first-child { background: #d9f8a7; border-color: #c4df9c; }
.fmmm-blocks-mp__buttons button:disabled { opacity: .65; cursor: wait; }
.fmmm-blocks-mp :where(input,button):focus-visible { outline: 2px solid #273b44; outline-offset: 3px; }
.fmmm-blocks-mp__terms { margin-top: 15px !important; padding-top: 14px; border-top: 1px solid #dce4e8; color: #52616a; font-size: 12px; }
/* Woo's order-meta slot styles every grandchild as a totals row, including this card. */
.wc-block-components-totals-wrapper.slot-wrapper .fmmm-blocks-mp { padding: 18px; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__controls input { height: auto; min-height: 44px; padding: 10px 12px; font-size: 16px; line-height: 1.4; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp h3 { font-size: 17px !important; font-weight: 600 !important; line-height: 1.4 !important; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp :is(p,label) { font-size: 14px !important; line-height: 1.55 !important; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp p.fmmm-blocks-mp__terms { font-size: 12px !important; line-height: 1.55 !important; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__buttons button { min-height: 44px !important; height: auto !important; padding: 10px 12px !important; border: 1px solid #c9d4db !important; border-radius: 12px !important; background: #fff !important; color: #20292e !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.45 !important; letter-spacing: 0 !important; text-transform: none !important; white-space: normal !important; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__buttons button:first-child { background: #d9f8a7 !important; border-color: #c4df9c !important; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__buttons button:hover:not(:disabled) { border-color: #657780 !important; }
.fmmm-native-mp-total td { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* Keep narrow tablet sidebars readable without moving the checkout columns. */
@media (min-width:700px) and (max-width:900px) {
  body.fmmm-blocks-offers-ready .wc-block-checkout__sidebar .wc-block-components-order-summary .wc-block-components-order-summary-item { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: start; column-gap: 12px; row-gap: 8px; }
  body.fmmm-blocks-offers-ready .wc-block-checkout__sidebar .wc-block-components-order-summary-item > .wc-block-components-order-summary-item__image { grid-column: 1; grid-row: 1 / span 2; width: 48px; margin-top: 4px; padding-bottom: 0; }
  body.fmmm-blocks-offers-ready .wc-block-checkout__sidebar .wc-block-components-order-summary-item > .wc-block-components-order-summary-item__description { display: contents; }
  body.fmmm-blocks-offers-ready .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description > * { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
  body.fmmm-blocks-offers-ready .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description > .wc-block-components-product-metadata { grid-column: 1 / -1; width: 100%; min-width: 0; }
  body.fmmm-blocks-offers-ready .wc-block-checkout__sidebar .wc-block-components-order-summary-item > .wc-block-components-order-summary-item__total-price { grid-column: 1 / -1; justify-self: end; margin-left: 0; padding-top: 0; text-align: right; }
}

/* Compact membership copy without changing Woo checkout columns or calculations. */
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__controls { gap: 10px; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__controls > :is(p,h3) { margin: 0 !important; }
.fmmm-blocks-mp__controls > [role="status"]:empty { display: none; }
.fmmm-blocks-mp__buttons > button { flex: 1 1 120px; }
@media (max-width: 360px), (min-width: 700px) and (max-width: 900px) {
  .fmmm-blocks-mp__buttons > button { flex-basis: 100%; width: 100%; }
  .wc-block-components-totals-wrapper.slot-wrapper .fmmm-blocks-mp { padding: 14px; }
}

/* A long recommendation has its own row; it cannot stretch the primary actions. */
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__buttons { align-items: flex-start; }
html :is(body,#fm-button-system,#fm-typography-root) .fmmm-blocks-mp .fmmm-blocks-mp__buttons > .fmmm-blocks-mp__recommend { flex: 1 1 100%; width: 100%; }
