/* Buscador y localizador del molde. Los colores salen de las variables del tema; si no las define, valen estos. */
.ma-search,
.ma-locator {
    --ma-ink: var(--shop-ink, #10233f);
    --ma-brand: var(--shop-brand, #0b3d91);
    --ma-accent: var(--shop-accent, #f26a1b);
    --ma-line: var(--shop-line, #d9dfe8);
    --ma-soft: var(--shop-soft, #f4f6fa);
}

.ma-search {
    position: relative;
    display: flex;
    width: 100%;
    margin: 0;
}

.ma-search__input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--ma-brand);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: var(--ma-ink);
    font-size: 16px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.ma-search__input[type="search"]::placeholder {
    color: #5d6b82;
}

/* Anillo en el azul de marca: el naranja transparente de antes apenas se veía sobre blanco (1,86:1). */
.ma-search__input[type="search"]:focus {
    outline: 3px solid var(--ma-brand);
    outline-offset: 0;
    background: #fff;
}

.ma-search__button {
    display: grid;
    place-items: center;
    width: 56px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--ma-accent);
    color: #fff;
    cursor: pointer;
}

.ma-search__button:hover,
.ma-search__button:focus-visible {
    background: color-mix(in srgb, var(--ma-accent) 85%, #000);
    color: #fff;
}

.ma-search__results {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(70vh, 560px);
    overflow: auto;
    border: 1px solid var(--ma-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 40px rgb(16 35 63 / 18%);
}

.ma-search__empty {
    margin: 0;
    padding: 16px;
    color: var(--ma-ink);
}

.ma-search__all {
    display: block;
    padding: 12px 16px;
    background: var(--ma-soft);
    color: var(--ma-brand);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.ma-hit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ma-line);
    color: var(--ma-ink);
    text-decoration: none;
}

.ma-hit:hover,
.ma-hit.is-active {
    background: var(--ma-soft);
    color: var(--ma-ink);
}

.ma-hit img {
    flex: none;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ma-hit__text {
    flex: 1;
    min-width: 0;
}

.ma-hit__title {
    display: block;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-hit__meta {
    display: block;
    color: #5d6b82;
    font-size: 13px;
}

/* Precio en naranja con texto de tamaño normal: el fuerte (5,18:1 sobre blanco), y el más oscuro sobre el gris del activo. */
.ma-hit__price {
    flex: none;
    color: var(--shop-accent-strong, #c2410c);
    font-weight: 800;
    white-space: nowrap;
}

.ma-hit:hover .ma-hit__price,
.ma-hit.is-active .ma-hit__price {
    color: var(--shop-accent-stronger, #9a3412);
}

/* Localizador */
.ma-locator__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ma-locator__step span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--ma-ink);
    font-weight: 700;
}

.ma-locator__step b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ma-brand);
    color: #fff;
    font-size: 14px;
}

.ma-locator__step select,
.ma-locator__step input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #9aa7ba;
    border-radius: 8px;
    background: #fff;
    color: var(--ma-ink);
    font-size: 16px;
    box-shadow: none;
}

.ma-locator__step select:disabled,
.ma-locator__step input:disabled {
    background: var(--ma-soft);
    color: #5d6b82;
}

.ma-locator__count {
    margin: 20px 0 10px;
    color: #5d6b82;
}

.ma-locator__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.ma-hit--card {
    border: 1px solid var(--ma-line);
    border-radius: 10px;
    background: #fff;
}

.ma-hit--card .ma-hit__title {
    white-space: normal;
}

@media (max-width: 720px) {
    .ma-locator__steps {
        grid-template-columns: 1fr;
    }
}

/* ---------- vista previa, plazo de entrega e instalador ---------- */
.ma-preview-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; padding: .6rem 1rem; background: #1f2937; color: #fff; font-size: .9rem; text-align: center; }
.ma-preview-banner a { color: #fde68a; text-decoration: underline; margin-left: .5rem; }
.ma-delivery { font-size: .95rem; }
.ma-delivery--cart { margin: 0 0 1.25rem; padding: .8rem 1rem; border: 1px solid #d1d5db; border-left: 4px solid #0f766e; border-radius: 6px; background: #f8fafc; }
.ma-delivery--cart ul { margin: 0; padding-left: 1.1rem; }
.ma-delivery--cart li { margin: .15rem 0; }
.ma-raee { margin: -.4rem 0 .8rem; font-size: .85rem; color: #4b5563; }
.ma-buy-from { margin: .3rem 0 0; color: #1d4ed8; }

/* ---------- catálogo en borrador (vista previa) ---------- */
.ma-hit__draft { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }
.ma-preview-draft { margin: 0 0 1rem; padding: .5rem .8rem; border-left: 4px solid #b45309; background: #fffbeb; color: #78350f; font-size: .9rem; }
.ma-locator__filter { margin: 18px 0 0; color: var(--ma-ink, #10233f); font-size: .95rem; }
.ma-locator__clear { margin-left: .3rem; padding: 2px 10px; border: 1px solid #9aa7ba; border-radius: 999px; background: #fff; color: var(--ma-brand, #0b3d91); font-size: .85rem; font-weight: 700; cursor: pointer; }

/* ---------- códigos de error ---------- */
.ma-codes { --mc-ink: var(--shop-ink, #10233f); --mc-muted: var(--shop-muted, #5d6b82); --mc-line: var(--shop-line, #d9dfe8); --mc-soft: var(--shop-soft, #f4f6fa); --mc-brand: var(--shop-brand, #0b3d91); --mc-accent: var(--shop-accent, #f26a1b); }
.ma-codes__crumbs { margin: 8px 0 14px; color: var(--mc-muted); font-size: .9rem; }
.ma-codes__crumbs a { color: var(--mc-brand); }
.ma-codes__head h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; color: var(--mc-ink); }
.ma-codes__lead { max-width: 820px; margin: 0 0 8px; font-size: 1.05rem; color: var(--mc-ink); }
.ma-codes__meta { margin: 0 0 18px; color: var(--mc-muted); font-size: .95rem; }
.ma-codes__meta a { font-weight: 700; }
.ma-codes__safety { margin: 0 0 22px; padding: 12px 16px; border-left: 4px solid #b91c1c; border-radius: 6px; background: #fef2f2; color: #7f1d1d; }
.ma-codes__safety p { margin: 0; }
.ma-codes__find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.ma-codes__find label { font-weight: 700; color: var(--mc-ink); }
.ma-codes__find input { flex: 1 1 220px; max-width: 320px; height: 44px; padding: 0 12px; border: 1px solid #9aa7ba; border-radius: 8px; background: #fff; color: var(--mc-ink); font-size: 16px; }
.ma-codes__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mc-line); }
.ma-code { padding: 16px 0; border-bottom: 1px solid var(--mc-line); scroll-margin-top: 90px; }
.ma-code:target { background: #fffbeb; }
.ma-code__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; color: var(--mc-ink); }
.ma-code__id { display: inline-block; min-width: 64px; padding: 2px 10px; border-radius: 6px; background: var(--mc-brand); color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem; text-align: center; }
.ma-code__models { margin: 0 0 4px; color: var(--mc-muted); font-size: .85rem; }
.ma-code__text { max-width: 860px; margin: 0 0 10px; color: var(--mc-ink); }
.ma-code__pieces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .92rem; }
.ma-code__pieces > span { color: var(--mc-muted); }
.ma-code__pieces--none { color: var(--mc-muted); font-style: italic; }
.ma-code__piece { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--mc-brand); border-radius: 999px; background: #fff; color: var(--mc-brand); font-weight: 700; text-decoration: none; }
.ma-code__piece:hover, .ma-code__piece:focus-visible { background: var(--mc-brand); color: #fff; }
.ma-code__piece small { padding: 0 6px; border-radius: 999px; background: var(--mc-soft); color: var(--mc-ink); font-size: .8rem; font-weight: 700; }
.ma-code__piece--none { border-color: var(--mc-line); color: var(--mc-muted); font-weight: 400; }
.ma-codes__empty { padding: 14px 0; color: var(--mc-muted); }
.ma-codes__locator { margin-top: 36px; scroll-margin-top: 80px; }
.ma-codes__help, .ma-codes__sources, .ma-codes__others, .ma-codes__tips { margin-top: 36px; }
.ma-codes__help h2, .ma-codes__sources h2, .ma-codes__others h2, .ma-codes__tips h2 { margin: 0 0 8px; font-size: 1.4rem; color: var(--mc-ink); }
.ma-codes__sources p, .ma-codes__sources li { color: var(--mc-muted); font-size: .9rem; }
.ma-codes__others ul, .ma-codes__brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ma-codes__others a { display: block; padding: 10px 14px; border: 1px solid var(--mc-line); border-radius: 10px; background: #fff; font-weight: 700; text-decoration: none; }
.ma-codes__brands-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 8px; }
.ma-codes__brands-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--mc-line); border-radius: 12px; background: #fff; color: var(--mc-ink); text-decoration: none; }
.ma-codes__brands-grid a:hover, .ma-codes__brands-grid a:focus-visible { border-color: var(--mc-brand); box-shadow: 0 2px 10px rgba(16, 35, 63, .08); }
.ma-codes__brands-grid strong { font-size: 1.15rem; color: var(--mc-brand); }
.ma-codes__brands-grid span { color: var(--mc-muted); font-size: .9rem; }
.ma-codes__tips ul { margin: 0; padding-left: 1.2rem; }
.ma-codes__tips li { margin: .4rem 0; }
.shop-locator__codes { margin: 16px 0 0; }

/* «¿Tu caldera X muestra un código de error?»: en la ficha, junto a la compra; en categorías y marcas, franja arriba. */
.ma-codes-cta { display: flex; align-items: center; gap: 12px; margin: 0 0 1.1rem; padding: 12px 16px; border: 2px solid var(--shop-accent, #f26a1b); border-radius: 10px; background: #fff7f0; color: var(--shop-ink, #10233f); text-decoration: none; }
a.ma-codes-cta:hover, a.ma-codes-cta:focus-visible { background: #ffeddc; color: var(--shop-ink, #10233f); }
a.ma-codes-cta:focus-visible, .ma-codes-cta__models a:focus-visible { outline: 3px solid var(--shop-brand, #0b3d91); outline-offset: 2px; }
.ma-codes-cta__icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--shop-accent, #f26a1b); color: #fff; }
.ma-codes-cta__body { display: grid; gap: 2px; min-width: 0; }
.ma-codes-cta__title { color: var(--shop-ink, #10233f); font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.ma-codes-cta__text { color: var(--shop-brand, #0b3d91); font-weight: 700; }
a.ma-codes-cta .ma-codes-cta__text { text-decoration: underline; text-underline-offset: 3px; }
/* Los modelos que cubre la página; con dos marcas (Baxi/Roca), cada «Códigos de…» es un enlace y se ve que lo es. */
.ma-codes-cta__models { color: var(--shop-muted, #5d6b82); font-size: .9rem; line-height: 1.4; }
.ma-codes-cta__models a { color: var(--shop-brand, #0b3d91); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ma-codes-cta__models a:hover, .ma-codes-cta__models a:focus-visible { color: var(--shop-accent-stronger, #9a3412); }
.ma-codes-cta--box { max-width: 560px; }
.ma-codes-cta--strip { margin-bottom: 20px; }
@media (max-width: 720px) {
    .ma-code__id { min-width: 0; }
    .ma-codes__find input { max-width: none; }
}
.shop-footer__phone { font-size: 1.2rem; margin: .2rem 0; }

/* ---------- ¿quieres que te lo instalen? (lleva a TopManitas) ---------- */
.ma-install-cta { margin: 1.25rem 0; border: 1px solid var(--ma-line); border-left: 4px solid var(--ma-accent); border-radius: 6px; padding: .9rem 1rem; background: var(--ma-soft); }
.ma-install-cta__title { margin: 0 0 .3rem; font-weight: 700; color: var(--ma-ink); font-size: 1.05rem; }
.ma-install-cta__text { margin: 0 0 .7rem; font-size: .95rem; }
.ma-install-cta p:last-child { margin-bottom: 0; }
.ma-codes__help .ma-install-cta { max-width: 640px; }

/* Información básica de protección de datos bajo la casilla de avisos de compra no terminada (cart-consent.js, 19-oct-2026). */
.ma-cart-consent-info { font-size: .8em; line-height: 1.45; opacity: .85; margin: .25em 0 1em 1.9em; }
.ma-cart-page { padding: 2em 0 3em; max-width: 42em; }

/* ---------- Formularios de solicitud (Requests.php): repuesto que no se encuentra y descuentos por lanzamiento ---------- */
.ma-req,
.ma-req-cta,
.ma-req-band,
.ma-req-link,
.ma-req-done {
    --ma-ink: var(--shop-ink, #10233f);
    --ma-brand: var(--shop-brand, #0b3d91);
    --ma-accent: var(--shop-accent, #f26a1b);
    --ma-line: var(--shop-line, #d9dfe8);
    --ma-soft: var(--shop-soft, #f4f6fa);
    --ma-muted: var(--shop-muted, #5d6b82);
}
.ma-req { max-width: 680px; }
.ma-req fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; }
.ma-req legend { margin: 0 0 .6rem; padding: 0; color: var(--ma-ink); font-size: 1.15rem; font-weight: 700; }
.ma-req__field { display: grid; gap: .3rem; margin: 0 0 .9rem; }
.ma-req__field label { color: var(--ma-ink); font-weight: 600; }
.ma-req__field input[type="text"],
.ma-req__field input[type="tel"],
.ma-req__field input[type="email"],
.ma-req__field select,
.ma-req__field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #8a96a8;
    border-radius: 8px;
    background: #fff;
    color: var(--ma-ink);
    font-size: 16px; /* 16 px: el iPhone no hace zoom al tocar el campo */
    box-shadow: none;
}
.ma-req__field textarea { min-height: 110px; }
.ma-req__field input:focus,
.ma-req__field select:focus,
.ma-req__field textarea:focus { outline: 3px solid rgb(11 61 145 / 25%); border-color: var(--ma-brand); }
.ma-req__field input[type="file"] { padding: 10px; border: 1px dashed #8a96a8; border-radius: 8px; background: var(--ma-soft); font-size: 15px; }
.ma-req__field [aria-invalid="true"] { border-color: #b91c1c; }
.ma-req__req { color: #b91c1c; }
.ma-req__opt,
.ma-req__hint { color: var(--ma-muted); font-size: .9rem; font-weight: 400; }
.ma-req__error { color: #b91c1c; font-size: .92rem; }
.ma-req__alert { padding: .8rem 1rem; border-left: 4px solid #b91c1c; border-radius: 6px; background: #fef2f2; color: #7f1d1d; font-weight: 600; }
.ma-req__check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.ma-req__check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.ma-req__legal { color: var(--ma-muted); font-size: .85rem; }
/* La casilla de ofertas (17-nov-2026): lo último antes del botón, en un recuadro suave. En ofertas flash, la misma caja sin casilla. */
.ma-req__offers { padding: .8rem 1rem; border: 1px solid var(--ma-line); border-left: 4px solid var(--ma-brand); border-radius: 8px; background: var(--ma-soft); color: var(--ma-ink); }
.ma-req__offers strong { font-weight: 700; }
.ma-req__submit .button { width: 100%; max-width: 360px; min-height: 52px; font-size: 1.05rem; }
.ma-req-done { max-width: 680px; padding: 1.25rem 1.4rem; border: 1px solid var(--ma-line); border-left: 4px solid var(--shop-ok, #15803d); border-radius: 8px; background: var(--ma-soft); }
.ma-req-done h2 { margin-top: 0; }
.ma-req-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 1.25rem 0; padding: 1rem 1.2rem; border: 1px solid var(--ma-line); border-left: 4px solid var(--ma-accent); border-radius: 8px; background: var(--ma-soft); }
.ma-req-cta strong { color: var(--ma-ink); font-size: 1.1rem; }
.ma-req-cta p { margin: .3rem 0 0; }
.ma-req-cta > div { flex: 1 1 320px; }
.ma-req-band { margin: 0 0 1rem; padding: .7rem 1rem; border: 1px solid var(--ma-line); border-radius: 8px; background: var(--ma-soft); }
.ma-req-band a,
.ma-req-link a { font-weight: 700; }
.ma-req-link { margin: .5rem 0 1rem; font-size: .95rem; }
.ma-tracking { margin: 1.5rem 0; }

/* ---------- Ofertas flash (Flash.php, 28-oct): distintivo amarillo en tarjetas y ficha, cuenta atrás y página de ofertas ---------- */
.ma-flash-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-grid;
    gap: 1px;
    padding: 5px 12px 6px;
    background: #ffd60a repeating-linear-gradient(0deg, rgba(17, 24, 39, .06) 0 1px, transparent 1px 3px);
    color: #111827;
    font-size: 12px;
    line-height: 1.15;
    text-transform: uppercase;
    clip-path: polygon(0 6%, 50% 0, 100% 5%, 97% 50%, 100% 96%, 50% 100%, 0 95%, 3% 50%);
    transform: rotate(-3deg);
}

.ma-flash-badge strong {
    font-weight: 900;
}

ul.products li.product {
    position: relative;
}

.ma-flash-clock {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.ma-flash-price del {
    opacity: .75;
}

.ma-flash-price ins {
    color: #b91c1c;
    text-decoration: none;
}

.ma-flash-box {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 6px solid #111827;
    background: #ffd60a repeating-linear-gradient(0deg, rgba(17, 24, 39, .05) 0 1px, transparent 1px 3px);
    color: #111827;
}

.ma-flash-box p {
    margin: 0 0 4px;
}

.ma-flash-box__head {
    font-weight: 900;
    text-transform: uppercase;
}

.ma-flash-box .ma-flash-clock {
    font-size: 1.25em;
}

.ma-flash-box__until,
.ma-flash-box__note {
    font-size: 13px;
}

.ma-flash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.ma-flash-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 2px solid #ffd60a;
    border-radius: 10px;
    background: #fff;
}

.ma-flash-card__img img {
    width: 100%;
    height: auto;
}

.ma-flash-card__title {
    color: #10233f;
    font-weight: 700;
    text-decoration: none;
}

.ma-flash-card p {
    margin: 0;
}

.ma-flash-card__buy.button {
    justify-self: start;
}

.ma-flash-note,
.ma-flash-empty {
    color: #5d6b82;
    font-size: 14px;
}

.ma-flash-empty {
    padding: 16px 18px;
    border-radius: 10px;
    background: #f4f6fa;
    color: #10233f;
    font-size: 16px;
}

/* ------------------------------------------------------------------ banner de cookies (inc/Consent.php, 29-oct-2026)
   Franja inferior sin muro. Los tres botones comparten UNA clase: se cambian los tres o ninguno (Rechazar cuesta lo mismo que Aceptar). */
#ma-cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; display: none; background: var(--shop-ink, #10233f); color: #fff; font: 15px/1.5 var(--shop-font, system-ui, sans-serif); border-top: 3px solid var(--shop-accent, #f26a1b); box-shadow: 0 -4px 24px rgba(0, 0, 0, .35); }
#ma-cookies.is-open { display: block; }
#ma-cookies .ma-cookies__in { max-width: 1100px; margin: 0 auto; padding: 14px 16px; max-height: 85vh; overflow-y: auto; overscroll-behavior: contain; }
#ma-cookies .ma-cookies__text { margin: 0 0 10px; color: #fff; font-size: 15px; }
#ma-cookies strong { color: #fff; }
#ma-cookies a { color: #ffb37a; text-decoration: underline; }
#ma-cookies .ma-cookies__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#ma-cookies .ma-cookies__btn { cursor: pointer; width: 100%; border: 2px solid #fff; border-radius: 8px; padding: 10px 12px; min-height: 44px; font: inherit; font-weight: 700; background: #fff; color: var(--shop-ink, #10233f); }
#ma-cookies .ma-cookies__btn:hover { background: #ffe9db; }
#ma-cookies .ma-cookies__btn:focus-visible, #ma-cookies .ma-cookies__close:focus-visible { outline: 3px solid #ffb37a; outline-offset: 2px; }
#ma-cookies .ma-cookies__close { margin-top: 10px; background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 4px 0; }
#ma-cookies .ma-cookies__cats { display: grid; gap: 8px; margin: 0 0 12px; }
#ma-cookies .ma-cookies__cat { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 10px; cursor: pointer; color: #fff; font-size: 14px; line-height: 1.4; }
#ma-cookies .ma-cookies__cat input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--shop-accent, #f26a1b); flex: none; }
@media (min-width: 768px) { #ma-cookies .ma-cookies__cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
    #ma-cookies .ma-cookies__in { padding: 12px 14px; max-height: 80vh; }
    #ma-cookies .ma-cookies__btns { grid-template-columns: 1fr; }
}
/* Con el banner abierto, el final de la página sigue viéndose entero. */
html[data-banner-cookies="abierto"] body { padding-bottom: 170px; }

/* El aviso de cookies no tapa nunca el pago (22-nov-2026; el 21-nov un comprador de móvil pulsó «Pagar» nueve veces y no pudo pagar).
   1. Las barras fijas del móvil (el botón «Pagar · importe» del pago y la barra de compra de la ficha) suben justo encima del aviso mientras
      pregunta; su alto lo pone consent.js en --ma-cookies-h. Sin ese dato (guion sin cargar), se quedan abajo como antes.
   2. Al final de esas dos páginas (el pago y la ficha con barra de compra) queda ese mismo hueco, para que lo último se pueda subir por
      encima del aviso y de la barra. Las demás páginas, sin barra fija, quedan como estaban. body::after no lo usa nada más en la tienda.
   3. Con una pantalla de pago abierta encima de la página (la de la tarjeta de SumUp), el aviso se quita de en medio y vuelve al cerrarla:
      iba por encima de ella y tapaba la caducidad, el código de seguridad y el botón de pagar. */
@media (max-width: 782px) {
    html[data-banner-cookies="abierto"] .wc-block-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row,
    html[data-banner-cookies="abierto"] .shop-buybar { bottom: var(--ma-cookies-h, 0px); }
    html[data-banner-cookies="abierto"] body.woocommerce-checkout::after,
    html[data-banner-cookies="abierto"] body.has-shop-buy-now.single-product::after { content: ""; display: block; height: var(--ma-cookies-h, 0px); }
}
body.sumup-modal-open #ma-cookies { display: none; }

/* La pantalla de la tarjeta de SumUp, a pantalla completa en el móvil (22-nov-2026). Medido en la tienda con la vista previa (pedido de prueba
   #66776): el conector la abre en una ventana que SE CIERRA AL TOCAR FUERA y deja ver debajo, atenuada, nuestra barra fija «Pagar»; en 360×640
   el botón de pagar de SumUp quedaba cortado por el borde de la ventana y, con el teclado abierto, cabían dos campos. Lo que el comprador veía
   abajo era NUESTRO «Pagar», y tocarlo cerraba la tarjeta sin cobrar: la huella del #66773 (nueve envíos del mismo pedido y ningún intento).
   En el móvil: la ventana ocupa toda la pantalla (no queda «fuera» donde tocar), se recorre entera con el dedo también con el teclado abierto,
   y nuestra barra fija no está mientras la tarjeta esté abierta. Se cierra con su aspa. En el ordenador no cambia nada. */
@media (max-width: 782px) {
    body.sumup-modal-open .wc-sumup-modal.components-modal__screen-overlay { display: block; height: 100%; height: 100dvh; padding: 0; overflow: hidden; background: #fff; }
    /* align-self: la hoja de los componentes de WordPress (la carga la tienda cuando SumUp está activo) pone «flex-end» en el móvil, y eso manda
       también sobre una caja con position absolute: la deja con el alto de su contenido y pegada abajo. Sin «stretch», el primer intento
       (22-nov, 12:46) quedó en 677 de 740 y tocar arriba la seguía cerrando; se volvió atrás a las 12:49. */
    body.sumup-modal-open .wc-sumup-modal .components-modal__frame { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; align-self: stretch; justify-self: stretch; box-sizing: border-box; width: auto; max-width: none; height: auto; max-height: none; min-height: 0; margin: 0; padding: 8px 16px calc(32px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 0; box-shadow: none; outline: 0; background: #fff; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transform: none; animation: none; }
    body.sumup-modal-open .wc-sumup-modal .components-modal__content { position: static; height: auto; max-height: none; margin: 0; padding: 0; overflow: visible; }
    body.sumup-modal-open .wc-block-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row { display: none; }
}
/* Aparte: un navegador que no entienda :has() tira la regla entera, y la de arriba (la que usa el pago de hoy) tiene que valer siempre. */
body:has(.wc-sumup-modal:not(.disabled):not(.no-modal)) #ma-cookies { display: none; }

/* ---------- Ventajas de comprar (Advantages, 11-nov-2026) ----------
   Cuatro, con icono y titular, en dos columnas; en el carrito y el pago de ordenador, las cuatro en fila. Mismo dibujo y mismo orden en
   la ficha, el carrito y el pago. El detalle de cada una se abre al tocarla (<details>, sin JavaScript) y entonces ocupa el ancho entero. */
.shop-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.shop-perks__item { margin: 0; border: 1px solid var(--shop-line, #d9dfe8); border-radius: 8px; background: var(--shop-soft, #f4f6fa); }
.shop-perks__item:has(details[open]) { grid-column: 1 / -1; }
.shop-perks summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: 8px; cursor: pointer; list-style: none; }
.shop-perks summary::-webkit-details-marker { display: none; }
.shop-perks summary::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin: 0 2px 3px auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .55; transform: rotate(45deg); }
.shop-perks details[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.shop-perks summary:focus-visible { outline: 3px solid var(--shop-brand, #0b3d91); outline-offset: 2px; }
.shop-perks__icon { flex: 0 0 24px; color: var(--shop-brand, #0b3d91); }
.shop-perks__title { min-width: 0; color: var(--shop-ink, #10233f); font-size: 14px; font-weight: 700; line-height: 1.2; }
.shop-perks__detail { margin: 0; padding: 0 12px 10px 42px; color: var(--shop-ink, #10233f); font-size: 14px; line-height: 1.45; }
.shop-perks__detail a { text-decoration: underline; }
@media (min-width: 783px) {
    .shop-perks--pago { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
    .shop-perks summary { gap: 6px; padding: 6px 8px; }
    .shop-perks__title { font-size: 13px; }
}

/* «Comprar ahora» con más cosas en el carrito: la línea que lo dice, encima de la pantalla de pago. */
.shop-buy-now-note { margin: 0 0 12px; padding: 10px 12px; border-left: 4px solid var(--shop-brand, #0b3d91); border-radius: 6px; background: var(--shop-soft, #f4f6fa); color: var(--shop-ink, #10233f); font-size: 15px; line-height: 1.4; }
.shop-buy-now-note a { text-decoration: underline; white-space: nowrap; }

/* Las ventajas en una sola línea (Advantages::strip): icono y titular mínimo. Va en la barra de compra del móvil. */
.shop-perks-strip { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px 12px; margin: 0; padding: 0; overflow: hidden; list-style: none; color: var(--shop-ink, #10233f); font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.shop-perks-strip li { display: flex; align-items: center; gap: 4px; margin: 0; min-width: 0; }
.shop-perks-strip .shop-perks__icon { flex: 0 0 16px; }

/* Pago: la línea informativa de las ofertas por correo, debajo del texto legal (BuyerList; la pone checkout-pago.js). Sin casilla. */
.ma-ofertas-aviso { margin: 6px 0 16px; color: var(--shop-muted, #55627a); font-size: 14px; line-height: 1.45; }
.ma-ofertas-aviso a { color: inherit; text-decoration: underline; }

/* «Pedido recibido», transferencias sin cobrar: el botón para recibir las ofertas por correo (BuyerList, 17-nov-2026). */
.ma-ofertas-boton { max-width: 680px; margin: 1.25rem 0; padding: 1rem 1.2rem; border: 1px solid var(--shop-line, #d9dfe8); border-left: 4px solid var(--shop-brand, #0b3d91); border-radius: 8px; background: var(--shop-soft, #f4f6fa); color: var(--shop-ink, #10233f); }
.ma-ofertas-boton p { margin: 0 0 .6rem; }
.ma-ofertas-boton p:last-child { margin-bottom: 0; }
.ma-ofertas-boton__title { font-size: 1.1rem; font-weight: 700; }
.ma-ofertas-boton__small { color: var(--shop-muted, #5d6b82); font-size: .9rem; }
