/* Venta por m² / metro / kg — anexo opt-in. Solo se carga si la tienda lo prendió. Colores de la tienda. */
.dp-su {
    --su-ink: var(--text, var(--text-color, #1f2937));
    --su-accent: var(--primary, var(--primary-color, #2563eb));
    --su-line: color-mix(in srgb, var(--su-ink) 12%, transparent);
    --su-soft: color-mix(in srgb, var(--su-ink) 4%, transparent);
    --su-mute: color-mix(in srgb, var(--su-ink) 60%, transparent);
    margin: 10px 0 14px;
    color: var(--su-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    border: 1px solid var(--su-line);
    border-radius: 12px;
    overflow: hidden;
}
/* Solo se esconde el precio de la caja y su tachado (el bloque los muestra por m² y por caja).
   Promos (3x2, % por transferencia, etc.) quedan visibles. */
html.dp-su-page #product-price-block > #product-effective-price,
html.dp-su-page #product-price-promo-wrap > .discount-badge,
html.dp-su-page #product-price-promo-wrap > .product-compare-price-old { display: none !important; }
/* El aviso «Elegís si pagás en…» de la tienda ya va dentro del bloque (y la moneda se elige con los botones). */
html.dp-su-page #dp-cur-hint-pd, html.dp-su-page-dual #dp-cur-hint-pd { display: none !important; }

/* 1) Precios: dos casilleros */
.dp-su__prices { padding: 12px 14px 14px; }
.dp-su__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; margin-bottom: 10px; }
.dp-su__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--su-mute); }
.dp-su__seg {
    display: inline-flex; padding: 2px; border-radius: 999px; background: var(--su-soft); border: 1px solid var(--su-line);
}
.dp-su__seg button {
    margin: 0; padding: 3px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--su-mute);
    font: inherit; font-size: 0.75rem; font-weight: 600; line-height: 1.3; cursor: pointer; box-shadow: none;
}
.dp-su__seg button.is-on { background: var(--bg, #fff); color: var(--su-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.dp-su__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-su__tile {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    padding: 10px 12px; border: 1px solid var(--su-line); border-radius: 10px; background: var(--bg, #fff);
}
.dp-su__tile--unit { border-color: color-mix(in srgb, var(--su-accent) 45%, transparent); background: color-mix(in srgb, var(--su-accent) 5%, var(--bg, #fff)); }
.dp-su__k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--su-mute); }
.dp-su__k em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; }
.dp-su__p { font-size: clamp(1.25rem, 4.6vw, 1.5rem); font-weight: 800; line-height: 1.15; color: var(--su-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-su__tile--unit .dp-su__p { color: var(--su-accent); }
.dp-su__p2 { font-size: 0.85rem; font-weight: 500; color: var(--su-mute); white-space: nowrap; }
.dp-su__u { font-size: 0.85rem; font-weight: 600; color: var(--su-mute); }
.dp-su__line { margin-top: 8px; font-size: 0.86rem; color: var(--su-mute); }
.dp-su__line b { font-weight: 700; color: var(--su-ink); white-space: nowrap; }
.dp-su__line[hidden], .dp-su__old[hidden] { display: none !important; }
.dp-su__old { font-size: 0.82rem; color: var(--su-mute); }
.dp-su__off {
    display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px;
    background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; font-weight: 700; font-size: 0.75rem;
}

/* 2) Calculadora */
.dp-su__calc { padding: 12px 14px; background: var(--su-soft); border-top: 1px solid var(--su-line); }
.dp-su__ask { display: block; margin: 0 0 8px; font-weight: 700; font-size: 0.92rem; }
.dp-su__inrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dp-su__field {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--bg, #fff); border: 1px solid color-mix(in srgb, var(--su-ink) 22%, transparent); border-radius: 8px; padding: 0 12px;
}
.dp-su__field:focus-within { border-color: var(--su-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--su-accent) 18%, transparent); }
.dp-su__field input {
    width: 90px; margin: 0; border: 0; outline: 0; background: transparent; color: inherit; box-shadow: none;
    font-size: 16px; font-weight: 600; padding: 8px 0; min-height: 0; -moz-appearance: textfield;
}
.dp-su__field input::-webkit-outer-spin-button,
.dp-su__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dp-su__field span { color: var(--su-mute); font-weight: 600; font-size: 0.9rem; }
.dp-su__waste { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.84rem; color: var(--su-mute); cursor: pointer; white-space: nowrap; }
.dp-su__waste input { width: 16px; height: 16px; margin: 0; accent-color: var(--su-accent); }
.dp-su__err { margin: 8px 0 0; font-size: 0.8rem; color: #b45309; }
.dp-su__err:empty { display: none; }

/* 3) Resultado */
.dp-su__res {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
    padding: 12px 14px; border-top: 1px solid var(--su-line);
}
.dp-su__res-qty, .dp-su__res-total { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dp-su__res-total { align-items: flex-end; text-align: right; }
.dp-su__res strong { font-size: 1.15rem; font-weight: 800; line-height: 1.2; color: var(--su-ink); white-space: nowrap; }
.dp-su__res-total strong { font-size: 1.3rem; color: var(--su-accent); }
.dp-su__res-sub { font-size: 0.82rem; color: var(--su-mute); white-space: nowrap; }
.dp-su__res-total small { font-size: 0.8rem; color: var(--su-mute); }
.dp-su__rate { margin: 0; padding: 7px 14px; font-size: 0.72rem; color: var(--su-mute); background: var(--su-soft); border-top: 1px solid var(--su-line); }

@media (max-width: 480px) {
    .dp-su__prices, .dp-su__calc, .dp-su__res, .dp-su__rate { padding-left: 12px; padding-right: 12px; }
    .dp-su__tile { padding: 9px 10px; }
}

/* Tarjetas */
.dp-su-hide { display: none !important; }
.dp-su-card { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.dp-su-card__main { font-weight: 800; font-size: 1.05rem; color: var(--primary, inherit); }
.dp-su-card__main small { font-weight: 600; font-size: 0.8rem; opacity: 0.75; }
.dp-su-card__alt { font-size: 0.85rem; font-weight: 600; opacity: 0.8; }
.dp-su-card__old { font-weight: 500; font-size: 0.85rem; opacity: 0.6; }
.dp-su-card__main > small:first-child { font-weight: 600; font-size: 0.78rem; opacity: 0.75; }
.dp-su__row[hidden] { display: none !important; }
.dp-su-card__pack { font-size: 0.78rem; opacity: 0.72; }

/* Carrito / checkout / barra fija */
.dp-su-note {
    margin-top: 3px; font-size: 0.8rem; font-weight: 600; opacity: 0.8; font-variant-numeric: tabular-nums;
}
.dp-su-sticky { font-size: 0.8em; opacity: 0.75; font-weight: 600; }
