/*
 * Substitui/adiciona: wp-content/plugins/alfaprint-suite/assets/css/product-m2-refinements-v4108.css
 * Alfa Printi Suite 4.10.8 — correção definitiva e estritamente escopada do produto por m².
 *
 * Esta folha é carregada depois das camadas v4.10.5–v4.10.7 e repete apenas
 * os seletores necessários para vencer os overrides acumulados do tema 3.5.27.
 */

html body:not(.wp-admin).single-product.alfa-product-m2-page {
    --apcsu-m2-v4108-navy: #0b1a3d;
    --apcsu-m2-v4108-royal: #2a4fcc;
    --apcsu-m2-v4108-green: #16a34a;
    --apcsu-m2-v4108-border: #d8e2f0;
}

/* -------------------------------------------------------------------------
 * Largura: as duas colunas crescem; informações continuam sendo a principal.
 * ---------------------------------------------------------------------- */
html body:not(.wp-admin).single-product.alfa-product-m2-page div.product.alfa-product-premium {
    width: min(1860px, calc(100% - 12px)) !important;
    max-width: 1860px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page
    div.product.alfa-product-premium > .alfa-product-premium__top {
    display: grid !important;
    grid-template-columns: minmax(0, 43fr) minmax(560px, 57fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page :is(
    .alfa-product-premium__gallery-card,
    .alfa-product-premium__summary-card
) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* -------------------------------------------------------------------------
 * Cidade/UF: exatamente a mesma tipografia e o mesmo verde da data prevista.
 * O agrupamento inclui strong e small para neutralizar estilos nativos.
 * ---------------------------------------------------------------------- */
html body:not(.wp-admin).single-product.alfa-product-m2-page
    .apcsu-prod-delivery-box--mini :is(
        .apcsu-prod-mini-dates,
        .apcsu-prod-mini-cep-city
    ) {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--apcsu-m2-v4108-green) !important;
    -webkit-text-fill-color: var(--apcsu-m2-v4108-green) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* -------------------------------------------------------------------------
 * Ícones Font Awesome: azul-marinho na interface; em botões preenchidos,
 * herdam a cor contrastante do próprio botão para nunca desaparecerem.
 * ---------------------------------------------------------------------- */
html body:not(.wp-admin).single-product.alfa-product-m2-page .alfa-product-premium :is(
    i.fa,
    i.fas,
    i.far,
    i.fab,
    i.fa-solid,
    i.fa-regular,
    i.fa-brands,
    i[class^="fa-"],
    i[class*=" fa-"],
    svg.svg-inline--fa
) {
    color: var(--apcsu-m2-v4108-navy) !important;
    fill: currentColor !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page .alfa-product-premium :is(
    .single_add_to_cart_button,
    .apcsu-ui-button-primary,
    .apcsu-prod-primary-action,
    [class*="button-primary"]
) :is(i, svg.svg-inline--fa) {
    color: #ffffff !important;
    fill: currentColor !important;
}

/* -------------------------------------------------------------------------
 * Preço mínimo: nunca fica invisível, colapsado ou com aria-hidden.
 * O JavaScript v4.10.8 troca este mesmo conteúdo pelo total calculado.
 * ---------------------------------------------------------------------- */
html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-price-wrap--m2,
html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-price-wrap--m2 :is(
        .alfa-product-price-prefix,
        .price,
        .woocommerce-Price-amount,
        .woocommerce-Price-amount bdi
    ) {
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-price-wrap--m2 :is(.alfa-product-price-prefix, .price) {
    display: block !important;
    pointer-events: auto !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-price-wrap--m2 .price.is-calculated {
    color: var(--apcsu-m2-v4108-green) !important;
}

/* -------------------------------------------------------------------------
 * Fornecimento de arte: reserva somente o respiro necessário e remove o
 * deslocamento que fazia a borda/sombra ser cortada no hover.
 * ---------------------------------------------------------------------- */
html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step,
html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step.is-open,
html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step.is-open > .apcsu-m2-step__content {
    overflow: visible !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step.is-open > .apcsu-m2-step__content {
    box-sizing: border-box !important;
    padding: 7px 5px 6px !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step :is(
        .apcsu-core-art-flow-grid,
        .apcsu-core-art-flow-options
    ) {
    box-sizing: border-box !important;
    overflow: visible !important;
    padding: 3px !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step :is(
        .apcsu-core-art-flow-card,
        .apcsu-m2-choice-card
    ),
html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step :is(
        .apcsu-core-art-flow-card,
        .apcsu-m2-choice-card
    ):is(:hover, :focus, :focus-visible, :focus-within, :active) {
    box-sizing: border-box !important;
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    overflow: visible !important;
}

html body:not(.wp-admin).single-product.alfa-product-m2-page
    .alfa-product-options-card .apcsu-core-product-art-flow.apcsu-m2-step :is(
        .apcsu-core-art-flow-card,
        .apcsu-m2-choice-card
    ):is(:hover, :focus-visible, :focus-within) {
    border-color: var(--apcsu-m2-v4108-royal) !important;
    box-shadow: 0 8px 22px rgba(42, 79, 204, 0.14) !important;
}

@media (max-width: 1023px) {
    html body:not(.wp-admin).single-product.alfa-product-m2-page
        div.product.alfa-product-premium > .alfa-product-premium__top {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 767px) {
    html body:not(.wp-admin).single-product.alfa-product-m2-page div.product.alfa-product-premium {
        width: calc(100% - 8px) !important;
        max-width: none !important;
    }

    html body:not(.wp-admin).single-product.alfa-product-m2-page .alfa-product-premium__gallery-card {
        padding: 9px !important;
    }

    html body:not(.wp-admin).single-product.alfa-product-m2-page :is(
        .alfa-product-premium__summary-card,
        .alfa-product-m2-description-card,
        .alfa-product-m2-short-description-card
    ) {
        padding: 11px !important;
    }
}
