/* All styling is restricted to products explicitly given an m² display price. */
.pg-m2-catalog { display: inline-block; line-height: 1.35; }
.pg-m2-main { display: block; font-weight: 750; line-height: 1.2; color: #182a3c; }
.pg-m2-unit { margin-left: .12em; font-size: .65em; font-weight: 600; white-space: nowrap; }
.pg-m2-tax { display: block; font-size: 12px; line-height: 1.5; font-weight: 400; color: #536171; margin-top: 4px; }
.pg-m2-panel { display: block; width: 100%; box-sizing: border-box; margin: 16px 0 18px; clear: both; text-align: left; }
#top .pg-m2-panel .pg-m2-main, .pg-m2-panel .pg-m2-main { font-size: 32px; font-weight: 750; line-height: 1.2; }
#top .pg-m2-panel .pg-m2-piece, .pg-m2-panel .pg-m2-piece { font-size: 17px; font-weight: 600; color: #526171; line-height: 1.5; margin: 0 0 5px; }
.pg-m2-piece-unit { margin-left: .12em; }
.pg-m2-panel .pg-m2-prompt { font-size: 14px; font-weight: 400; }
/* Activated by JS only after confirming that the replacement panel exists. */
#top .summary.pg-m2-summary > .price, .summary.pg-m2-summary > .price { display: none !important; }
#top form.pg-m2-variation-ready .woocommerce-variation-price,
form.pg-m2-variation-ready .woocommerce-variation-price { display: none !important; }
@media (max-width: 480px) {
    #top .pg-m2-panel .pg-m2-main, .pg-m2-panel .pg-m2-main { font-size: 28px; }
}

/* 1.0.2: The shop may inject tax labels with CSS ::after on price amounts.
   Our m² block owns its tax label. Leave normal Woo amounts and /st alone. */
html body#top .pg-m2-main::before,
html body#top .pg-m2-main::after,
html body#top .pg-m2-main *::before,
html body#top .pg-m2-main *::after,
html body .pg-m2-main::before,
html body .pg-m2-main::after,
html body .pg-m2-main *::before,
html body .pg-m2-main *::after {
    content: none !important;
    display: none !important;
}

/* 1.0.3: Compact catalog price only. Product-page panel is unchanged. */
html body#top .pg-m2-catalog,
html body .pg-m2-catalog {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 2px;
    max-width: 100%;
    line-height: 1.4;
}
html body#top .pg-m2-catalog .pg-m2-main,
html body .pg-m2-catalog .pg-m2-main {
    display: inline !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    color: inherit;
    line-height: inherit;
    white-space: nowrap;
}
html body#top .pg-m2-catalog .pg-m2-unit,
html body .pg-m2-catalog .pg-m2-unit {
    font-size: 1em !important;
    font-weight: inherit;
    margin-left: 0;
}
html body#top .pg-m2-catalog .pg-m2-tax,
html body .pg-m2-catalog .pg-m2-tax {
    display: inline !important;
    margin: 0 !important;
    font-size: 1em !important;
    font-weight: 700 !important;
    color: inherit !important;
    line-height: inherit;
    white-space: nowrap;
}

/* 1.0.4: Extra space above the price, measured separately for each grid row. */
html body#top .products .pg-m2-aligned-price,
html body .products .pg-m2-aligned-price {
    display: block !important;
    padding-top: var(--pg-m2-row-space, 0px) !important;
}
