@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

body {
	font-family: "Montserrat", Arial, sans-serif !important;
}
a {
	color: #FE5D01;
}
a:hover {
	color: #E85B12 !important;
}
.header-nav{
    background-color: #f9f9f9;
}
#header .logo {
	max-width: 250px;
}
.dropdown:hover .expand-more{
    color: #E85B12 ;
}
.dropdown:hover span.expand-more,
#header a:hover{
    color: #E85B12 ;
    text-decoration: underline;
}
#header {
	box-shadow: none !important; 
}
#header .header-nav .cart-preview.active,
.sub-header-top{
    background-color: transparent;
}
#header .header-nav .cart-preview.active a{
	color: #232323 !important;
}
#header .header-nav .cart-preview.active i {
	color: #232323 !important;
}
#header .header-nav .blockcart {
	background-color: transparent !important;
}
.sub-header-top .top-menu a[data-depth="0"]{
    color: #232323 !important;
    font-size: 1.0rem;
	text-transform: uppercase;
}
.sub-header-top .top-menu a:focus{
	color: #E85B12;
}
#wrapper{
    padding-top: 0px;
    background-color: #fff;
}
#header .header-top .position-static {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-top .search-widgets {
    flex: 0 0 320px !important;
    width: 320px !important;
    max-width: 320px !important;
    margin-left: auto;
    margin-right: auto;
}

#search_widget form {
    position: relative;
    width: 100%;
}

#search_widget form input {
    width: 100%;
    height: 42px;

    background-color: #fff !important;
    border: 1px solid #d7dce2 !important;
    border-radius: 6px;

    color: #232323;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;

    padding-left: 42px;
    box-shadow: none !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#search_widget form input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

#search_widget form:hover input {
    border-color: #0069CD !important;
}

#search_widget form input:focus {
    border-color: #FE5D01 !important;
    box-shadow: 0 0 0 3px rgba(244, 91, 0, 0.12) !important;
    outline: none !important;
}
.subcategory-name {
	color: #FE5D01;
}
#subcategories ul li:hover .subcategory-image a{
	border: 3px solid #FE5D01 !important;
}
#subcategories ul li:hover h5 a{
	color: #E85B12 !important;
}
/***TOLGO IL COLORE CIANO***/
.btn-primary:disabled:hover {
	background-color: #E85B12 !important;
	border-color: transparent; 
}
.pagination .current a {
	color: #E85B12 !important;
}
.products-sort-order .select-list:hover {
	background: #E85B12 !important; 
}
/* Forza il testo bianco sui bottoni, anche in hover, sovrascrivendo la regola generica a:hover */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
a.btn-primary,
a.btn-primary:hover {
    color: #ffffff !important;
}

/**** CAROUSEL ****/

#carousel {
    position: relative;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 20px;
    padding: 0 !important;

    overflow: hidden;

    border-radius: 20px;
    box-sizing: border-box;
}

/*
 * Contenitori principali.
 * Non impostiamo display:block su tutte le .carousel-item,
 * altrimenti Bootstrap non riesce più a gestire correttamente le slide.
 */
#carousel .carousel-inner,
#carousel .carousel-item {
    width: 100%;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Contenitore interno dello slider */
#carousel .carousel-inner {
    position: relative;
    overflow: hidden;
}

/* Singola slide */
#carousel .carousel-item {
    overflow: hidden;
}

/*
 * Solo i contenitori interni possono essere display:block.
 * In questo modo occupano correttamente tutta la larghezza.
 */
#carousel .carousel-item > a,
#carousel .carousel-item figure,
#carousel .carousel-item picture {
    display: block;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;
}

/* Rimuove eventuali margini predefiniti del tag figure */
#carousel figure {
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * L'immagine determina l'altezza reale del carosello.
 * Non usiamo height:100%, object-fit:cover o aspect-ratio,
 * così il banner 1920x550 non viene tagliato.
 */
#carousel .carousel-item img {
    display: block;

    width: 100% !important;
    height: auto !important;

    min-height: 0 !important;
    max-width: 100% !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: initial !important;
    object-position: initial !important;

    border: 0;
    vertical-align: top !important;
}

/*
 * Se il testo è già dentro il banner,
 * nascondiamo eventuali caption generate dal modulo.
 */
#carousel .caption,
#carousel figcaption {
    display: none !important;
}

/* Frecce centrate verticalmente */
#carousel .carousel-control-prev,
#carousel .carousel-control-next {
    top: 50% !important;
    bottom: auto !important;

    transform: translateY(-50%);
}

/* Indicatori interni al banner */
#carousel .carousel-indicators {
    bottom: 8px;

    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 991px) {
    #carousel {
        margin-top: 15px;
        border-radius: 15px;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    #carousel {
        width: calc(100% - 24px) !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 12px auto 0 !important;
        padding: 0 !important;

        border-radius: 10px;

        float: none !important;
        left: auto !important;
        right: auto !important;

        transform: none !important;
        box-sizing: border-box;
    }

    #carousel .carousel-inner,
    #carousel .carousel-item {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    #carousel .carousel-item > a,
    #carousel .carousel-item figure,
    #carousel .carousel-item picture {
        display: block;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    #carousel .carousel-item img {
        display: block;

        width: 100% !important;
        height: auto !important;

        min-height: 0 !important;
        max-width: 100% !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: initial !important;
        object-position: initial !important;

        vertical-align: top !important;
    }
}

/**** END CAROUSEL ****/

/****PRODUCTS****/
.product{
    border: #e8e8e8 solid 1px;
}
.product-miniature .product-flags li.product-flag{
    font-size: 0.7rem;
    margin-top: 5px;
    min-height: 1rem;
    background-color: #FE5D01;
}

.product-miniature-add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-miniature-qty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-miniature-qty .form-control {
  max-width: 60px;
  text-align: center;
}

.product-miniature-qty .btn-touchspin {
  min-width: 36px;
}
.product-qty{
	background: #0069CD !important;
}
.out_of_stock{
	background: #7a7a7b !important;
}
.has-discount .discount {
	background: #FE5D01 !important;
}
.has-discount .page-content.page-cms ul, .has-discount p, .has-discount.product-price, .page-content.page-cms .has-discount ul {
    color: #FE5D01 !important;
}
.product-flags li.product-flag.discount, .product-flags li.product-flag.discount-amount, .product-flags li.product-flag.discount-percentage {
    background-color: #FE5D01 !important;
}
/***GRID****/

.products .add-to-cart{
    padding: 5px;
}
#blockcart-modal .product-name {
	color: #FE5D01 !important;
}
.products .js-miniature-qty-input{
    padding: 7px 0px;
    width: 30px;
}
.products .product-miniature-qty .btn-touchspin {
    padding: 7px;
}
.products:where(:not(.st-catalog-view--list):not(.st-catalog-view--compact)) .product-qty-container {
    display: flex;
    justify-content: right;
}
#product #main .product-qty,
.products:where(:not(.st-catalog-view--list):not(.st-catalog-view--compact)) .product-qty {
    margin: 8px 0px;
    color: #FFFFFF;
    padding: 5px;
    width: fit-content;
    font-weight: bold;
    font-size: 13px;
}
.products .product-description .product-title,
.products .product-description .product-price-and-shipping,
.products .product-description{
    text-align: left;
}
.products .product-description-short{
    min-height: 36px;
}

/****END PRODUCTS****/
/****PRODUCT****/
#product #content {
    margin: 0;
}
#product #content .product-cover,
.product-images>li.thumb-container .thumb.selected, .product-images>li.thumb-container .thumb:hover{
    border: 1px solid #e5e5e5;
}
.tabs{
    padding: 0px;
}
.tabs .nav-tabs .nav-link.active, 
.tabs .nav-tabs .nav-link:hover,
.tabs .nav-tabs .nav-link.active, 
.tabs .nav-tabs .nav-link:hover{
    border-bottom: #E85B12 3px solid;
	color: #FE5D01;
}
.product-flags li.product-flag{
    background-color: #FE5D01;
}
.product-price{
    color: #232323;
    font-size: 30px;
    line-height: 30px;
}
/****END PRODUCT****/

/****FOOTER****/
#footer {
	padding: 10px 0;
}
.footer-container {
	background-color: transparent !important;
}
.gr-htmlhooks-displayFooter {
	display: flex;
	align-items: center; 
	justify-content: space-between; 
	margin-bottom: 20px;
}
/* Tablet */
@media (max-width: 991px) {
    .gr-htmlhooks-displayFooter {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .gr-htmlhooks-displayFooter > * {
        flex: 0 0 calc(50% - 15px);
        text-align: center;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    .gr-htmlhooks-displayFooter {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
    }

    .gr-htmlhooks-displayFooter > * {
        width: 100%;
        text-align: center;
    }
}
.footer-container .myaccount-title a,
.footer-container .h3, .footer-container .h4 {
    color: #232323 !important;
}
.footer-container li a{
    color: #232323;
}
.footer-container .block-social ul li{
    background-color: transparent;
    border: 1px solid white;
}

/****BLOCCO HTML CON LOGO E LINK SOCIAL****/
.footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: transparent;
    border: none;
    border-radius: 0;

    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.footer-socials a img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.footer-socials a:hover {
    background: transparent;
    border: none;
    transform: translateY(-2px) scale(1.08);
    opacity: 0.85;
}
.footer-gesmart {
	text-decoration: underline !important; 
}
/****END FOOTER****/

/****MODULE CUSTOM TEXT****/
#custom-text{
    background-color: rgba(126, 127, 111, 0.14);
    color: #232323;
}
#custom-text .descr{
    text-align: left;
    padding-top: 25px;
    
}
#custom-text h4.icon span.material-icons{
    position: absolute;
    left: 0;
    top: -10px;
    margin-left: 14px;
    font-size: 45px;
    color: #E85B12 !important;
}
/****END MODULE CUSTOM TEXT****/

/****FORM****/
.btn-primary{
    background-color: #FE5D01;
}
.btn-primary.active, 
.btn-primary:active, 
.btn-primary:active:hover, 
.btn-primary:active:focus, 
.btn-primary:focus, 
.open>.btn-primary.dropdown-toggle,
.btn-primary:hover{
    background-color: #E85B12;
}
.btn:focus,
.btn:active:focus,
.form-control:focus{
    outline: none;
}
/****END FORM****/

@media (min-width: 1400px) {
  .container {
    width: 1400px; /* Sostituisci con i pixel che preferisci */
    max-width: 100%;
  }
}

/* ========================================
   LOGO MARCA NELLA CARD
======================================== */

.product-miniature .product-manufacturer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 38px;
    min-height: 38px;
    margin: 12px 20px 6px;
}




/* ========================================
   DESCRIZIONE DELLA CARD
======================================== */

.product-miniature .product-description {
    text-align: left;
}


/* ========================================
   CODICE PRODOTTO E MARCA
======================================== */

.product-miniature .product-extra-information {
    margin-bottom: 10px;
}

.product-miniature .product-reference {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    color: #0069CD;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.product-miniature .product-extra-label,
.product-miniature .product-extra-value {
    color: inherit;
}

.product-miniature .product-manufacturer-name {
    margin-top: 2px;
    color: #232323;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}


/* ========================================
   TITOLO PRODOTTO
======================================== */

.product-miniature .product-title {
    margin-top: 8px;
    margin-bottom: 8px;
    text-align: left !important;
}

.product-miniature .product-title a {
    display: block;
    width: 100%;
    color: #232323;
    font-weight: 700;
    line-height: 1.35;
    text-align: left !important;
}

.product-miniature .product-title a:hover {
    color: #e85b12;
}


/* ========================================
   DESCRIZIONE BREVE
======================================== */

.product-miniature .product-description-short {
    margin-top: 8px;
    color: #232323;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}


/* ========================================
   DISPONIBILITÀ
======================================== */

:where(.products:not(.st-catalog-view--list):not(.st-catalog-view--compact)) .product-miniature .product-qty-container {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px 0;
}

:where(.products:not(.st-catalog-view--list):not(.st-catalog-view--compact)) .product-miniature .product-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}


/* ========================================
   PREZZO
======================================== */

:where(.products:not(.st-catalog-view--list):not(.st-catalog-view--compact)) .product-miniature .product-price-and-shipping {
    margin-top: 12px;
    text-align: left;
}
.page-my-account #content .links a:hover i {
	color: #e85b12;
}

/* ========================================
   ALLINEAMENTO VERTICALE CARD PRODOTTO
   ======================================== */

/*
 * Il contenitore del logo resta presente anche quando il prodotto non ha
 * un produttore associato. In questo modo codice, marca e titolo iniziano
 * sempre alla stessa altezza.
 */


@media (min-width: 768px) {

    /* Riserva la stessa area a codice + nome produttore. */
    .products .product-miniature .product-extra-information {
        min-height: 42px;
    }

    /* Titolo: massimo 2 righe, con altezza identica in tutte le card. */
    .products .product-miniature .product-title {
        height: 42px;
        min-height: 42px;
        overflow: hidden;
    }

    .products .product-miniature .product-title a {
        overflow: hidden;
    }

    /* Descrizione: area fissa di 3 righe, anche quando è vuota. */
    .products .product-miniature .product-description-short {
        height: 59px;
        min-height: 59px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    /* Mantiene coerente anche la zona prezzo. */
    .products .product-miniature .product-price-and-shipping {
        min-height: 26px;
        margin-top: 6px;
    }
}


/* ========================================
   FORZATURA ALLINEAMENTO TITOLO PRODOTTO
   Deve restare in fondo al file CSS.
======================================== */
body .products .product-miniature .product-description h2.h3.product-title,
body .products .product-miniature .product-description h3.h3.product-title,
body .products .product-miniature .product-description .product-title {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

.address-item.selected{
	border: #FE5D01 3px solid !important; 
}
.custom-radio input[type=radio]:checked+span{
	background-color: #FE5D01 !important;
}

body .products .product-miniature .product-description h2.h3.product-title > a,
body .products .product-miniature .product-description h3.h3.product-title > a,
body .products .product-miniature .product-description .product-title > a {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

/* ========================================
   LOGO MARCA - ALLINEAMENTO A SINISTRA + DIMENSIONE MAGGIORE
   Tenere questo blocco in fondo al file CSS.
======================================== */
body .products .product-miniature .product-manufacturer-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 12px 0 6px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body .products .product-miniature .product-manufacturer-logo img {
    display: block !important;
	width: 60px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}
.product-manufacturer .manufacturer-logo{
	max-width: 100px !important;
}
/* ========================================
   MENU CATEGORIE - UNA SOLA RIGA SU DESKTOP
   Mantiene invariato il menu mobile.
======================================== */
@media (min-width: 992px) {

    /* Barra menu a tutta larghezza, contenuto allineato al container del sito */
    .sub-header-top {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sub-header-top .container {
        width: 1400px !important;
        max-width: calc(100% - 30px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .sub-header-top .menu,
    #_desktop_top_menu {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sub-header-top .top-menu[data-depth="0"],
    #_desktop_top_menu .top-menu[data-depth="0"] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .sub-header-top .top-menu[data-depth="0"] > li,
    #_desktop_top_menu .top-menu[data-depth="0"] > li {
        float: none !important;
        display: block !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sub-header-top .top-menu a[data-depth="0"],
    #_desktop_top_menu .top-menu a[data-depth="0"] {
        display: block !important;
        padding: 10px 5px !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}

/* ========================================
   MEGA MENU CATEGORIE - DESKTOP
   Sottocategorie organizzate in colonne verticali.
   Mantiene invariato il menu mobile.
======================================== */
@media (min-width: 992px) {

    /* Il dropdown viene centrato rispetto all'intera barra del menu. */
    #_desktop_top_menu {
        position: relative !important;
    }

    #_desktop_top_menu .top-menu[data-depth="0"] > li {
        position: static !important;
    }

    #_desktop_top_menu .top-menu .sub-menu {
        left: 50% !important;
        right: auto !important;
        width: 1400px !important;
        min-width: 0 !important;
        max-width: calc(100vw - 30px) !important;
        margin: 0 !important;
        padding: 20px 28px 18px !important;
        transform: translateX(-50%) !important;
        background: #ffffff !important;
        border: 1px solid #e8e8e8 !important;
        border-top: 2px solid #FE5D01 !important;
        border-radius: 0 0 10px 10px !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10) !important;
        z-index: 1000 !important;
    }

    /*
     * Le categorie di secondo livello vengono lette verticalmente,
     * invece di essere distribuite come una lunga sequenza orizzontale.
     */
    #_desktop_top_menu .sub-menu > ul[data-depth="1"] {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        column-count: 5;
        column-gap: 34px;
        column-fill: balance;
    }

    #_desktop_top_menu .sub-menu > ul[data-depth="1"] > li {
        float: none !important;
        display: inline-block !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
        break-inside: avoid-column;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Categoria di secondo livello. */
    #_desktop_top_menu .sub-menu a[data-depth="1"] {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        color: #232323 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.30 !important;
        text-transform: uppercase !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: normal !important;
        text-decoration: none !important;
    }

    /* Se la voce di secondo livello contiene un ulteriore livello,
       la evidenziamo come intestazione del gruppo. */
    #_desktop_top_menu .sub-menu a.dropdown-submenu[data-depth="1"] {
        color: #0069CD !important;
        font-weight: 700 !important;
        margin-bottom: 3px !important;
    }

    /* Terzo livello: elenco verticale sotto la propria intestazione. */
    #_desktop_top_menu .sub-menu ul[data-depth="2"] {
        display: block !important;
        width: 100% !important;
        margin: 3px 0 7px 0 !important;
        padding: 2px 0 2px 10px !important;
        border-left: 2px solid #eeeeee !important;
    }

    #_desktop_top_menu .sub-menu ul[data-depth="2"] > li {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #_desktop_top_menu .sub-menu a[data-depth="2"] {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 3px 0 !important;
        color: #555555 !important;
        font-size: 12.5px !important;
        font-weight: 400 !important;
        line-height: 1.35 !important;
        text-transform: none !important;
        text-align: left !important;
        white-space: normal !important;
        text-decoration: none !important;
    }

    /* Evidenziazione hover più pulita e coerente con il tema. */
    #_desktop_top_menu .sub-menu a[data-depth="1"]:hover,
    #_desktop_top_menu .sub-menu a[data-depth="2"]:hover {
        color: #FE5D01 !important;
        text-decoration: none !important;
    }
}

/* Desktop meno largo: riduciamo il numero di colonne senza toccare il mobile. */
@media (min-width: 992px) and (max-width: 1199px) {
    #_desktop_top_menu .sub-menu > ul[data-depth="1"] {
        column-count: 4;
        column-gap: 26px;
    }
}

/* ========================================
   MENU CATEGORIE - APERTURA AL CLICK (non hover)
   Sostituisce il precedente fix per l'hover: il sottomenu
   resta sempre nascosto finché non viene aggiunta la classe
   "menu-open" sul <li> tramite il JS di gestione del click
   (vedi assets/js/custom/menu-click.js).
======================================== */
@media (min-width: 992px) {

    /* Sottomenu nascosto di default, indipendentemente dall'hover */
    #_desktop_top_menu .top-menu[data-depth="0"] > li > .sub-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .15s ease !important;
    }

    /* Sottomenu visibile solo per la voce aperta via click */
    #_desktop_top_menu .top-menu[data-depth="0"] > li.menu-open > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Cursore a manina sulle voci che aprono un sottomenu */
    #_desktop_top_menu .top-menu[data-depth="0"] > li.js-dropdown-parent > a {
        cursor: pointer;
    }

    /* Evidenzia la categoria attualmente aperta */
    #_desktop_top_menu .top-menu[data-depth="0"] > li.menu-open > a[data-depth="0"] {
        color: #FE5D01 !important;
        background-color: rgba(254, 93, 1, 0.08) !important;
        border-radius: 4px 4px 0 0 !important;
    }

    #_desktop_top_menu .top-menu[data-depth="0"] > li.menu-open > a[data-depth="0"] .expand-more {
        color: #FE5D01 !important;
    }
	/* Rimuove il bordo di focus su tutto il sito, mantenendolo solo per la navigazione da tastiera */
	*:focus {
		outline: none !important;
	}

	*:focus-visible {
		outline: 2px solid #FE5D01 !important;
		outline-offset: 2px;
	}
}
body .products .product-miniature .product-manufacturer-logo img.img-load-error {
  display: none !important;
}
body#checkout section.checkout-step .payment-options label:has(img[src*="stripe_checkout"]) {
  display: flex;
  align-items: center;
  gap: 4px;
}

body#checkout section.checkout-step .payment-options label:has(img[src*="stripe_checkout"]) img {
  margin: 0;
  height: 22px;
  width: auto;
}
/* ========================================
   DROPDOWN SUGGERIMENTI RICERCA - STILE
   (markup reale: ul.searchbar-autocomplete)
======================================== */
.searchbar-autocomplete.ui-autocomplete {
    background-color: #ffffff !important;
    border: 1px solid #eceff2 !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 28px rgba(35, 35, 35, 0.12) !important;
    z-index: 1050 !important;
    padding: 8px !important;
    margin-top: 6px !important;
    list-style: none;
    overflow: hidden;
}

.searchbar-autocomplete.ui-autocomplete .ui-menu-item {
    padding: 0 !important;
    list-style: none;
}

.searchbar-autocomplete.ui-autocomplete .ui-menu-item a {
    display: flex !important;
    align-items: center;
    gap: 12px;

    padding: 8px 10px !important;
    margin-bottom: 2px;

    color: #232323 !important;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none !important;

    background-color: transparent !important;
    border-radius: 8px !important;

    transition: background-color 0.15s ease, color 0.15s ease;
}

.searchbar-autocomplete.ui-autocomplete .ui-menu-item a:hover,
.searchbar-autocomplete.ui-autocomplete .ui-menu-item a.ui-state-active {
    background-color: rgba(254, 93, 1, 0.08) !important;
    color: #FE5D01 !important;
}

.searchbar-autocomplete.ui-autocomplete .autocomplete-thumbnail {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background-color: #fff;
}

.searchbar-autocomplete.ui-autocomplete .product {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
}

/* Separatore leggero tra i risultati */
.searchbar-autocomplete.ui-autocomplete .ui-menu-item:not(:last-child) a {
    border-bottom: 1px solid #f3f3f3 !important;
    border-radius: 8px 8px 0 0 !important;
}
.searchbar-autocomplete.ui-autocomplete .ui-menu-item a {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.searchbar-autocomplete.ui-autocomplete .product {
    border: none !important;
}
.searchbar-autocomplete.ui-autocomplete .autocomplete-thumbnail {
    border: none !important;
}
/* GeSmart - badge prodotto più compatto */
#product .product-flags li.product-flag {
    font-size: 12px;
    line-height: 1.1;
    padding: 5px 8px;
}

/* GeSmart - rifinitura spaziature scheda prodotto */

/* Prezzi più vicini a titolo/codice */
#product .product-prices {
    margin-top: 14px;
}

/* Tabella quantità: separazione compatta quando presente */
#product .product-discounts {
    margin-bottom: 16px;
}

/* Se non ci sono sconti quantità, non lasciare spazio inutile */
#product .product-discounts:not(:has(.table-product-discounts)) {
    margin-bottom: 0;
}

/* Disponibilità GeSmart */
#product #product-availability {
    display: block;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Etichetta Quantità */
#product .product-actions .control-label {
    margin-bottom: 6px;
}

/* Riga quantità/carrello/cuore */
#product .product-add-to-cart .product-quantity {
    margin-bottom: 14px;
}

/* Condivisione più vicina ai pagamenti */
#product .social-sharing {
    margin-top: 16px;
}


/* GeSmart - spaziatura finale blocco prezzi scheda prodotto */

/*
 * Il tema assegna margin-bottom a tutti i div dentro .product-prices.
 * Con GeSmart Dual Price gestiamo invece lo spazio sull'intero blocco.
 */
#product .product-prices:has(.gesmart-dual-price--product) .product-price,
#product .product-prices:has(.gesmart-dual-price--product) .current-price,
#product .product-prices:has(.gesmart-dual-price--product) .tax-shipping-delivery-label {
    margin-bottom: 0;
}

/* Distanza controllata tra prezzi/promozioni e blocco acquisto */
#product .product-prices:has(.gesmart-dual-price--product) {
    margin-bottom: 16px;
}


/* =========================================================
   GESMART - CARRELLO COMPATTO DESKTOP
   ========================================================= */
@media (min-width: 768px) {

    /* Riduce lo spazio verticale tra i prodotti */
    .cart-overview .cart-item {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Riduce la dimensione delle immagini nel carrello */
    .cart-overview .product-line-grid-left img {
        width: auto;
        height: auto;
        max-width: 100px;
        max-height: 100px;
    }

    /* Compatta leggermente descrizione e codice */
    .cart-overview .product-line-grid-body > .product-line-info {
        line-height: 1.15;
    }

    /* Evita spazio superfluo sotto il prezzo unitario */
    .cart-overview .product-line-grid-body .product-price {
        margin-bottom: 0;
    }
}


/* =========================================================
   GESMART - CARRELLO ANCORA PIU' COMPATTO
   ========================================================= */
@media (min-width: 768px) {

    .cart-overview .cart-item {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .cart-overview .product-line-grid-left img {
        max-width: 85px;
        max-height: 85px;
        width: auto;
        height: auto;
    }

    .cart-overview .product-line-grid-body > .product-line-info {
        margin-bottom: 0.1rem;
        line-height: 1.1;
    }

    .cart-overview .product-line-grid-body .label,
    .cart-overview .product-line-grid-body .value {
        line-height: 1.1;
    }

    .cart-grid-body .card-block,
    .cart-grid-body .cart-overview {
        padding: 0.75rem;
    }
}


/* =========================================================
   GESMART - CARRELLO ULTRA COMPATTO DESKTOP
   ========================================================= */
@media (min-width: 768px) {

    .cart-overview .cart-item {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .cart-overview .product-line-grid-left img {
        max-width: 75px;
        max-height: 75px;
    }

    .cart-overview .product-line-grid-body > .product-line-info {
        margin-bottom: 0;
        line-height: 1.05;
    }

    .cart-grid-body .cart-overview {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}


/* =========================================================
   GESMART - CARRELLO: RIDUZIONE SPAZIO TRA IMMAGINE E TESTO
   ========================================================= */
@media (min-width: 768px) {

    /* Riduce il gutter tra colonna immagine e colonna descrizione */
    .cart-overview .product-line-grid-left {
        padding-right: 6px;
    }

    .cart-overview .product-line-grid-body {
        padding-left: 6px;
    }

    /* Compatta leggermente anche il blocco immagine */
    .cart-overview .product-line-grid-left .product-image {
        display: block;
        text-align: center;
        margin: 0;
    }
}


/* =========================================================
   GESMART - CARRELLO: COLONNA IMMAGINE RIDOTTA
   ========================================================= */
@media (min-width: 768px) {

    /* Colonna immagine molto più stretta */
    .cart-overview .product-line-grid-left {
        width: 18%;
        padding-left: 0;
        padding-right: 4px;
        text-align: left;
    }

    /* Recupera spazio per nome, codice e prezzo */
    .cart-overview .product-line-grid-body {
        width: 40.333333%;
        padding-left: 4px;
        padding-right: 10px;
    }

    /* Immagine completamente allineata a sinistra */
    .cart-overview .product-line-grid-left .product-image {
        display: block;
        margin: 0;
        text-align: left;
    }

    .cart-overview .product-line-grid-left img {
        display: block;
        margin-left: 0;
        margin-right: auto;
    }
}


/* =========================================================
   GESMART - CARRELLO: LAYOUT DEFINITIVO IMMAGINE / TESTO
   ========================================================= */
@media (min-width: 768px) {

    .cart-overview .product-line-grid {
        display: flex;
        width: 100%;
    }

    /* Immagine: container minimo e allineato a sinistra */
    .cart-overview .product-line-grid-left {
        float: none;
        flex: 0 0 85px;
        width: 85px;
        max-width: 85px;
        padding-left: 0;
        padding-right: 10px;
        text-align: left;
    }

    .cart-overview .product-line-grid-left .product-image {
        display: block;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .cart-overview .product-line-grid-left img {
        display: block;
        width: auto;
        height: auto;
        max-width: 75px;
        max-height: 75px;
        margin: 0;
    }

    /* La descrizione prende tutto lo spazio recuperato */
    .cart-overview .product-line-grid-body {
        float: none;
        flex: 1 1 auto;
        width: auto;
        padding-left: 0;
        padding-right: 10px;
    }

    /* Quantità / totale / cestino mantengono la loro zona */
    .cart-overview .product-line-grid-right {
        float: none;
        flex: 0 0 41.666667%;
        width: 41.666667%;
    }
}


/* =========================================================
   GESMART - CARRELLO: SPAZIO IMMAGINE + CENTRATURA VERTICALE
   ========================================================= */
@media (min-width: 768px) {

    /* Centra verticalmente i blocchi principali della riga */
    .cart-overview .product-line-grid {
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Aumenta leggermente lo spazio tra immagine e descrizione */
    .cart-overview .product-line-grid-left {
        flex: 0 0 87px;
        width: 87px;
        max-width: 87px;
        padding-left: 0;
        padding-right: 12px;
    }

    /* Descrizione centrata verticalmente */
    .cart-overview .product-line-grid-body {
        align-self: center;
    }

    /* Quantità, totale e cestino centrati verticalmente */
    .cart-overview .product-line-grid-right {
        align-self: center;
    }

    .cart-overview .product-line-grid-right > .row {
        display: flex;
        align-items: center;
    }

    .cart-overview .product-line-grid-right .row > [class*="col-"] {
        align-self: center;
    }

    .cart-overview .product-line-grid-right .qty,
    .cart-overview .product-line-grid-right .price,
    .cart-overview .cart-line-product-actions {
        margin-top: 0;
        margin-bottom: 0;
    }
}


@media (min-width: 768px) {

    .cart-overview .product-line-grid-left {
        flex-basis: 91px;
        width: 91px;
        max-width: 91px;
        padding-right: 16px;
    }

}


/* =========================================================
   GESMART - CARRELLO: CENTRATURA VERTICALE RIGHE
   ========================================================= */
@media (min-width: 768px) {

    .cart-overview .product-line-grid {
        display: flex;
        align-items: center;
    }

    .cart-overview .product-line-grid-left,
    .cart-overview .product-line-grid-body,
    .cart-overview .product-line-grid-right {
        align-self: center;
    }

    .cart-overview .product-line-grid-right > .row,
    .cart-overview .product-line-grid-right > .row > .col-md-10 > .row {
        display: flex;
        align-items: center;
    }

    .cart-overview .product-line-grid-right .qty,
    .cart-overview .product-line-grid-right .price,
    .cart-overview .cart-line-product-actions {
        align-self: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .cart-overview .cart-line-product-actions .remove-from-cart {
        margin-top: 0;
    }
}


/* =========================================================
   GESMART - CARRELLO: TOTALI RIGA ALLINEATI A DESTRA
   ========================================================= */
@media (min-width: 768px) {

    .cart-overview .product-line-grid-right .price {
        text-align: right;
    }

    .cart-overview .product-line-grid-right .price .product-price {
        display: block;
        width: 100%;
        text-align: right;
    }

    .cart-overview .product-line-grid-right .price strong {
        display: block;
        width: 100%;
        text-align: right;
    }
}


/* =========================================================
   GESMART - CARRELLO: COLONNE QTA / TOTALE / ELIMINA
   ========================================================= */
@media (min-width: 768px) {

    /* Blocco destro della riga */
    .cart-overview .product-line-grid-right > .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 36px;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    /* Contenitore quantità + prezzo */
    .cart-overview .product-line-grid-right > .row > .col-md-10 {
        float: none;
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 12px;
    }

    /* Quantità e totale */
    .cart-overview .product-line-grid-right > .row > .col-md-10 > .row {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        width: 100%;
        margin: 0;
    }

    /* Quantità */
    .cart-overview .product-line-grid-right .qty {
        float: none;
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    /* Totale riga */
    .cart-overview .product-line-grid-right .price {
        float: none;
        width: auto;
        max-width: none;
        padding-left: 10px;
        padding-right: 0;
        text-align: right;
    }

    .cart-overview .product-line-grid-right .price .product-price,
    .cart-overview .product-line-grid-right .price .product-price strong {
        display: block;
        width: 100%;
        text-align: right;
        white-space: nowrap;
    }

    /* Colonna cestino */
    .cart-overview .product-line-grid-right > .row > .col-md-2 {
        float: none;
        width: 36px;
        max-width: 36px;
        padding: 0;
        text-align: right;
    }

    .cart-overview .cart-line-product-actions {
        width: 100%;
        text-align: right;
    }
}


/* =========================================================
   GESMART - CARRELLO: PREZZO UNITARIO + SPAZIATURA RIGHE
   ========================================================= */
@media (min-width: 768px) {

    /* Prezzo unitario sotto descrizione: meno dominante */
    .cart-overview .product-line-grid-body .product-price .current-price .price {
        font-size: 25px;
        line-height: 27px;
    }

    /* Leggera separazione tra i prodotti */
    .cart-overview .cart-item {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* Separatore discreto tra le righe */
    .cart-overview .cart-item + .cart-item {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
}


@media (min-width: 768px) {

    .cart-overview .product-line-grid-body .product-price .current-price .price {
        font-size: 22px;
        line-height: 24px;
    }

}


/* =========================================================
   GESMART - CARRELLO: ALLINEAMENTO PREZZO UNITARIO
   ========================================================= */
@media (min-width: 768px) {

    .cart-overview .product-line-grid-body .product-price {
        margin-top: 2px;
        margin-bottom: 0;
    }

    .cart-overview .product-line-grid-body .product-price .current-price {
        margin: 0;
        padding: 0;
    }
}


/* =========================================================
   GESMART - CARRELLO: RIDUZIONE TOTALI RIGA
   ========================================================= */
@media (min-width: 768px) {

    .cart-overview .product-line-grid-right .price .product-price,
    .cart-overview .product-line-grid-right .price .product-price strong {
        font-size: 26px;
        line-height: 28px;
    }

}


@media (min-width: 768px) {

    .cart-overview .product-line-grid-right .price .product-price,
    .cart-overview .product-line-grid-right .price .product-price strong {
        font-size: 24px;
        line-height: 26px;
    }

}


/* =========================================================
   GESMART - CARRELLO: PREZZI A 20PX
   ========================================================= */
@media (min-width: 768px) {

    /* Prezzo unitario */
    .cart-overview .product-line-grid-body .product-price .current-price .price {
        font-size: 20px;
        line-height: 22px;
    }

    /* Totale riga */
    .cart-overview .product-line-grid-right .price .product-price,
    .cart-overview .product-line-grid-right .price .product-price strong {
        font-size: 20px;
        line-height: 22px;
    }

}


/* =========================================================
   GESMART - CARRELLO MOBILE
   ========================================================= */
@media (max-width: 767px) {

    /* Prezzo unitario */
    .cart-overview .product-line-grid-body .product-price .current-price .price {
        font-size: 20px;
        line-height: 22px;
    }

    /* Totale riga */
    .cart-overview .product-line-grid-right .price .product-price,
    .cart-overview .product-line-grid-right .price .product-price strong {
        font-size: 20px;
        line-height: 22px;
        white-space: nowrap;
    }

    /* Blocco quantità / totale / cestino */
    .cart-overview .product-line-grid-right > .row {
        display: grid;
        grid-template-columns: 1fr 34px;
        align-items: center;
        margin: 0;
    }

    .cart-overview .product-line-grid-right > .row > .col-xs-6 {
        width: auto;
        padding-left: 0;
        padding-right: 8px;
    }

    .cart-overview .product-line-grid-right > .row > .col-xs-2 {
        width: 34px;
        padding: 0;
        text-align: right;
    }

    .cart-overview .product-line-grid-right > .row > .col-xs-6 > .row {
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr);
        align-items: center;
        margin: 0;
    }

    .cart-overview .product-line-grid-right .qty {
        width: auto;
        padding: 0;
    }

    .cart-overview .product-line-grid-right .price {
        width: auto;
        padding: 0 4px 0 8px;
        text-align: right;
    }

    .cart-overview .cart-line-product-actions {
        text-align: right;
    }
}


/* =========================================================
   GESMART - FIX CARRELLO MOBILE: QTA / TOTALE / CESTINO
   ========================================================= */
@media (max-width: 767px) {

    /* Elimina la colonna vuota prevista dal layout Bootstrap originale */
    .cart-overview
    .product-line-grid-right
    > .row
    > .hidden-md-up {
        display: none !important;
    }

    /* Riga principale: contenuto + cestino */
    .cart-overview .product-line-grid-right > .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 28px;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    /* Blocco quantità + totale */
    .cart-overview
    .product-line-grid-right
    > .row
    > .col-md-10 {
        float: none;
        width: auto;
        padding: 0;
    }

    .cart-overview
    .product-line-grid-right
    > .row
    > .col-md-10
    > .row {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: center;
        width: 100%;
        margin: 0;
    }

    /* Quantità */
    .cart-overview .product-line-grid-right .qty {
        float: none;
        width: auto;
        padding: 0;
        text-align: left;
    }

    /* Totale riga */
    .cart-overview .product-line-grid-right .price {
        float: none;
        width: auto;
        padding: 0 8px;
        text-align: right;
    }

    .cart-overview .product-line-grid-right .price .product-price,
    .cart-overview .product-line-grid-right .price .product-price strong {
        display: block;
        width: 100%;
        font-size: 20px;
        line-height: 22px;
        text-align: right;
        white-space: nowrap;
    }

    /* Cestino */
    .cart-overview
    .product-line-grid-right
    > .row
    > .col-md-2 {
        float: none;
        width: 28px;
        padding: 0;
        text-align: right;
    }

    .cart-overview .cart-line-product-actions {
        width: 100%;
        text-align: right;
    }

    .cart-overview .cart-line-product-actions .remove-from-cart {
        margin: 0;
    }
}


/* =========================================================
   GESMART - CARRELLO MOBILE: RIFINITURE FINALI
   ========================================================= */
@media (max-width: 767px) {

    /* Prezzo unitario leggermente meno evidente */
    .cart-overview .product-line-grid-body .product-price .current-price .price {
        font-size: 18px;
        line-height: 20px;
    }

    /* Totale riga resta più importante */
    .cart-overview .product-line-grid-right .price .product-price,
    .cart-overview .product-line-grid-right .price .product-price strong {
        font-size: 20px;
        line-height: 22px;
    }

    /* Avvicina la riga quantità / totale / cestino alla descrizione */
    .cart-overview .product-line-grid-right {
        margin-top: -6px;
    }

    /* Mantiene comunque un minimo di respiro tra i prodotti */
    .cart-overview .cart-item {
        padding-top: 6px;
        padding-bottom: 6px;
    }
}


/* =========================================================
   GESMART - CARRELLO MOBILE: ALLINEAMENTO QUANTITA'
   ========================================================= */
@media (max-width: 767px) {

    /* Più spazio alla colonna quantità */
    .cart-overview
    .product-line-grid-right
    > .row
    > .col-md-10
    > .row {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    /* Porta il selettore quantità verso destra */
    .cart-overview .product-line-grid-right .qty {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
}


/* =========================================================
   GESMART - CARRELLO: MOBILE PICCOLO <= 360PX
   ========================================================= */
@media (max-width: 360px) {

    /* Riduce leggermente la colonna immagine */
    .cart-overview .product-line-grid-left {
        width: 27%;
        padding-left: 0;
        padding-right: 8px;
    }

    /* Recupera spazio per la descrizione */
    .cart-overview .product-line-grid-body {
        width: 73%;
        padding-left: 4px;
        padding-right: 0;
    }

    /* Immagine leggermente più piccola sui telefoni stretti */
    .cart-overview .product-line-grid-left img {
        max-width: 65px;
        max-height: 65px;
    }
}


/* =========================================================
   GESMART - HEADER TABLET
   Mobile header fino a 991px
   Desktop header da 992px
   ========================================================= */
@media (min-width: 768px) and (max-width: 991px) {

    /* Nasconde la barra superiore desktop */
    #header .header-nav .hidden-sm-down {
        display: none !important;
    }

    /* Mostra la barra mobile: hamburger / logo / account / carrello */
    #header .header-nav .hidden-md-up.mobile {
        display: block !important;
        width: 100%;
    }

    /* Il logo desktop non deve comparire */
    #header #_desktop_logo.hidden-sm-down {
        display: none !important;
    }

    /* La zona ricerca deve usare tutta la larghezza */
    #header .header-top-right {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #header .header-top .search-widget {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Menu categorie desktop disattivato nella fascia tablet */
    #header .sub-header-top {
        display: none !important;
    }

    /* Stesso comportamento del logo mobile */
    #header .top-logo {
        display: flex !important;
        align-items: center !important;
        min-height: 50px;
    }

    #header .top-logo img {
        width: auto;
        max-height: 2rem;
    }

    /*
     * hidden-md-up di Bootstrap nasconderebbe comunque il menu
     * mobile sopra i 767px. Lo abilitiamo soltanto quando
     * l'header è aperto tramite hamburger.
     */
    #header #mobile_top_menu_wrapper.hidden-md-up {
        display: none !important;
    }

    #header.is-open #mobile_top_menu_wrapper.hidden-md-up {
        display: block !important;
    }
}


/* =========================================================
   GESMART - HEADER TABLET: ICONA UTENTE 768-991PX
   ========================================================= */
@media (min-width: 768px) and (max-width: 991px) {

    /* Mostra l'icona utente mobile anche su tablet */
    #header #_mobile_user_info .hidden-md-up {
        display: inline-block !important;
    }

    /* Nasconde nome account / logout desktop nella fascia tablet */
    #header #_mobile_user_info .hidden-sm-down {
        display: none !important;
    }

    #header #_mobile_user_info .user-info {
        display: block;
        margin: 0;
    }
}


/* =========================================================
   GESMART - HEADER TABLET: CENTRATURA ICONA UTENTE
   ========================================================= */
@media (min-width: 768px) and (max-width: 991px) {

    #header #_mobile_user_info .user-info {
        display: block;
        margin-top: 0.9375rem;
        margin-bottom: 0;
    }

    #header #_mobile_user_info .material-icons {
        line-height: 1;
        vertical-align: middle;
    }
}


/* =========================================================
   GESMART - DESKTOP COMPATTO 992-1199PX
   ========================================================= */
@media (min-width: 992px) and (max-width: 1199px) {

    /* Menu categorie: una riga, ma dimensione fluida */
    #_desktop_top_menu .top-menu[data-depth="0"],
    .sub-header-top .top-menu[data-depth="0"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    #_desktop_top_menu .top-menu a[data-depth="0"],
    .sub-header-top .top-menu a[data-depth="0"] {
        font-size: clamp(12px, 1.15vw, 14px) !important;
        padding: 10px 2px !important;
        letter-spacing: -0.1px;
        white-space: nowrap !important;
    }

    /* Barra superiore leggermente più compatta */
    #header .header-nav .user-info {
        margin-left: 1rem;
    }

    #header .header-nav .blockcart {
        margin-left: .5rem;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    #header .header-nav {
        font-size: 13px;
    }

    /* Checkout su una riga anche nel desktop stretto */
    .cart-grid-right .card-block.checkout .btn-primary {
        font-size: 14px;
        padding-left: 6px;
        padding-right: 6px;
        white-space: nowrap;
    }
}



/* ========================================
   GESMART - DISPONIBILITA + IN ARRIVO
   ======================================== */

.product-qty-container.gs-availability-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.product-miniature .product-qty-container.gs-availability-stack {
    align-items: flex-end;
}



/* ========================================
   GESMART - BADGE LOGISTICI NEL FLUSSO PRODOTTO
   ======================================== */

/* Nella griglia i badge stanno sotto prezzo/sconto e allineati a sinistra. */
:where(.products:not(.st-catalog-view--list):not(.st-catalog-view--compact))
.product-miniature .product-description
.product-qty-container.gs-availability-stack {
    position: static;
    width: auto;
    margin: 5px 0 8px;
    padding: 0;
    justify-content: flex-start;
    align-items: flex-start;
}


/* ========================================
   GESMART - ALLINEAMENTO VERTICALE BADGE
   ======================================== */




/* ========================================
   GESMART - ALLINEAMENTO FINALE BADGE GRIGLIA
   ======================================== */

:where(.products:not(.st-catalog-view--list):not(.st-catalog-view--compact))
.product-miniature .product-description
.product-qty-container.gs-availability-stack {
    height: 88px;
    min-height: 88px;
    box-sizing: border-box;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 6px;
}

:where(.products:not(.st-catalog-view--list):not(.st-catalog-view--compact))
.product-miniature .product-description
.product-qty-container.gs-availability-stack .product-qty {
    margin-top: 0;
    margin-bottom: 0;
}


/* =========================================================
   GESMART - AVVISO PRODOTTO SU ORDINAZIONE
   ========================================================= */
#product-availability .gs-order-warning {
    display: block;
    margin: 10px 0 12px;
    padding: 10px 12px;
    background: #eef7fb;
    border: 1px solid #1f6f8b;
    border-left: 4px solid #1f6f8b;
    border-radius: 4px;
    color: #263c46;
    line-height: 1.35;
}

#product-availability .gs-order-warning__title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1f6f8b;
    font-weight: 700;
}

#product-availability .gs-order-warning__title .material-icons {
    font-size: 20px;
}

#product-availability .gs-order-warning__text {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.gs-zero-stock-warning {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff8e5;
    border: 1px solid #e0b84f;
    border-left: 4px solid #c47a00;
    border-radius: 4px;
    color: #554516;
    line-height: 1.4;
}

.gs-zero-stock-warning strong {
    display: block;
    font-weight: 700;
}

.gs-zero-stock-warning span {
    display: block;
    margin-top: 4px;
}

/* Spazio sotto avviso disponibilità zero */
.gs-zero-stock-warning {
    margin-bottom: 12px;
}

/* =========================================================
   GESMART - DISPONIBILITA ZERO NEL CARRELLO
   ========================================================= */

.gs-cart-zero-stock {
    margin: 8px 0 10px;
}

.gs-cart-zero-stock__badge {
    display: inline-block;
    padding: 3px 7px;
    background: #fff3cd;
    border: 1px solid #e0b84f;
    border-radius: 3px;
    color: #765600;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.gs-cart-zero-stock__text {
    display: block;
    margin-top: 5px;
    padding: 7px 9px;
    background: #fff8e5;
    border-left: 3px solid #c47a00;
    color: #554516;
    font-size: 12px;
    line-height: 1.35;
}

.gs-cart-zero-stock__text strong {
    display: block;
}

#blockcart-modal .gs-cart-zero-stock--modal {
    margin-top: 8px;
}

#blockcart-modal .gs-cart-zero-stock--modal .gs-cart-zero-stock__text {
    padding: 5px 7px;
}

/* =========================================================
   GESMART - RIFINITURA DISPONIBILITA ZERO NEL CARRELLO
   ========================================================= */

.gs-cart-zero-stock--badge-only {
    margin: 6px 0 4px;
}

.gs-cart-zero-stock-full {
    clear: both;
    margin-top: 8px;
    margin-bottom: 6px;
}

.gs-cart-zero-stock-full .gs-cart-zero-stock__text {
    margin-top: 0;
    padding: 8px 10px;
}

.gs-cart-zero-stock-full .gs-cart-zero-stock__text span {
    display: block;
    margin-top: 2px;
}

/* Avviso disponibilità zero sotto l'intera riga carrello */
.gs-cart-zero-stock-full {
    display: block;
    width: 100%;
    clear: both;
    margin: 8px 0 10px;
    padding: 0;
    float: none;
}

/* =========================================================
   GESMART - DISPONIBILITA ZERO NEL RIEPILOGO CHECKOUT
   ========================================================= */

.gs-checkout-zero-stock {
    display: block;
    clear: both;
    margin-top: 6px;
    margin-bottom: 4px;
}

.gs-checkout-zero-stock__text {
    display: block;
    margin-top: 4px;
    padding: 5px 7px;
    background: #fff8e5;
    border-left: 3px solid #c47a00;
    color: #554516;
    font-size: 11px;
    line-height: 1.3;
}

/* GESMART - badge logistici scheda prodotto */
body#product .product-qty-container.gs-availability-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    gap: 3px;
    margin-bottom: 8px;
}

/* GeSmart - badge prodotto impilati correttamente nella vista griglia */
#js-product-list
.products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
.product-miniature
.product-flags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#js-product-list
.products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
.product-miniature
.product-flags li.product-flag {
    position: static !important;
    margin-top: 5px;
}

/* GeSmart - NUOVO partecipa allo stack dei badge nella vista griglia */
#js-product-list
.products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
.product-miniature
.product-flags li.product-flag.new {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    margin-top: 5px !important;
}

/* =========================================================
   GESMART - STOCK POPOVER COMPATTO
   ========================================================= */

.gs-product-availability .gs-stock-compact-total {
    white-space: nowrap;
}

.gs-product-availability .gs-stock-popover {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    flex: 0 0 auto;
}

.gs-product-availability .gs-stock-info {
    display: inline-flex;
    width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
    list-style: none;
    user-select: none;
}

.gs-product-availability .gs-stock-info::-webkit-details-marker {
    display: none;
}

.gs-product-availability .gs-stock-info::marker {
    content: "";
}

.gs-product-availability .gs-stock-popover-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: -6px;
    z-index: 9999;
    min-width: 185px;
    padding: 10px 12px;
    background: #fff;
    color: #232323;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    text-align: left;
    white-space: normal;
}

.gs-product-availability .gs-stock-popover[open] .gs-stock-popover-panel,
.gs-product-availability .gs-stock-popover:hover .gs-stock-popover-panel,
.gs-product-availability .gs-stock-popover:focus-within .gs-stock-popover-panel {
    display: block;
}

.gs-product-availability .gs-stock-popover-title {
    margin-bottom: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.gs-product-availability .gs-stock-popover-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 3px 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.gs-product-availability .gs-stock-popover-row strong {
    font-weight: 700;
}


/* =========================================================
   GESMART - STOCK POPOVER: LARGHEZZA VISTA COMPATTA
   ========================================================= */

@media (min-width: 768px) {
}



/* GESMART - Etichetta stock abbreviata solo in vista compatta */
.gs-stock-label-short {
    display: none !important;
}

@media (min-width: 768px) {
    #js-product-list
    .products.st-catalog-view--compact
    .gs-stock-label-full {
        display: none;
    }

    #js-product-list
    .products.st-catalog-view--compact
    .gs-stock-label-short {
        display: inline;
    }
}


/* =========================================================
   GESMART - STOCK POPOVER VISIBILE IN VISTA COMPATTA
   ========================================================= */

@media (min-width: 768px) {

    #js-product-list
    .products.st-catalog-view--compact
    .product-miniature
    .product-price-and-shipping,

    #js-product-list
    .products.st-catalog-view--compact
    .product-miniature
    .product-price-and-shipping
    .product-qty-container.gs-availability-stack,

    #js-product-list
    .products.st-catalog-view--compact
    .product-miniature
    .product-price-and-shipping
    .product-qty-container.gs-availability-stack
    .product-qty.gs-product-availability {
        overflow: visible !important;
    }
}


/* =========================================================
   GESMART - STOCK POPOVER FUORI DALLA CARD COMPACT
   ========================================================= */

@media (min-width: 768px) {
    #js-product-list
    .products.st-catalog-view--compact
    .product-miniature
    .thumbnail-container {
        overflow: visible !important;
    }
}


/* GESMART - stock allineato a sinistra nella vista compatta */
@media (min-width: 768px) {
    #js-product-list
    .products.st-catalog-view--compact
    .product-miniature
    .product-price-and-shipping
    .product-qty-container.gs-availability-stack
    .product-qty.gs-product-availability {
        justify-content: flex-start;
        text-align: left;
    }
}


/* GESMART - freccia stock popover */
.gs-product-availability .gs-stock-popover-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 9px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 7px solid rgba(0,0,0,.12);
}

.gs-product-availability .gs-stock-popover-panel::after {
    content: "";
    position: absolute;
    top: -6px;
    right: 9px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 7px solid #fff;
}

/* GESMART - stock popover sopra le azioni nella vista lista */
@media (min-width: 768px) {
    #js-product-list
    .products.st-catalog-view--list
    .product-miniature
    .product-price-and-shipping {
        z-index: 6 !important;
    }

    #js-product-list
    .products.st-catalog-view--list
    .gs-stock-popover,
    #js-product-list
    .products.st-catalog-view--list
    .gs-stock-info {
        pointer-events: auto !important;
    }
}

.gs-product-availability--stock .gs-stock-compact-total {
    font-weight: 600;
}

.gs-product-availability--stock .gs-stock-info {
    width: 14px;
    height: 14px;
    margin-left: 3px;
    font-size: 9px;
    border-width: 1px;
    opacity: .78;
}

/* GeSmart - etichetta disponibilita per vista catalogo */
@media (min-width: 768px) {

    /* Vista lista: etichetta completa */
    #js-product-list .products.st-catalog-view--list .gs-stock-label-full {
        display: inline !important;
    }

    #js-product-list .products.st-catalog-view--list .gs-stock-label-short {
        display: none !important;
    }

    /* Vista compatta: etichetta abbreviata */
    #js-product-list .products.st-catalog-view--compact .gs-stock-label-full {
        display: none !important;
    }

    #js-product-list .products.st-catalog-view--compact .gs-stock-label-short {
        display: inline !important;
    }
}

/* GESMART - disponibilità allineata a sinistra nella vista lista */
@media (min-width: 768px) {
    #js-product-list
    .products.st-catalog-view--list
    .product-miniature
    .product-price-and-shipping
    .product-qty-container.gs-availability-stack
    .product-qty.gs-product-availability {
        justify-content: flex-start;
        text-align: left;
    }
}

/* =========================================================
   GESMART - POPOVER STOCK CANONICO
   Unica sorgente per dimensioni e posizionamento.
   ========================================================= */

/* Larghezza unica del pannello in tutte le viste */
.gs-product-availability .gs-stock-popover-panel {
    width: 185px !important;
    min-width: 185px !important;
    box-sizing: border-box !important;
}

/* Nelle miniature il popover si apre sopra il badge */
.product-miniature
.gs-product-availability
.gs-stock-popover-panel {
    top: auto !important;
    right: auto !important;
    bottom: calc(100% + 8px) !important;
    left: calc(100% - 22px) !important;
    margin-left: -20px !important;
    transform: none !important;
    z-index: 1000 !important;
}

/* Vista lista: posizione popover neutra */
@media (min-width: 768px) {
    #js-product-list
    .products.st-catalog-view--list
    .product-miniature
    .gs-product-availability
    .gs-stock-popover-panel {
        margin-left: 0 !important;
    }
}

/* Vista griglia: evita il taglio del pannello */
@media (min-width: 768px) {

    #js-product-list
    .products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
    .product-miniature
    .product-price-and-shipping,

    #js-product-list
    .products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
    .product-miniature
    .product-qty-container.gs-availability-stack {
        overflow: visible !important;
    }

    /* Posizione finale del pannello nella vista griglia */
    #js-product-list
    .products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
    .gs-product-availability
    .gs-stock-popover-panel {
        top: auto !important;
        right: auto !important;
        bottom: calc(100% + 8px) !important;
        left: 25px !important;
        transform: none !important;
        width: 185px !important;
        min-width: 185px !important;
        z-index: 1000 !important;
    }

    /* Freccia esterna */
    #js-product-list
    .products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
    .gs-product-availability
    .gs-stock-popover-panel::before {
        top: auto !important;
        bottom: -7px !important;
        left: 2px !important;
        right: auto !important;
        transform: none !important;

        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 7px solid rgba(0,0,0,.12);
        border-bottom: 0 !important;
    }

    /* Freccia interna */
    #js-product-list
    .products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
    .gs-product-availability
    .gs-stock-popover-panel::after {
        top: auto !important;
        bottom: -6px !important;
        left: 2px !important;
        right: auto !important;
        transform: none !important;

        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 7px solid #fff;
        border-bottom: 0 !important;
    }
}

/* GESMART - griglia: usa etichetta Disponibilità completa */
@media (min-width: 768px) {
    #js-product-list
    .products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
    .gs-stock-label-full {
        display: inline !important;
    }

    #js-product-list
    .products:not(.st-catalog-view--list):not(.st-catalog-view--compact)
    .gs-stock-label-short {
        display: none !important;
    }
}




/* =========================================================
   GESMART - BADGE LOGISTICO GLOBALE
   Unica sorgente per dimensioni e colori in tutto il negozio.
   ========================================================= */

.gs-logistics-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 152px !important;
    min-width: 152px !important;
    max-width: 152px !important;

    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;

    margin: 0 !important;
    padding: 4px 8px !important;

    box-sizing: border-box !important;

    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;

    text-align: left !important;
    white-space: nowrap !important;

    border: 1px solid transparent !important;
    border-radius: 3px !important;
}

/* Disponibilità positiva */
.gs-logistics-badge.gs-product-availability--stock {
    background: #e8f5e4 !important;
    border-color: #a6d49c !important;
    color: #237529 !important;
}

/* Disponibilità zero */
.gs-logistics-badge.gs-product-availability--zero {
    background: #fff3cd !important;
    border-color: #e0b84f !important;
    color: #765600 !important;
}

/* Su ordinazione */
.gs-logistics-badge.gs-product-availability--order {
    background: #0069cd !important;
    border-color: #0069cd !important;
    color: #fff !important;
}

/* Non disponibile */
.gs-logistics-badge.gs-product-availability--unavailable {
    background: #0069cd !important;
    border-color: #0069cd !important;
    color: #fff !important;
}

/* Merce in arrivo */
.gs-logistics-badge.gs-product-incoming {
    background: #cce8fa !important;
    border-color: #7bbbe4 !important;
    color: #0874b9 !important;
}


/* =========================================================
   GESMART - NASCONDI LOGISTICA GLOBALE
   La decisione viene presa una sola volta dal modulo.
   ========================================================= */

body.gs-hide-logistics .gs-logistics-zone {
    display: none !important;
}

/* =========================================================
   GESMART - RICHIEDI INFORMAZIONI
   Stessa geometria dei badge logistici globali.
   ========================================================= */

.gesmart-dual-price__request-info.gs-logistics-badge {
    background: #fff1e6 !important;
    border-color: #f2b27f !important;
    color: #b84800 !important;

    justify-content: center !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

button.gesmart-dual-price__request-info.gs-logistics-badge:hover,
button.gesmart-dual-price__request-info.gs-logistics-badge:focus {
    background: #ffe4cf !important;
    border-color: #dc7d32 !important;
    color: #963a00 !important;
}
/* GeSmart Order Fulfillment UI v2 */

.gs-order-fulfillment {
  margin-top: 9px;
  max-width: 340px;
  padding: 9px 10px;
  background: #fafbfc;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
}

.gs-order-fulfillment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.gs-order-fulfillment__caption {
  font-size: 10px;
  font-weight: 600;
  color: #747b82;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.gs-order-fulfillment__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
}

.gs-order-fulfillment__status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Da evadere */
.gs-order-fulfillment--pending .gs-order-fulfillment__status {
  color: #60656b;
  background: #eef0f2;
}

/* Parzialmente evasa */
.gs-order-fulfillment--partial .gs-order-fulfillment__status {
  color: #8a4b00;
  background: #fff0d7;
}

/* Evasa */
.gs-order-fulfillment--fulfilled .gs-order-fulfillment__status {
  color: #216e39;
  background: #e5f5ea;
}

.gs-order-fulfillment__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gs-order-fulfillment__metric {
  min-width: 68px;
  padding: 5px 8px;
  border: 1px solid #e1e5e9;
  border-radius: 5px;
  background: #fff;
}

.gs-order-fulfillment__metric-label {
  display: block;
  margin-bottom: 1px;
  font-size: 9px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.gs-order-fulfillment__metric-value {
  display: block;
  font-size: 14px;
  line-height: 17px;
  color: #333;
}

/* Merce impegnata - predisposta ma attualmente nascosta */
.gs-order-fulfillment__metric--committed {
  background: #edf6fc;
  border-color: #b9d9ee;
}

.gs-order-fulfillment__metric--committed .gs-order-fulfillment__metric-value {
  color: #24658c;
}

/* Quantità evasa */
.gs-order-fulfillment__metric--fulfilled {
  background: #eef8f0;
  border-color: #c6e4cd;
}

.gs-order-fulfillment__metric--fulfilled .gs-order-fulfillment__metric-value {
  color: #216e39;
}

/* Quantità ancora da evadere */
.gs-order-fulfillment__metric--remaining {
  background: #fff7e9;
  border-color: #f0d5a5;
}

.gs-order-fulfillment__metric--remaining .gs-order-fulfillment__metric-value {
  color: #8a4b00;
}

/* Residuo zero */
.gs-order-fulfillment__metric--remaining.is-zero {
  background: #f5f6f7;
  border-color: #e1e5e9;
}

.gs-order-fulfillment__metric--remaining.is-zero .gs-order-fulfillment__metric-value {
  color: #70767c;
}

@media (max-width: 767px) {

  .gs-order-fulfillment {
    max-width: none;
    margin-top: 8px;
  }

  .gs-order-fulfillment__metric {
    flex: 1 1 70px;
  }

}


/* Quantità ordinata */
.gs-order-fulfillment__metric--ordered {
  background: #f5f6f7;
  border-color: #dfe3e7;
}

.gs-order-fulfillment__metric--ordered .gs-order-fulfillment__metric-value {
  color: #353a3f;
}

/* ============================================================
   MENU ORDINAMENTO - testo leggibile su voce evidenziata
   ============================================================ */
.products-sort-order .dropdown-menu .select-list.current {
    color: #232323 !important;
}

.products-sort-order .dropdown-menu .select-list:hover,
.products-sort-order .dropdown-menu .select-list:focus {
    color: #fff !important;
}


/* GeSmart Order Table UI v3 */

.gs-order-products-table th,
.gs-order-products-table td {
  vertical-align: middle;
}

.gs-order-products-table__product-cell {
  min-width: 420px;
}

.gs-order-product {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gs-order-product__thumb {
  width: 54px;
  min-width: 54px;
}

.gs-order-product__thumb img,
.gs-order-mobile-card__thumb img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 3px;
  border-radius: 4px;
}

.gs-order-product__thumb-placeholder {
  display: block;
  width: 54px;
  height: 54px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 4px;
}

.gs-order-product__content {
  min-width: 0;
}

.gs-order-product__content strong a {
  color: #fe5d01;
  text-decoration: none;
}

.gs-order-product__content strong a:hover {
  text-decoration: underline;
}

.gs-order-product__reference {
  color: #444;
}

.gs-order-products-table__metric {
  width: 92px;
  font-weight: 600;
  white-space: nowrap;
}

.gs-order-products-table__status-cell {
  width: 140px;
  white-space: nowrap;
}

.gs-order-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.gs-order-status-badge--pending {
  color: #60656b;
  background: #eef0f2;
}

.gs-order-status-badge--partial {
  color: #8a4b00;
  background: #fff0d7;
}

.gs-order-status-badge--fulfilled {
  color: #216e39;
  background: #e5f5ea;
}

.gs-order-status-badge--unknown {
  color: #666;
  background: #f0f0f0;
}

.gs-order-mobile-card {
  padding: 12px;
  border: 1px solid #ececec;
  border-radius: 6px;
  margin-bottom: 12px;
}

.gs-order-mobile-card__top {
  display: flex;
  gap: 10px;
}

.gs-order-mobile-card__thumb {
  width: 54px;
  min-width: 54px;
}

.gs-order-mobile-card__stats {
  margin-top: 6px;
  font-size: 12px;
}

.gs-order-mobile-card__stats span {
  display: block;
  margin-bottom: 2px;
}

.gs-order-mobile-card__status {
  margin-top: 6px;
}

.gs-order-mobile-card__bottom {
  margin-top: 10px;
  font-size: 13px;
}

.gs-order-mobile-card__bottom > div {
  margin-bottom: 3px;
}

@media print {
  .gs-order-products-table th,
  .gs-order-products-table td {
    padding: 6px 7px !important;
    font-size: 11px !important;
  }

  .gs-order-product__thumb img {
    width: 42px;
    height: 42px;
  }

  .gs-order-products-table__product-cell {
    min-width: 0;
  }

  .gs-order-products-table__metric {
    width: 70px;
  }

  .gs-order-products-table__status-cell {
    width: 110px;
  }

  .gs-order-status-badge {
    padding: 3px 7px;
    font-size: 10px;
  }

  #order-products tr {
    page-break-inside: avoid;
  }
}


/* GeSmart Order Table UI v3.1 - compact refinement */

.gs-order-products-table > thead > tr > th {
  padding: 7px 8px;
  vertical-align: middle;
}

.gs-order-products-table > tbody > tr > td {
  padding: 6px 8px;
  vertical-align: middle;
}

.gs-order-product {
  gap: 9px;
  align-items: center;
}

.gs-order-product__thumb {
  width: 44px;
  min-width: 44px;
}

.gs-order-product__thumb img,
.gs-order-product__thumb-placeholder {
  width: 44px;
  height: 44px;
}

.gs-order-product__thumb img {
  padding: 2px;
}

.gs-order-product__content {
  line-height: 1.2;
}

.gs-order-product__reference {
  font-size: 12px;
}

.gs-order-products-table__metric {
  width: 74px;
}

.gs-order-products-table__status-cell {
  width: 118px;
}

.gs-order-products-table__metric--committed {
  background: #f5faff;
}

.gs-order-products-table__row--fee > td {
  padding-top: 5px;
  padding-bottom: 5px;
}

.gs-order-products-table__row--fee .gs-order-product {
  min-height: 30px;
}

@media print {
  .gs-order-products-table > thead > tr > th,
  .gs-order-products-table > tbody > tr > td {
    padding: 4px 5px !important;
  }

  .gs-order-product__thumb,
  .gs-order-product__thumb img,
  .gs-order-product__thumb-placeholder {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .gs-order-products-table__metric {
    width: 58px;
  }

  .gs-order-products-table__status-cell {
    width: 95px;
  }
}

/* GeSmart Order Return UI v3.2 */

.gs-order-products-table--return .head-checkbox {
  width: 34px;
  min-width: 34px;
  text-align: center;
  vertical-align: middle;
}

.gs-order-products-table--return .head-checkbox input {
  margin: 0;
}

.gs-order-return-header,
.gs-order-return-cell {
  width: 82px;
  min-width: 82px;
}

.gs-order-return-cell {
  vertical-align: middle !important;
}

.gs-order-return-select {
  width: 58px;
  margin: 0 auto;
}

.gs-order-return-select .form-control {
  height: 29px;
  min-height: 29px;
  padding: 3px 20px 3px 7px;
  font-size: 12px;
}

.gs-order-returned-count {
  margin-bottom: 4px;
  font-size: 10px;
  white-space: nowrap;
}

@media print {

  .gs-order-products-table--return .head-checkbox {
    display: none !important;
  }

  .gs-order-return-select {
    display: none !important;
  }

  .gs-order-return-header,
  .gs-order-return-cell {
    width: 55px;
    min-width: 55px;
  }

}

/* GeSmart Order Header UI v4 */

.gs-order-summary {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7e9;
  border-radius: 5px;
  background: #fff;
}

.gs-order-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gs-order-summary__identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.gs-order-summary__eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gs-order-summary__reference {
  font-size: 16px;
  color: #222;
}

.gs-order-summary__date {
  font-size: 12px;
  color: #666;
}

.gs-order-summary__reorder {
  white-space: nowrap;
}

.gs-order-summary__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #eee;
}

.gs-order-summary__meta-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
}

.gs-order-summary__meta-label {
  color: #777;
  font-weight: 600;
}

.gs-order-summary__meta-item--link a {
  font-size: 12px;
}

.gs-order-summary__notes {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #666;
}


/* Stato ordine */

.gs-order-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
  padding: 7px 12px;
  border: 1px solid #e5e7e9;
  border-radius: 5px;
  background: #fafafa;
}

.gs-order-history__current {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gs-order-history__label {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.gs-order-history__current-state {
  margin: 0;
}

.gs-order-history__details {
  position: relative;
  font-size: 12px;
}

.gs-order-history__details summary {
  cursor: pointer;
  color: #555;
  font-weight: 600;
  user-select: none;
}

.gs-order-history__details[open] {
  width: 100%;
}

.gs-order-history__list {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #e4e4e4;
}

.gs-order-history__line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
}

.gs-order-history__date {
  width: 95px;
  font-size: 11px;
  color: #777;
}


/* Tracking */

.gs-order-follow-up {
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid #d9e9f3;
  border-radius: 4px;
  background: #f5fbff;
  font-size: 12px;
}


/* Indirizzi */

.gs-order-addresses {
  display: flex;
  margin: 0 -5px 9px;
}

.gs-order-addresses > div {
  padding-left: 5px;
  padding-right: 5px;
}

.gs-order-address-card {
  height: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7e9;
  border-radius: 5px;
  background: #fff;
}

.gs-order-address-card h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
}

.gs-order-address-card address {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}


/* Mobile */

@media (max-width: 767px) {

  .gs-order-summary__top,
  .gs-order-history {
    align-items: flex-start;
  }

  .gs-order-summary__meta {
    display: block;
  }

  .gs-order-summary__meta-item {
    margin-top: 4px;
  }

  .gs-order-addresses {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .gs-order-addresses > div {
    padding: 0;
    margin-bottom: 7px;
  }

}


/* Stampa */

@media print {

  .gs-order-summary,
  .gs-order-history,
  .gs-order-address-card {
    padding: 5px 7px !important;
  }

  .gs-order-summary__actions,
  .gs-order-history__details,
  .gs-order-follow-up {
    display: none !important;
  }

  .gs-order-summary__meta {
    margin-top: 4px;
    padding-top: 4px;
  }

  .gs-order-address-card address {
    font-size: 10px;
    line-height: 1.15;
  }

  .gs-order-address-card h4 {
    font-size: 10px;
  }

  .gs-order-addresses {
    margin-bottom: 5px;
  }

}

/* GeSmart Order Header UI v4.1 - alignment refinements */

.gs-order-summary__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
}

.gs-order-summary__identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.gs-order-summary__actions {
  justify-self: end;
  align-self: center;
}

.gs-order-summary__meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  column-gap: 24px;
  row-gap: 6px;
}

.gs-order-summary__meta-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.gs-order-summary__meta-item--link {
  justify-self: end;
}

.gs-order-history {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
}

.gs-order-history__current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.gs-order-history__details {
  justify-self: end;
  align-self: center;
}

.gs-order-addresses {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 9px;
}

.gs-order-addresses > div {
  float: none;
  display: flex;
  padding-left: 0;
  padding-right: 0;
}

.gs-order-address-card {
  width: 100%;
}

.gs-order-address-card h4 {
  min-height: 18px;
}

@media (max-width: 991px) {
  .gs-order-summary__meta {
    grid-template-columns: repeat(2, max-content);
  }

  .gs-order-summary__meta-item--link {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .gs-order-summary__top,
  .gs-order-history {
    grid-template-columns: 1fr;
  }

  .gs-order-summary__actions,
  .gs-order-history__details {
    justify-self: start;
  }

  .gs-order-summary__meta {
    display: block;
  }

  .gs-order-summary__meta-item {
    margin-top: 4px;
  }

  .gs-order-addresses {
    display: block;
    margin: 0 0 9px;
  }

  .gs-order-addresses > div {
    display: block;
    margin-bottom: 7px;
  }
}

@media print {
  .gs-order-summary__top,
  .gs-order-history {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .gs-order-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .gs-order-addresses {
    display: flex;
    gap: 8px;
  }

  .gs-order-addresses > div {
    display: block;
  }
}

/* GeSmart Order Header UI v4.2 - align width with product detail */

.gs-order-summary,
.gs-order-history,
.gs-order-follow-up,
.gs-order-addresses {
  margin-left: 15px;
  margin-right: 15px;
}

.gs-order-addresses {
  width: auto;
}

@media (max-width: 767px) {
  .gs-order-summary,
  .gs-order-history,
  .gs-order-follow-up,
  .gs-order-addresses {
    margin-left: 0;
    margin-right: 0;
  }
}

@media print {
  .gs-order-summary,
  .gs-order-history,
  .gs-order-follow-up,
  .gs-order-addresses {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* GeSmart Order Header UI v4.3 - compact addresses */

.gs-order-addresses {
  gap: 8px;
  margin-bottom: 7px;
}

.gs-order-address-card {
  padding: 5px 8px;
}

.gs-order-address-card h4 {
  min-height: 0;
  margin: 0 0 2px;
  font-size: 11px;
  line-height: 1.1;
}

.gs-order-address-card address {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.12;
}

@media print {
  .gs-order-address-card {
    padding: 3px 5px !important;
  }

  .gs-order-address-card h4 {
    margin-bottom: 1px;
    font-size: 9px;
  }

  .gs-order-address-card address {
    font-size: 9px;
    line-height: 1.05;
  }
}

/* GeSmart Order Header UI v4.4 - address section same width as header blocks */

.gs-order-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-left: 15px;
  margin-right: 15px;
  width: calc(100% - 30px);
}

.gs-order-addresses > .col-lg-6,
.gs-order-addresses > .col-md-6,
.gs-order-addresses > .col-sm-6 {
  width: auto;
  max-width: none;
  flex: none;
  padding-left: 0;
  padding-right: 0;
}

.gs-order-address-card {
  width: 100%;
}

@media (max-width: 767px) {
  .gs-order-addresses {
    display: block;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .gs-order-addresses > .col-lg-6,
  .gs-order-addresses > .col-md-6,
  .gs-order-addresses > .col-sm-6 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 7px;
  }
}

@media print {
  .gs-order-addresses {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
}

/* GeSmart Order Header UI v4.5 - exact address alignment */

body#order-detail .gs-order-addresses,
.gs-order-addresses {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  /* gap più compatto fra le due card */
  gap: 6px;

  /* stessa larghezza esatta dei blocchi Ordine / Stato */
  margin-top: 7px !important;
  margin-left: 15px !important;
  margin-right: 15px !important;
  margin-bottom: 9px !important;

  width: auto !important;
  max-width: none !important;

  box-sizing: border-box;
}

body#order-detail .gs-order-addresses > .col-lg-6,
body#order-detail .gs-order-addresses > .col-md-6,
body#order-detail .gs-order-addresses > .col-sm-6,
.gs-order-addresses > .col-lg-6,
.gs-order-addresses > .col-md-6,
.gs-order-addresses > .col-sm-6 {
  float: none !important;
  width: auto !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

.gs-order-address-card {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body#order-detail .gs-order-addresses,
  .gs-order-addresses {
    display: block;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .gs-order-addresses > div {
    width: 100% !important;
    margin-bottom: 7px !important;
  }
}

@media print {
  body#order-detail .gs-order-addresses,
  .gs-order-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* GeSmart Order Header UI v4.6 - unified address block */

.gs-order-addresses {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 !important;

  margin-left: 15px !important;
  margin-right: 15px !important;
  margin-top: 7px !important;
  margin-bottom: 12px !important;

  width: auto !important;

  border: 1px solid #e1e4e7;
  border-radius: 5px;
  background: #fff;

  overflow: hidden;
}

.gs-order-addresses > .col-lg-6,
.gs-order-addresses > .col-md-6,
.gs-order-addresses > .col-sm-6 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gs-order-addresses > div + div {
  border-left: 1px solid #e1e4e7;
}

.gs-order-address-card {
  width: 100%;
  height: 100%;

  margin: 0 !important;
  padding: 8px 10px !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;

  box-sizing: border-box;
}

.gs-order-address-card h4 {
  margin: 0 0 4px !important;
  font-size: 12px;
  line-height: 1.2;
}

.gs-order-address-card address {
  margin: 0 !important;
  line-height: 1.2;
}

/* leggermente meno spazio prima della tabella prodotti */
.gs-order-addresses + * {
  margin-top: 0;
}

@media (max-width: 767px) {

  .gs-order-addresses {
    display: block !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .gs-order-addresses > div + div {
    border-left: 0;
    border-top: 1px solid #e1e4e7;
  }

}

@media print {

  .gs-order-addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }

}

/* GeSmart Order Header UI v4.7 - final visual refinement */

/* Avvicina il blocco indirizzi allo stato ordine */
.gs-order-history {
  margin-bottom: 5px;
}

.gs-order-addresses {
  margin-top: 0 !important;
}

/* Padding coerente con Ordine / Stato */
.gs-order-address-card {
  padding: 8px 12px !important;
}

/* Intestazione interna delle due sezioni */
.gs-order-address-card h4 {
  margin: -8px -12px 6px !important;
  padding: 6px 12px;

  background: #f7f7f7;
  border-bottom: 1px solid #e7e7e7;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

/* Mantiene compatto il contenuto indirizzo */
.gs-order-address-card address {
  margin: 0 !important;
  line-height: 1.2;
}

/* Separatore centrale leggermente più delicato */
.gs-order-addresses > div + div {
  border-left-color: #e7e7e7;
}

@media (max-width: 767px) {

  .gs-order-address-card h4 {
    margin: -8px -12px 6px !important;
  }

  .gs-order-addresses > div + div {
    border-left: 0;
    border-top: 1px solid #e7e7e7;
  }

}

@media print {

  .gs-order-address-card {
    padding: 5px 7px !important;
  }

  .gs-order-address-card h4 {
    margin: -5px -7px 4px !important;
    padding: 4px 7px;
    background: #f7f7f7 !important;
  }

}

/* GeSmart Order Header UI v4.8 - company hierarchy */

/* Header indirizzi leggermente più compatto e coerente con tabella prodotti */
.gs-order-address-card h4 {
  margin: -8px -12px 5px !important;
  padding: 5px 12px !important;
  background: #f5f5f5 !important;
}

/* Ragione sociale: informazione primaria */
.gs-order-address-company {
  margin: 0 0 3px;
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 600;
  color: #292929;
}

/* Dati logistici/anagrafici secondari */
.gs-order-address-card address {
  font-size: 10.5px;
  line-height: 1.15;
  color: #454545;
}

@media print {
  .gs-order-address-company {
    margin-bottom: 2px;
    font-size: 9.5px;
    font-weight: 600;
  }
}

/* GeSmart Order Header UI v4.9 - structured address data */

.gs-order-address-details {
  font-size: 10.5px;
  line-height: 1.18;
  color: #454545;
}

.gs-order-address-details > div {
  margin: 0 0 1px;
}

.gs-order-address-label {
  font-weight: 600;
  color: #555;
}

.gs-order-address-company {
  margin-bottom: 4px;
}

/* GeSmart Order Header UI v5.0 - address font refinement */

.gs-order-address-company {
  font-size: 13px;
  line-height: 1.2;
}

.gs-order-address-details {
  font-size: 12px;
  line-height: 1.25;
}

.gs-order-address-details > div {
  margin-bottom: 2px;
}

.gs-order-address-label {
  font-size: 12px;
}

@media print {
  .gs-order-address-company {
    font-size: 10px;
  }

  .gs-order-address-details,
  .gs-order-address-label {
    font-size: 9.5px;
    line-height: 1.15;
  }
}

/* GeSmart Order Print UI v1 */

@media print {

  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  html,
  body {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body#order-detail {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  /* Mantiene colori e badge nella stampa/PDF */
  body#order-detail,
  body#order-detail * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Elementi del sito non utili nel documento */
  body#order-detail #header,
  body#order-detail header#header,
  body#order-detail .header-top,
  body#order-detail .header-nav,
  body#order-detail #footer,
  body#order-detail footer,
  body#order-detail .breadcrumb,
  body#order-detail .page-footer,
  body#order-detail .footer-container,
  body#order-detail .gs-order-summary__actions,
  body#order-detail .gs-order-history__details,
  body#order-detail .gs-order-follow-up,
  body#order-detail .btn,
  body#order-detail button {
    display: none !important;
  }

  /* Usa tutta la larghezza A4 */
  body#order-detail #wrapper,
  body#order-detail #content-wrapper,
  body#order-detail #main,
  body#order-detail .container,
  body#order-detail .container-fluid,
  body#order-detail .page-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Titolo pagina */
  body#order-detail .page-header {
    margin: 0 0 5mm !important;
    padding: 0 !important;
  }

  body#order-detail .page-header h1,
  body#order-detail h1 {
    margin: 0 0 4mm !important;
    font-size: 16px !important;
  }

  /* Testata ordine */
  body#order-detail .gs-order-summary,
  body#order-detail .gs-order-history {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 4px !important;
    padding: 5px 7px !important;
    border: 1px solid #ccc !important;
  }

  body#order-detail .gs-order-summary__reference {
    font-size: 13px !important;
  }

  body#order-detail .gs-order-summary__date,
  body#order-detail .gs-order-summary__meta-item,
  body#order-detail .gs-order-history__label {
    font-size: 9px !important;
  }

  body#order-detail .gs-order-summary__meta {
    margin-top: 4px !important;
    padding-top: 4px !important;
    gap: 3px 12px !important;
  }

  /* Indirizzi */
  body#order-detail .gs-order-addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 4px !important;
    margin-bottom: 5px !important;

    width: 100% !important;
    border: 1px solid #ccc !important;
  }

  body#order-detail .gs-order-address-card {
    padding: 5px 7px !important;
  }

  body#order-detail .gs-order-address-card h4 {
    margin: -5px -7px 4px !important;
    padding: 4px 7px !important;
    font-size: 9px !important;
  }

  body#order-detail .gs-order-address-company {
    margin-bottom: 2px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
  }

  body#order-detail .gs-order-address-details,
  body#order-detail .gs-order-address-label {
    font-size: 9px !important;
    line-height: 1.12 !important;
  }

  body#order-detail .gs-order-address-details > div {
    margin-bottom: 1px !important;
  }

  /* Tabella prodotti */
  body#order-detail #order-products {
    width: 100% !important;
    table-layout: fixed !important;
    margin: 0 !important;
    font-size: 9px !important;
  }

  body#order-detail #order-products th,
  body#order-detail #order-products td {
    padding: 4px 5px !important;
    vertical-align: middle !important;
    line-height: 1.15 !important;
  }

  /* Evita righe prodotto spezzate fra due pagine */
  body#order-detail #order-products tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body#order-detail #order-products thead {
    display: table-header-group !important;
  }

  body#order-detail #order-products tfoot {
    display: table-row-group !important;
  }

  /* Miniature */
  body#order-detail .gs-order-product {
    gap: 5px !important;
  }

  body#order-detail .gs-order-product__thumb {
    width: 34px !important;
    min-width: 34px !important;
  }

  body#order-detail .gs-order-product__thumb img,
  body#order-detail .gs-order-product__thumb-placeholder {
    width: 34px !important;
    height: 34px !important;
    padding: 1px !important;
  }

  body#order-detail .gs-order-product__reference {
    font-size: 8px !important;
  }

  /* Colonne quantitative più strette */
  body#order-detail .gs-order-products-table__metric {
    width: 50px !important;
  }

  body#order-detail .gs-order-products-table__status-cell {
    width: 82px !important;
  }

  body#order-detail .gs-order-status-badge {
    padding: 2px 5px !important;
    font-size: 8px !important;
    white-space: nowrap !important;
  }

  /* Totali */
  body#order-detail #order-products tfoot td {
    font-size: 9px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }

  /* Evita che testata e indirizzi si spezzino */
  body#order-detail .gs-order-summary,
  body#order-detail .gs-order-history,
  body#order-detail .gs-order-addresses {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* ==========================================================
   GeSmart Order Print UI v2
   stampa gestionale A4
   ========================================================== */

@media print {

  @page {
    size: A4 portrait;
    margin: 8mm 9mm;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: #fff !important;
  }

  body#order-detail {
    font-size: 9pt !important;
    line-height: 1.15 !important;
  }

  body#order-detail * {
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }


  /* ========================================================
     ELEMENTI DEL SITO DA NON STAMPARE
     ======================================================== */

  body#order-detail #header,
  body#order-detail header#header,
  body#order-detail #footer,
  body#order-detail footer,
  body#order-detail .breadcrumb,
  body#order-detail .page-footer,
  body#order-detail .footer-container,

  body#order-detail .gs-order-summary__actions,
  body#order-detail .gs-order-history__details,
  body#order-detail .gs-order-follow-up,

  body#order-detail .order-items.hidden-md-up,
  body#order-detail .order-totals.hidden-md-up,

  body#order-detail .gs-order-carriers,
  body#order-detail .gs-order-messages {
    display: none !important;
  }


  /* ========================================================
     FORZA LA VERSIONE DESKTOP DEI PRODOTTI
     ======================================================== */

  body#order-detail .gs-order-products-desktop {
    display: block !important;
    visibility: visible !important;

    width: 100% !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;

    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body#order-detail .gs-order-products-desktop #order-products {
    display: table !important;
    visibility: visible !important;
  }


  /* ========================================================
     CONTENITORE PAGINA
     ======================================================== */

  body#order-detail #wrapper,
  body#order-detail #content-wrapper,
  body#order-detail #content,
  body#order-detail #main,
  body#order-detail .container,
  body#order-detail .container-fluid,
  body#order-detail .page-content {
    position: static !important;

    width: 100% !important;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    transform: none !important;
  }

  body#order-detail .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }


  /* ========================================================
     TITOLO
     ======================================================== */

  body#order-detail .page-header,
  body#order-detail .page-header h1,
  body#order-detail h1 {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  body#order-detail .page-header {
    margin-top: 0 !important;
    margin-bottom: 3mm !important;
  }

  body#order-detail .page-header h1,
  body#order-detail h1 {
    margin-top: 0 !important;
    margin-bottom: 3mm !important;

    font-size: 15pt !important;
    line-height: 1.1 !important;
  }


  /* ========================================================
     TESTATA ORDINE
     ======================================================== */

  body#order-detail .gs-order-summary,
  body#order-detail .gs-order-history,
  body#order-detail .gs-order-addresses {
    width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body#order-detail .gs-order-summary {
    margin-bottom: 3px !important;
  }

  body#order-detail .gs-order-summary__top {
    padding: 4px 6px !important;
  }

  body#order-detail .gs-order-summary__meta {
    margin-top: 0 !important;
    padding: 4px 6px !important;

    border-top: 1px solid #ddd !important;
  }

  body#order-detail .gs-order-summary__reference {
    font-size: 10pt !important;
  }

  body#order-detail .gs-order-summary__eyebrow,
  body#order-detail .gs-order-summary__date,
  body#order-detail .gs-order-summary__meta {
    font-size: 8pt !important;
  }


  /* ========================================================
     STATO
     ======================================================== */

  body#order-detail .gs-order-history {
    margin-top: 0 !important;
    margin-bottom: 3px !important;
    padding: 4px 6px !important;
  }

  body#order-detail .gs-order-history__current {
    min-height: 0 !important;
  }

  body#order-detail .gs-order-history__label {
    font-size: 8pt !important;
  }


  /* ========================================================
     INDIRIZZI
     ======================================================== */

  body#order-detail .gs-order-addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 4px !important;

    border: 1px solid #d8d8d8 !important;
    border-radius: 0 !important;
  }

  body#order-detail .gs-order-addresses > div {
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  body#order-detail .gs-order-addresses > div + div {
    border-left: 1px solid #d8d8d8 !important;
    border-top: 0 !important;
  }

  body#order-detail .gs-order-address-card {
    margin: 0 !important;
    padding: 4px 6px !important;

    border: 0 !important;
    border-radius: 0 !important;
  }

  body#order-detail .gs-order-address-card h4 {
    margin: -4px -6px 3px !important;
    padding: 3px 6px !important;

    font-size: 8pt !important;
    line-height: 1.1 !important;
  }

  body#order-detail .gs-order-address-company {
    margin-bottom: 2px !important;

    font-size: 8.5pt !important;
    line-height: 1.1 !important;
  }

  body#order-detail .gs-order-address-details,
  body#order-detail .gs-order-address-label {
    font-size: 7.5pt !important;
    line-height: 1.1 !important;
  }

  body#order-detail .gs-order-address-details > div {
    margin: 0 !important;
  }


  /* ========================================================
     TABELLA PRODOTTI
     ======================================================== */

  body#order-detail .gs-order-products-table {
    width: 100% !important;

    margin: 0 !important;

    table-layout: fixed !important;
    border-collapse: collapse !important;

    font-size: 7.5pt !important;
  }

  body#order-detail .gs-order-products-table thead {
    display: table-header-group !important;
  }

  body#order-detail .gs-order-products-table tbody {
    display: table-row-group !important;
  }

  body#order-detail .gs-order-products-table tfoot {
    display: table-row-group !important;
  }

  body#order-detail .gs-order-products-table th {
    padding: 4px 4px !important;

    font-size: 7.5pt !important;
    line-height: 1.05 !important;

    background: #f2f2f2 !important;
    border: 1px solid #ddd !important;
  }

  body#order-detail .gs-order-products-table td {
    padding: 3px 4px !important;

    line-height: 1.1 !important;
    vertical-align: middle !important;

    border: 1px solid #e2e2e2 !important;
  }

  body#order-detail .gs-order-products-table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }


  /* Prodotto = colonna principale */
  body#order-detail .gs-order-products-table th:first-child,
  body#order-detail .gs-order-products-table td:first-child {
    width: 53% !important;
  }


  /* Quantità */
  body#order-detail .gs-order-products-table__metric {
    width: 6% !important;
    white-space: nowrap !important;
  }


  /* Stato */
  body#order-detail .gs-order-products-table__status-cell {
    width: 10% !important;
    white-space: nowrap !important;
  }


  /* Prezzi */
  body#order-detail .gs-order-products-table th:nth-last-child(2),
  body#order-detail .gs-order-products-table td:nth-last-child(2),
  body#order-detail .gs-order-products-table th:last-child,
  body#order-detail .gs-order-products-table td:last-child {
    width: 10% !important;
    white-space: nowrap !important;
  }


  /* ========================================================
     CONTENUTO PRODOTTO
     ======================================================== */

  body#order-detail .gs-order-product {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  body#order-detail .gs-order-product__thumb {
    width: 27px !important;
    min-width: 27px !important;
    flex: 0 0 27px !important;
  }

  body#order-detail .gs-order-product__thumb img,
  body#order-detail .gs-order-product__thumb-placeholder {
    display: block !important;

    width: 27px !important;
    height: 27px !important;

    margin: 0 !important;
    padding: 1px !important;

    object-fit: contain !important;
  }

  body#order-detail .gs-order-product__content {
    min-width: 0 !important;

    font-size: 7.3pt !important;
    line-height: 1.08 !important;
  }

  body#order-detail .gs-order-product__content strong,
  body#order-detail .gs-order-product__content a {
    font-size: 7.5pt !important;
    line-height: 1.08 !important;

    color: #111 !important;
    text-decoration: none !important;
  }

  body#order-detail .gs-order-product__reference {
    margin-top: 1px !important;

    font-size: 6.8pt !important;
    line-height: 1.05 !important;

    color: #555 !important;
  }


  /* ========================================================
     BADGE STATO
     ======================================================== */

  body#order-detail .gs-order-status-badge {
    display: inline-block !important;

    padding: 2px 4px !important;

    font-size: 6.5pt !important;
    line-height: 1 !important;

    white-space: nowrap !important;
  }


  /* ========================================================
     TOTALI
     ======================================================== */

  body#order-detail .gs-order-products-table tfoot td {
    padding-top: 3px !important;
    padding-bottom: 3px !important;

    font-size: 7.5pt !important;
    line-height: 1.05 !important;
  }

  body#order-detail .gs-order-products-table tfoot tr:last-child td {
    font-weight: 700 !important;
    font-size: 8pt !important;
  }

}

/* ==========================================================
   GeSmart Order Print UI v2.1
   leggibilità e proporzioni
   ========================================================== */

@media print {

  /* Testata leggermente più leggibile */
  body#order-detail .page-header h1,
  body#order-detail h1 {
    font-size: 16pt !important;
  }

  body#order-detail .gs-order-summary__reference {
    font-size: 11pt !important;
  }

  body#order-detail .gs-order-summary__eyebrow,
  body#order-detail .gs-order-summary__date,
  body#order-detail .gs-order-summary__meta,
  body#order-detail .gs-order-history__label {
    font-size: 8.5pt !important;
  }

  /* Indirizzi */
  body#order-detail .gs-order-address-card {
    padding: 5px 7px !important;
  }

  body#order-detail .gs-order-address-card h4 {
    margin: -5px -7px 4px !important;
    padding: 4px 7px !important;
    font-size: 8.5pt !important;
  }

  body#order-detail .gs-order-address-company {
    font-size: 9pt !important;
  }

  body#order-detail .gs-order-address-details,
  body#order-detail .gs-order-address-label {
    font-size: 8pt !important;
    line-height: 1.15 !important;
  }

  /* Tabella: un po' più grande */
  body#order-detail .gs-order-products-table {
    font-size: 8.2pt !important;
  }

  body#order-detail .gs-order-products-table th {
    padding: 5px 4px !important;
    font-size: 8pt !important;
    line-height: 1.1 !important;
  }

  body#order-detail .gs-order-products-table td {
    padding: 4px 4px !important;
    line-height: 1.15 !important;
  }

  /*
   * Larghezze esatte:
   * prodotto 51
   * 3 quantità x 6 = 18
   * stato 9
   * 2 prezzi x 11 = 22
   * totale = 100%
   */
  body#order-detail .gs-order-products-table th:first-child,
  body#order-detail .gs-order-products-table td:first-child {
    width: 51% !important;
  }

  body#order-detail .gs-order-products-table__metric {
    width: 6% !important;
  }

  body#order-detail .gs-order-products-table__status-cell {
    width: 9% !important;
  }

  body#order-detail .gs-order-products-table th:nth-last-child(2),
  body#order-detail .gs-order-products-table th:last-child {
    width: 11% !important;
    white-space: normal !important;
  }

  body#order-detail .gs-order-products-table td:nth-last-child(2),
  body#order-detail .gs-order-products-table td:last-child {
    width: 11% !important;
    white-space: nowrap !important;
  }

  /* Immagini leggermente più grandi */
  body#order-detail .gs-order-product__thumb {
    width: 31px !important;
    min-width: 31px !important;
    flex: 0 0 31px !important;
  }

  body#order-detail .gs-order-product__thumb img,
  body#order-detail .gs-order-product__thumb-placeholder {
    width: 31px !important;
    height: 31px !important;
  }

  body#order-detail .gs-order-product {
    gap: 5px !important;
  }

  body#order-detail .gs-order-product__content,
  body#order-detail .gs-order-product__content strong,
  body#order-detail .gs-order-product__content a {
    font-size: 8pt !important;
    line-height: 1.12 !important;
  }

  body#order-detail .gs-order-product__reference {
    font-size: 7.2pt !important;
  }

  body#order-detail .gs-order-status-badge {
    font-size: 7pt !important;
    padding: 2px 5px !important;
  }

  /* Totali più leggibili */
  body#order-detail .gs-order-products-table tfoot td {
    font-size: 8pt !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  body#order-detail .gs-order-products-table tfoot tr:last-child td {
    font-size: 8.5pt !important;
  }

}

/* ==========================================================
   GeSmart Order Print UI v2.2
   final readability refinement
   ========================================================== */

@media print {

  body#order-detail .gs-order-summary__reference {
    font-size: 11.5pt !important;
  }

  body#order-detail .gs-order-summary__eyebrow,
  body#order-detail .gs-order-summary__date,
  body#order-detail .gs-order-summary__meta,
  body#order-detail .gs-order-history__label {
    font-size: 9pt !important;
  }

  body#order-detail .gs-order-address-card h4 {
    font-size: 9pt !important;
  }

  body#order-detail .gs-order-address-company {
    font-size: 9.5pt !important;
  }

  body#order-detail .gs-order-address-details,
  body#order-detail .gs-order-address-label {
    font-size: 8.5pt !important;
    line-height: 1.18 !important;
  }

  body#order-detail .gs-order-products-table {
    font-size: 8.6pt !important;
  }

  body#order-detail .gs-order-products-table th {
    font-size: 8.4pt !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  body#order-detail .gs-order-products-table td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  body#order-detail .gs-order-product__thumb {
    width: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
  }

  body#order-detail .gs-order-product__thumb img,
  body#order-detail .gs-order-product__thumb-placeholder {
    width: 34px !important;
    height: 34px !important;
  }

  body#order-detail .gs-order-product__content,
  body#order-detail .gs-order-product__content strong,
  body#order-detail .gs-order-product__content a {
    font-size: 8.4pt !important;
    line-height: 1.15 !important;
  }

  body#order-detail .gs-order-product__reference {
    font-size: 7.5pt !important;
  }

  body#order-detail .gs-order-status-badge {
    font-size: 7.2pt !important;
  }

  body#order-detail .gs-order-products-table tfoot td {
    font-size: 8.4pt !important;
    padding-top: 4.5px !important;
    padding-bottom: 4.5px !important;
  }

  body#order-detail .gs-order-products-table tfoot tr:last-child td {
    font-size: 9pt !important;
  }

}

/* ==========================================================
   GeSmart Order Print UI v2.3
   final column balance
   ========================================================== */

@media print {

  /*
   * Prodotto 47%
   * Ordinata 7%
   * Evasa 7%
   * Residua 7%
   * Stato 10%
   * Prezzo unitario 11%
   * Prezzo totale 11%
   * Totale 100%
   */

  body#order-detail .gs-order-products-table th:first-child,
  body#order-detail .gs-order-products-table td:first-child {
    width: 47% !important;
  }

  body#order-detail .gs-order-products-table__metric {
    width: 7% !important;
  }

  body#order-detail .gs-order-products-table__status-cell {
    width: 10% !important;
  }

  body#order-detail .gs-order-products-table th:nth-last-child(2),
  body#order-detail .gs-order-products-table td:nth-last-child(2),
  body#order-detail .gs-order-products-table th:last-child,
  body#order-detail .gs-order-products-table td:last-child {
    width: 11% !important;
  }

  body#order-detail .gs-order-products-table th {
    padding-left: 3px !important;
    padding-right: 3px !important;
    text-align: center !important;
  }

  body#order-detail .gs-order-products-table th:first-child {
    text-align: left !important;
  }

}

/* GeSmart Order UI - badge "Evaso" come storico ordini */

.gs-order-products-table .gs-order-status-badge--fulfilled,
.gs-order-products-table .gs-order-status-badge.is-fulfilled,
.gs-order-products-table .gs-order-status-badge[data-status="fulfilled"] {
  background: #3f8f3d !important;
  border: 1px solid #3f8f3d !important;
  color: #ffffff !important;
  font-weight: 600;
}

.gs-order-products-table .gs-order-status-badge--fulfilled:hover,
.gs-order-products-table .gs-order-status-badge.is-fulfilled:hover,
.gs-order-products-table .gs-order-status-badge[data-status="fulfilled"]:hover {
  background: #357a34 !important;
  border-color: #357a34 !important;
  color: #ffffff !important;
}

/* Badge "Evaso" come nello storico ordini: verde con testo bianco */
.gs-order-products-table .gs-order-status-badge--fulfilled,
.gs-order-products-table .gs-order-status-badge.is-fulfilled,
.gs-order-products-table .gs-order-status-badge[data-status="fulfilled"] {
  background: #3f8f3d !important;
  border-color: #3f8f3d !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.gs-order-products-table .gs-order-status-badge--fulfilled *,
.gs-order-products-table .gs-order-status-badge.is-fulfilled *,
.gs-order-products-table .gs-order-status-badge[data-status="fulfilled"] * {
  color: #ffffff !important;
}

/* Stato ordine "Evaso" - verde pieno con testo bianco */
.gs-order-history-badge--fulfilled {
  background: #3f8f3d !important;
  border-color: #3f8f3d !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.gs-order-history-badge--fulfilled * {
  color: #ffffff !important;
}

/* GeSmart Order Header - testo bianco per tutti gli stati ordine */
.gs-order-history .label,
.gs-order-history .label-pill,
.gs-order-history__current .label,
.gs-order-history__current .label-pill {
  color: #ffffff !important;
}

.gs-order-history .label *,
.gs-order-history .label-pill *,
.gs-order-history__current .label *,
.gs-order-history__current .label-pill * {
  color: #ffffff !important;
}

/* GeSmart Order Header - testo bianco per tutti gli stati ordine */
.gs-order-history .label,
.gs-order-history .label-pill,
.gs-order-history__current .label,
.gs-order-history__current .label-pill {
  color: #ffffff !important;
}

.gs-order-history .label *,
.gs-order-history .label-pill *,
.gs-order-history__current .label *,
.gs-order-history__current .label-pill * {
  color: #ffffff !important;
}

/* GeSmart Order UI - uniforma tutti i badge di stato ordine */

/* Badge principale in alto + badge cronologia */
.gs-order-history .label,
.gs-order-history .label-pill,
.gs-order-history__current-state,
.gs-order-history__list .label,
.gs-order-history__list .label-pill,

/* Badge tabella prodotti */
.gs-order-products-table .gs-order-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 10px !important;
  min-height: 20px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  color: #ffffff !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

/* Forza bianco anche sugli eventuali elementi interni */
.gs-order-history .label *,
.gs-order-history .label-pill *,
.gs-order-history__current-state *,
.gs-order-history__list .label *,
.gs-order-history__list .label-pill *,
.gs-order-products-table .gs-order-status-badge * {
  color: #ffffff !important;
}

/* Piccolo allineamento visivo del badge stato in alto */
.gs-order-history__current {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* GeSmart Order History - badge stato uniformi al dettaglio ordine */

body#history .label,
body#history .label-pill,
body#history .order-history .label,
body#history .order-history .label-pill,
body#history table .label,
body#history table .label-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 20px !important;
  padding: 3px 10px !important;

  border-radius: 999px !important;

  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  color: #ffffff !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* Mantiene il testo bianco anche con eventuali elementi interni */
body#history .label *,
body#history .label-pill *,
body#history .order-history .label *,
body#history .order-history .label-pill *,
body#history table .label *,
body#history table .label-pill * {
  color: #ffffff !important;
}

/* GeSmart Order History - centratura verticale badge */

body#history .label,
body#history .label-pill,
body#history .order-history .label,
body#history .order-history .label-pill,
body#history table .label,
body#history table .label-pill {
  line-height: 20px !important;
  min-height: 20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* GeSmart Order Detail - centratura verticale badge */

.gs-order-history .label,
.gs-order-history .label-pill,
.gs-order-history__current .label,
.gs-order-history__current .label-pill,
.gs-order-products-table .gs-order-status-badge {
  line-height: 20px !important;
  min-height: 20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* GeSmart Order Header - azioni Stampa / Riordina */

.gs-order-summary__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gs-order-summary__print {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;

  color: #fe5d01;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.gs-order-summary__print:hover,
.gs-order-summary__print:focus {
  color: #d84f00;
  text-decoration: underline;
  outline: none;
}

.gs-order-summary__reorder {
  margin: 0 !important;
}

@media print {
  .gs-order-summary__actions {
    display: none !important;
  }
}


/* ============================================================
   GESMART - CONFERMA ORDINE ALLINEATA AL DETTAGLIO ORDINE
   ============================================================ */

.page-order-confirmation .gs-order-confirmation-products {
  width: 100%;
}

.page-order-confirmation .gs-order-confirmation-products .box {
  margin-bottom: 1rem;
}

.page-order-confirmation .gs-order-confirmation-table {
  width: 100%;
  margin-bottom: 0;
  table-layout: auto;
}

.page-order-confirmation .gs-order-confirmation-table > thead > tr > th {
  vertical-align: middle;
}

.page-order-confirmation .gs-order-confirmation-table > thead > tr > th:first-child {
  width: auto;
}

.page-order-confirmation .gs-order-confirmation-table__quantity {
  width: 110px;
  white-space: nowrap;
}

.page-order-confirmation .gs-order-confirmation-table__price {
  width: 150px;
  white-space: nowrap;
}

.page-order-confirmation .gs-order-confirmation-table__total {
  width: 150px;
  white-space: nowrap;
}

.page-order-confirmation .gs-order-confirmation-table > tbody > tr > td {
  vertical-align: middle;
}

.page-order-confirmation .gs-order-confirmation-table .gs-order-product {
  min-width: 0;
}

.page-order-confirmation .gs-order-confirmation-table tfoot td {
  vertical-align: middle;
}

.page-order-confirmation .gs-order-confirmation-table tfoot td:last-child {
  white-space: nowrap;
}

.page-order-confirmation .gs-order-confirmation-table tfoot .total-value td {
  font-weight: 700;
}

.page-order-confirmation .gs-order-confirmation-products__mobile,
.page-order-confirmation .gs-order-confirmation-totals-mobile {
  width: 100%;
}

.page-order-confirmation .gs-order-confirmation-mobile-total {
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid #ddd;
}

@media (max-width: 767px) {

  .page-order-confirmation .gs-order-mobile-card__bottom {
    align-items: flex-start;
  }

}


/* ============================================================
   GESMART - RIEPILOGO ORDINE NELLA CONFERMA
   ============================================================ */

.page-order-confirmation .gs-order-confirmation-summary {
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.page-order-confirmation .gs-order-confirmation-summary__delay {
  display: block;
  margin-top: .2rem;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.3;
  opacity: .75;
}

.page-order-confirmation
.gs-order-confirmation-summary
.gs-order-summary__meta {
  margin-bottom: 0;
}

@media (max-width: 767px) {

  .page-order-confirmation .gs-order-confirmation-summary {
    margin-top: 1rem;
  }

}

/* ============================================================
   GESMART - RIFINITURA CARD CONFERMA ORDINE
   ============================================================ */

.page-order-confirmation .gs-order-confirmation-summary {
  padding: 14px 18px;
}

.page-order-confirmation
.gs-order-confirmation-summary
.gs-order-summary__top {
  margin-bottom: 10px;
}

.page-order-confirmation
.gs-order-confirmation-summary
.gs-order-summary__meta {
  gap: 28px;
}

.page-order-confirmation
.gs-order-confirmation-summary
.gs-order-summary__meta-item {
  min-width: 180px;
}

.page-order-confirmation
.gs-order-confirmation-summary__delay {
  margin-top: 4px;
  display: block;
  opacity: .7;
}

@media (max-width: 767px) {

  .page-order-confirmation .gs-order-confirmation-summary {
    padding: 12px 14px;
  }

  .page-order-confirmation
  .gs-order-confirmation-summary
  .gs-order-summary__meta {
    gap: 12px;
  }

}
