/*
 * Strato mobile della pagina prodotto (0.3.0): tabella vera scorrevole in orizzontale,
 * colonna Codice fissa, azioni compatte, barra in basso, testata compatta.
 * Tutte le regole stanno dentro media query per schermi stretti o dispositivi touch:
 * il desktop deve restare identico. Caricato dopo raccordo-mobile.css.
 *
 * raccordo.css ha regole con !important e selettori lunghi: qui si vince con selettori piu'
 * specifici (prefisso "html body.single-prodotti .aertubi-product-single" e classi ripetute),
 * senza toccare raccordo.css. Parti JS collegate (raccordo.js): initProductTableScroller(),
 * applyProductCompactLabels(), syncProductActionBarSpace(), showProductAddToast().
 */

/*
 * Unica regola fuori dalle media query: nella pagina prodotto il titolo e' diventato un h1
 * (render_modal_title con 'h1'). Qui si annullano margini, peso e spaziatura che il tema
 * (reset.css) e raccordo.css danno agli h1, cosi' su desktop resta identico allo span di prima.
 */
.aertubi-shop-modal__title-copy > h1.aertubi-shop-modal__title-main {
    margin: 0;
    font-weight: inherit;
    letter-spacing: inherit;
}

/* ===================================================================================
 * Telefono e tablet (fino a 1180px): pagina prodotto singola
 * =================================================================================== */
@media (max-width: 1180px) {
    /* Spazio sotto il contenuto: altezza reale della barra in basso (JS) + margine + safe-area. */
    html body.single-prodotti .aertubi-product-single.aertubi-product-single {
        padding-bottom: calc(var(--aertubi-single-bar-space, 64px) + 1.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* La colonna media aveva z-index:1 e chiudeva la barra fissa in un livello sotto la tabella. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__media-col {
        z-index: auto !important;
    }

    /* ---------- Testata: una sola scheda, colonne "trasparenti" ---------- */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo {
        min-height: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-auto-rows: auto !important;
        align-items: center !important;
        gap: 0.7rem 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0.8rem !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.95) !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col > .aertubi-shop-modal__media-col,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col > .aertubi-shop-modal__table-col,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__table-col > .aertubi-shop-modal__title-bar,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__title-bar > .aertubi-shop-modal__title {
        display: contents !important;
    }

    /* Ogni blocco occupa tutta la larghezza, nell'ordine del DOM; logo e lingue condividono la prima riga. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-media,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-shop-modal__title-copy,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-product-quick-description,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-build-stamp,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-table-editor,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-product-relations,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-original {
        grid-column: 1 / -1 !important;
        min-width: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-product-single__logo-anchor {
        grid-row: 1 !important;
        grid-column: 1 !important;
        justify-self: start !important;
        display: flex !important;
        align-items: center !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-single__logo-link {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 44px !important;
        padding: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-single__logo-link img {
        width: auto !important;
        height: 32px !important;
        max-width: min(160px, 44vw) !important;
        object-fit: contain !important;
    }

    /* Lingue: piccole, in alto a destra, target 44x44. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-product-single__lang {
        grid-row: 1 !important;
        grid-column: 2 !important;
        justify-self: end !important;
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-single__lang .aertubi-product-single__lang-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-single__lang .aertubi-product-single__lang-actions {
        display: flex !important;
        gap: 0.25rem !important;
        margin: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-single__lang .aertubi-product-single__lang-link {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-single__lang .aertubi-lang-item__flag {
        width: 26px !important;
        height: 26px !important;
    }

    /* Foto e disegno uno sopra l'altro, a tutta larghezza e grandi; tocco = schermo intero con zoom. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-media {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.6rem !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-media .aertubi-raccordo-media__item.aertubi-raccordo-media__item {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        justify-self: stretch !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        aspect-ratio: auto !important;
        height: clamp(230px, 66vw, 420px) !important;
        cursor: zoom-in !important;
        touch-action: manipulation;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0.4rem !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.95) !important;
        border-radius: 12px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-media .aertubi-raccordo-media__item .aertubi-raccordo-media__image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        object-fit: contain !important;
        /* L'ingrandimento del disegno (impostazione admin) qui taglierebbe il disegno nel riquadro piccolo. */
        transform: none !important;
        will-change: auto !important;
    }

    /* Titolo h1 e descrizione compatti, allineati a sinistra come il percorso e la tabella. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-shop-modal__title-copy {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.35rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__title-copy > .aertubi-shop-modal__title-main {
        margin: 0 !important;
        font-size: clamp(1.15rem, 4.6vw, 1.45rem) !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        text-align: left !important;
        text-wrap: balance;
        overflow-wrap: break-word !important;
        color: var(--aertubi-primary, #385363) !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-product-quick-description {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        text-align: left !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-product-quick-description .aertubi-raccordo-product-quick-description__content {
        margin: 0 !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.38 !important;
        white-space: normal !important;
        text-align: left !important;
        color: #42596a !important;
    }

    /* ---------- Tabella: vera tabella, scorre in orizzontale nella cornice ---------- */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col .aertubi-raccordo-table-editor {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor > .aertubi-raccordo-table-editor__toolbar:empty {
        display: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor .aertubi-raccordo-table-editor__frame {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
        touch-action: pan-x pan-y;
        background: #ffffff !important;
        border: 1px solid #d9dfe6 !important;
        border-radius: 10px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor__frame > .aertubi-raccordo-table.aertubi-raccordo-table {
        display: table !important;
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        table-layout: auto !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
        font-size: 1rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table thead {
        display: table-header-group !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: normal !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tbody {
        display: table-row-group !important;
        gap: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tr {
        display: table-row !important;
        width: auto !important;
        gap: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Celle (tabella vera e intestazione flottante). */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table th,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table td,
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table th {
        display: table-cell !important;
        position: static !important;
        top: auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0.45rem 0.6rem !important;
        border: 0 !important;
        border-right: 1px solid #edf0f3 !important;
        border-bottom: 1px solid #e3e7ec !important;
        background: #ffffff !important;
        color: #385363 !important;
        font-family: inherit !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        letter-spacing: normal !important;
        text-align: center !important;
        text-transform: none !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table td {
        height: 48px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table th,
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table th {
        padding: 0.4rem 0.5rem !important;
        background: #f3f5f8 !important;
        border-bottom: 1px solid #d9dfe6 !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        vertical-align: middle !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tbody tr:last-child > td {
        border-bottom: 0 !important;
    }

    /* Le etichette sotto ogni valore non servono: l'intestazione resta visibile (anche flottante). */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table .aertubi-raccordo-cell__label {
        display: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table .aertubi-raccordo-cell__value {
        display: inline !important;
        margin: 0 !important;
        color: inherit !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: inherit !important;
        overflow-wrap: normal !important;
    }

    /* Colonna Codice fissa a sinistra (ombra solo quando la tabella e' scorsa). */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tr > :first-child,
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table tr > :first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 2 !important;
        min-width: 5.25rem !important;
        max-width: clamp(6.5rem, 31vw, 10rem) !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
        border-right: 1px solid #d9dfe6 !important;
        transition: box-shadow 160ms ease;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table thead tr > :first-child,
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table tr > :first-child {
        z-index: 4 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor__frame.is-scrolled-x .aertubi-raccordo-table tr > :first-child,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor__frame.is-scrolled-x ~ .aertubi-table-float-head .aertubi-table-float-head__table tr > :first-child {
        box-shadow: 6px 0 10px -6px rgba(15, 31, 60, 0.32) !important;
    }

    /* Righe speciali "Serie L/S/LL": riga intera, testo fisso a sinistra sempre leggibile. */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tr.aertubi-raccordo-table__special-row > td {
        position: static !important;
        left: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        padding: 0.35rem 0 !important;
        /* Stessa tinta di raccordo.css (#5e8d88) ma piu' scura: bianco su #4a7a75 = 4,8:1 (prima 3,7:1). */
        background: #4a7a75 !important;
        color: #ffffff !important;
        text-align: left !important;
        white-space: nowrap !important;
        border-right: 0 !important;
        box-shadow: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table .aertubi-raccordo-table__special-text {
        position: sticky !important;
        left: 0 !important;
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 0.7rem !important;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        letter-spacing: 0.02em !important;
        text-align: left !important;
    }

    /* Colonna "Richiedi preventivo" fissa a destra, compatta; ombra a sinistra se c'e' altro da scorrere. */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table td.aertubi-raccordo-actions,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table th[data-aertubi-action-column],
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table th[data-aertubi-action-column] {
        position: sticky !important;
        right: 0 !important;
        left: auto !important;
        z-index: 2 !important;
        width: 1% !important;
        padding: 0.2rem 0.4rem !important;
        border-left: 1px solid #d9dfe6 !important;
        border-right: 0 !important;
        transition: box-shadow 160ms ease;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table th[data-aertubi-action-column],
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table th[data-aertubi-action-column] {
        z-index: 4 !important;
        max-width: 8.5rem !important;
        padding: 0.4rem 0.45rem !important;
        font-size: 0.75rem !important;
        white-space: normal !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor__frame.has-more-right .aertubi-raccordo-table td.aertubi-raccordo-actions,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor__frame.has-more-right .aertubi-raccordo-table th[data-aertubi-action-column],
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor__frame.has-more-right ~ .aertubi-table-float-head .aertubi-table-float-head__table th[data-aertubi-action-column] {
        box-shadow: -6px 0 10px -6px rgba(15, 31, 60, 0.32) !important;
    }

    /* Controlli della riga: stepper compatto (tablet) */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions .aertubi-action-compact {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.35rem !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        grid-template-columns: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions .aertubi-action-compact__qty {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.2rem !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-template-columns: none !important;
        border: 0 !important;
        background: transparent !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-qty-btn.aertubi-action-compact__step {
        display: inline-grid !important;
        place-items: center !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions input.aertubi-raccordo-qty.aertubi-action-compact__input {
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        width: 3.2rem !important;
        min-width: 3.2rem !important;
        max-width: 3.2rem !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 0.2rem !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-align: center !important;
        color: #1f3442 !important;
        background: #ffffff !important;
        border: 1px solid #cdd5de !important;
        border-radius: 8px !important;
        -moz-appearance: textfield;
        appearance: textfield;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions input.aertubi-raccordo-qty::-webkit-outer-spin-button,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions input.aertubi-raccordo-qty::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-add.aertubi-action-compact__add {
        position: relative !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 44px !important;
        max-width: none !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 0.85rem !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        touch-action: manipulation;
    }

    /* Riga appena aggiunta al preventivo: verde per ~1,5 s (classe JS is-added-confirm). */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tr.is-added-confirm > td {
        background: #eaf6ee !important;
    }

    /* Barra di scorrimento sopra la tabella: frecce 44px, testo e posizione (visibile se la tabella e' piu' larga). */
    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 0 0 0.5rem !important;
        padding: 0.3rem !important;
        background: #eef3f7 !important;
        border: 1px solid #d3dde6 !important;
        border-radius: 12px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll[hidden] {
        display: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__btn {
        display: inline-grid !important;
        place-items: center !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: #385363 !important;
        color: #ffffff !important;
        cursor: pointer !important;
        touch-action: manipulation;
        box-shadow: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__btn:disabled {
        background: #c8d3dc !important;
        color: #ffffff !important;
        cursor: default !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__btn:focus-visible {
        outline: 3px solid #d1122a !important;
        outline-offset: 2px !important;
    }

    /* Freccia "avanti" che pulsa finche' c'e' altro da vedere a destra. */
    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll:not(.is-at-end) .aertubi-table-scroll__btn--next svg {
        animation: aertubi-table-scroll-nudge 1.4s ease-in-out infinite;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__center {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        gap: 0.35rem !important;
        min-width: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__label {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        color: #1f3442 !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__label svg {
        flex: 0 0 auto;
        color: #385363;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__track {
        position: relative !important;
        display: block !important;
        height: 5px !important;
        margin: 0 0.25rem !important;
        overflow: hidden !important;
        background: #d3dde6 !important;
        border-radius: 999px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll__thumb {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0;
        width: 30%;
        background: #d1122a !important;
        border-radius: 999px !important;
    }

    /* Intestazione flottante (copia di thead, fissa in alto mentre si scorre una tabella lunga). */
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head {
        display: none;
        position: fixed !important;
        top: env(safe-area-inset-top, 0px) !important;
        z-index: 6 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        background: #f3f5f8 !important;
        border-bottom: 1px solid #d9dfe6 !important;
        box-shadow: 0 6px 12px -8px rgba(15, 31, 60, 0.4) !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head.is-visible {
        display: block !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table {
        display: table !important;
        max-width: none !important;
        margin: 0 !important;
        table-layout: auto !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        border: 0 !important;
        background: #f3f5f8 !important;
        font-size: 1rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table th {
        border-bottom: 0 !important;
    }

    /* ---------- Barra in basso ---------- */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__quote-label {
        overflow: visible !important;
        text-overflow: clip !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__close-inline {
        justify-content: center !important;
        gap: 0.4rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__close-inline .aertubi-shop-modal__close-icon {
        display: none !important;
    }

    /* "Indietro": freccia a sinistra al posto della X rossa. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__close-inline .aertubi-shop-modal__close-label::before {
        content: "" !important;
        display: inline-block !important;
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 0.4rem 0 0 !important;
        background: #ffffff !important;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__quote-count.is-bounce {
        animation: aertubi-mobile-count-bump 420ms ease-out !important;
    }

    /* ---------- Focus da tastiera: anello rosso #d1122a (5,5:1 sul bianco), solo :focus-visible ---------- */
    /* "+" / "Aggiungi" e stepper delle righe: la cornice della tabella taglia cio' che esce dalla cella,
       quindi l'anello sta dentro il pulsante (offset negativo) con un filo bianco che lo stacca dal blu. */
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-add:focus-visible,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-qty-btn:focus-visible {
        outline: 3px solid #d1122a !important;
        outline-offset: -3px !important;
        box-shadow: inset 0 0 0 5px #ffffff !important;
    }

    /* Barra in basso ("Indietro", "Preventivo"): l'anello sta fuori dal pulsante, sullo sfondo della pagina. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__close-inline:focus-visible,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__quote:focus-visible {
        outline: 3px solid #d1122a !important;
        outline-offset: 2px !important;
    }

    /* ---------- Percorso (schede di famiglia): voci tappabili 44px ---------- */
    html body.single-prodotti .aertubi-product-single .aertubi-product-family__breadcrumbs {
        margin: 0 0 0.35rem !important;
        padding: 0 0.15rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-family__breadcrumbs .aertubi-product-single__breadcrumb-list {
        gap: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-family__breadcrumbs .aertubi-product-single__breadcrumb-item {
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-family__breadcrumbs .aertubi-product-single__breadcrumb-item + .aertubi-product-single__breadcrumb-item::before {
        margin: 0 0.3rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-product-family__breadcrumbs a {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 44px !important;
        padding: 0 0.2rem !important;
        border-bottom: 0 !important;
        text-decoration: underline !important;
        text-decoration-color: rgba(56, 83, 99, 0.35) !important;
        text-underline-offset: 3px !important;
    }
}

/* Telefono (fino a 640px): azioni della riga = quantita' + pulsante "Aggiungi" a icona 44x44.
   Colonne strette per vedere piu' dati: Codice al massimo un quarto dello schermo (va a capo sui
   trattini), azioni al minimo per due target da 44px, celle con meno spazio laterale (valori 14px). */
@media (max-width: 640px) {
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-qty-btn.aertubi-action-compact__step {
        display: none !important;
    }

    /* Scheda: margini laterali piu' stretti, la cornice della tabella guadagna 8px. */
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__content.is-two-col {
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table td {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
        font-size: 0.875rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table th,
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table th {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        font-size: 0.75rem !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tr > :first-child,
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table tr > :first-child {
        min-width: 0 !important;
        max-width: clamp(5.25rem, 25vw, 7.5rem) !important;
        padding-left: 0.5rem !important;
        padding-right: 0.4rem !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        hyphens: manual !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table tbody tr > td:first-child {
        font-size: 13.25px !important;
        line-height: 1.2 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table td.aertubi-raccordo-actions {
        padding: 0.2rem 4px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table th[data-aertubi-action-column],
    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head__table th[data-aertubi-action-column] {
        max-width: 100px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions .aertubi-action-compact {
        gap: 4px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions .aertubi-action-compact__qty {
        gap: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions input.aertubi-raccordo-qty.aertubi-action-compact__input {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        padding: 0 2px !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-add.aertubi-action-compact__add {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        padding: 0 !important;
        overflow: hidden !important;
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow: none !important;
        background: #385363 !important;
        background-image: none !important;
        border: 1px solid #385363 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-add.aertubi-action-compact__add::before {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        margin: auto !important;
        background: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-add.aertubi-action-compact__add::after {
        content: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-add.aertubi-action-compact__add.is-added-confirm {
        background: #1f7a4d !important;
        border-color: #1f7a4d !important;
        opacity: 1 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table td.aertubi-raccordo-actions button.aertubi-raccordo-add.aertubi-action-compact__add.is-added-confirm::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    }
}

/* ===================================================================================
 * Avviso "Aggiunto al preventivo" (creato da JS solo fino a 1180px)
 * Fuori dal livello mobile resta nascosto (es. tablet ruotato oltre 1180px con l'avviso gia' creato).
 * Non blocca: il contenitore lascia passare i tocchi (campo quantita', "+", pulsante cookie),
 * solo "Apri preventivo" e' cliccabile. Sta subito sopra la barra in basso: la distanza viene da
 * --aertubi-bottom-bar-space, misurata da raccordo.js (initBottomBarInset) sulla barra reale.
 * =================================================================================== */
.aertubi-product-toast {
    display: none;
}

@media (max-width: 1180px) {
    .aertubi-product-toast {
        position: fixed;
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: calc(var(--aertubi-bottom-bar-space, calc(76px + env(safe-area-inset-bottom, 0px))) + 0.4rem);
        z-index: 2147483004;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        box-sizing: border-box;
        max-width: 560px;
        min-height: 0;
        margin: 0 auto;
        padding: 2px 2px 2px 0.8rem;
        background: #1f3442;
        color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.26);
        font-family: var(--aertubi-font, "IBM Plex Sans", sans-serif);
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.25;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 160ms ease-out, transform 160ms ease-out;
        pointer-events: none;
    }

    .aertubi-product-toast.is-visible {
        opacity: 1;
        transform: none;
    }

    .aertubi-product-toast__text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .aertubi-product-toast button.aertubi-product-toast__open {
        flex: 0 0 auto;
        min-height: 44px;
        margin: 0;
        padding: 0 0.85rem;
        background: #ffffff;
        color: #1f3442;
        border: 0;
        border-radius: 8px;
        font: inherit;
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        visibility: hidden;
        pointer-events: none;
        cursor: pointer;
        touch-action: manipulation;
    }

    .aertubi-product-toast button.aertubi-product-toast__open:hover,
    .aertubi-product-toast button.aertubi-product-toast__open:focus,
    .aertubi-product-toast button.aertubi-product-toast__open:focus-visible {
        background: #ffffff;
        color: #c8102e;
    }

    .aertubi-product-toast button.aertubi-product-toast__open:focus-visible {
        outline: 3px solid #d1122a;
        outline-offset: 2px;
    }

    .aertubi-product-toast.is-visible button.aertubi-product-toast__open {
        visibility: visible;
        pointer-events: auto;
    }
}

/* Touch: nessuna tastiera, quindi niente "tasto esc della tastiera" (JS non lo crea piu', qui per sicurezza). */
@media (hover: none) and (pointer: coarse) {
    html body .aertubi-shop-modal__esc-hint.aertubi-shop-modal__esc-hint {
        display: none !important;
    }
}

@keyframes aertubi-mobile-count-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .aertubi-product-toast {
        transition: none;
        transform: none;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions .aertubi-shop-modal__quote-count.is-bounce {
        animation: none !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll .aertubi-table-scroll__btn--next svg {
        animation: none !important;
    }
}

/* Stampa: tabella intera, senza scorrimento, colonne fisse, barre e avvisi. */
@media print {
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor .aertubi-raccordo-table-editor__frame {
        overflow: visible !important;
        border: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table-editor__frame > .aertubi-raccordo-table.aertubi-raccordo-table {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table th,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table td,
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-table.aertubi-raccordo-table .aertubi-raccordo-table__special-text {
        position: static !important;
        box-shadow: none !important;
        white-space: normal !important;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-table-float-head,
    html body.single-prodotti .aertubi-product-single .aertubi-table-scroll,
    html body.single-prodotti .aertubi-product-single .aertubi-media-expand,
    html body.single-prodotti .aertubi-product-single .aertubi-shop-modal__actions,
    .aertubi-product-toast {
        display: none !important;
    }
}

@keyframes aertubi-table-scroll-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Pulsante "apri a schermo intero" su foto e disegno: esiste solo nel livello mobile/tablet. */
html body .aertubi-media-expand {
    display: none !important;
}

@media (max-width: 1180px) {
    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-media__item .aertubi-media-expand {
        position: absolute !important;
        top: 0.45rem !important;
        right: 0.45rem !important;
        z-index: 2 !important;
        display: inline-grid !important;
        place-items: center !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #d3dde6 !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: #1f3442 !important;
        box-shadow: 0 4px 12px -6px rgba(15, 31, 60, 0.45) !important;
        cursor: pointer !important;
        touch-action: manipulation;
    }

    html body.single-prodotti .aertubi-product-single .aertubi-raccordo-media__item .aertubi-media-expand:focus-visible {
        outline: 3px solid #d1122a !important;
        outline-offset: 2px !important;
    }
}

/* Visore a schermo intero di foto e disegno (lo crea il JS solo quando serve). */
html.aertubi-media-viewer-open,
html.aertubi-media-viewer-open body {
    overflow: hidden !important;
}

.aertubi-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #1f3442;
    font-family: inherit;
    overscroll-behavior: contain;
}

.aertubi-media-viewer[hidden] {
    display: none;
}

.aertubi-media-viewer__top,
.aertubi-media-viewer__bottom {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f3f6f9;
}

.aertubi-media-viewer__top {
    justify-content: space-between;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #dfe6ec;
}

.aertubi-media-viewer__bottom {
    justify-content: center;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dfe6ec;
}

.aertubi-media-viewer__caption {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.aertubi-media-viewer__stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: zoom-in;
}

.aertubi-media-viewer.is-zoomed .aertubi-media-viewer__stage {
    cursor: grab;
}

.aertubi-media-viewer__img {
    display: block;
    width: calc(100% - 1.5rem);
    height: calc(100% - 1.5rem);
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform-origin: 50% 50%;
    will-change: transform;
    -webkit-user-drag: none;
    pointer-events: none;
}

.aertubi-media-viewer__hint {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: #4a5b68;
    background: #ffffff;
}

.aertubi-media-viewer.is-zoomed .aertubi-media-viewer__hint {
    visibility: hidden;
}

html body .aertubi-media-viewer .aertubi-media-viewer__btn,
html body .aertubi-media-viewer .aertubi-media-viewer__btn:hover,
html body .aertubi-media-viewer .aertubi-media-viewer__btn:focus,
html body .aertubi-media-viewer .aertubi-media-viewer__btn:active {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #385363 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    touch-action: manipulation;
}

html body .aertubi-media-viewer .aertubi-media-viewer__btn svg {
    color: #ffffff !important;
    stroke: currentColor !important;
}

html body .aertubi-media-viewer .aertubi-media-viewer__btn:disabled {
    background: #c8d3dc !important;
    cursor: default !important;
}

html body .aertubi-media-viewer .aertubi-media-viewer__btn:focus-visible {
    outline: 3px solid #d1122a !important;
    outline-offset: 2px !important;
}

html body .aertubi-media-viewer .aertubi-media-viewer__close,
html body .aertubi-media-viewer .aertubi-media-viewer__close:hover,
html body .aertubi-media-viewer .aertubi-media-viewer__close:focus,
html body .aertubi-media-viewer .aertubi-media-viewer__close:active {
    background: #d1122a !important;
}

html body .aertubi-media-viewer .aertubi-media-viewer__close:focus-visible {
    outline-color: #385363 !important;
}

html body .aertubi-media-viewer:not(.has-many) .aertubi-media-viewer__prev,
html body .aertubi-media-viewer:not(.has-many) .aertubi-media-viewer__next {
    display: none !important;
}

html body .aertubi-media-viewer .aertubi-media-viewer__prev {
    margin-right: auto !important;
}

html body .aertubi-media-viewer .aertubi-media-viewer__next {
    margin-left: auto !important;
}

@media print {
    .aertubi-media-viewer {
        display: none !important;
    }
}
