/* Interventi esclusivamente sulle pagine WCFM con AEX attivo. */
body.aex-store-active.wcfm-store-page .masterheader.mobile-header,
body.aex-store-active.wcfm-store-page .top-header,
body.aex-store-active.wcfm-store-page .mid-header,
body.aex-store-active.wcfm-store-page .bottom-header,
body.aex-store-active.wcfm-store-page .footer-inner {display:none!important}
body.aex-store-active .aex-se-header{background:var(--aex-header-bg);color:var(--aex-header-text);border-bottom:3px solid var(--aex-primary);width:100%;box-sizing:border-box}
body.aex-store-active .aex-se-header-inner{max-width:1320px;margin:auto;padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}
body.aex-store-active .aex-se-brand{font-size:20px;font-weight:700;line-height:1.25;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.aex-store-active .aex-se-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.aex-store-active .aex-se-link{display:inline-flex;align-items:center;gap:7px;padding:10px 12px;background:var(--aex-button-bg);color:var(--aex-button-text)!important;border-radius:7px;text-decoration:none!important;font-weight:600;font-size:13px;line-height:1.2;transition:background .2s}
body.aex-store-active .aex-se-link:hover,body.aex-store-active .aex-se-link:focus-visible{background:var(--aex-hover);color:var(--aex-button-text)!important}
body.aex-store-active .aex-se-link svg{flex-shrink:0}
body.aex-store-active .aex-se-footer{background:var(--aex-footer-bg);color:var(--aex-footer-text);padding:26px 22px 20px;clear:both}
body.aex-store-active .aex-se-footer-inner{max-width:1200px;margin:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
body.aex-store-active .aex-se-footer h3{color:var(--aex-footer-title);margin:0 0 10px;font-size:17px}
body.aex-store-active .aex-se-footer p{color:var(--aex-footer-text);margin:0 0 10px}
body.aex-store-active .aex-se-footer a{color:var(--aex-footer-link)!important}
body.aex-store-active .aex-se-note{max-width:1200px;margin:24px auto 0;border-top:1px solid rgba(255,255,255,.18);padding-top:15px;font-size:12px;color:var(--aex-footer-text)}
@media(max-width:767px){body.aex-store-active .aex-se-header-inner{padding:10px 12px;gap:8px}body.aex-store-active .aex-se-brand{font-size:15px;max-width:38%}body.aex-store-active .aex-se-nav{gap:5px;flex-wrap:nowrap}body.aex-store-active .aex-se-link{padding:10px;min-width:39px;min-height:40px;box-sizing:border-box;justify-content:center}body.aex-store-active .aex-se-label{display:none}body.aex-store-active .aex-se-footer-inner{grid-template-columns:1fr;gap:18px}}
@media(max-width:380px){body.aex-store-active .aex-se-brand{max-width:28%}body.aex-store-active .aex-se-link{padding:8px;min-width:35px}}

/* v0.3.1: navigazione compatta senza nome del venditore. */
body.aex-store-active .aex-se-header-inner{justify-content:flex-start}
body.aex-store-active .aex-se-nav{justify-content:flex-start}
body.aex-store-active .aex-se-brand{display:none!important}
@media(max-width:767px){
 body.aex-store-active .aex-se-header-inner{justify-content:center;padding:9px 8px}
 body.aex-store-active .aex-se-nav{width:100%;justify-content:center;gap:clamp(3px,2vw,12px);flex-wrap:nowrap}
 body.aex-store-active .aex-se-link{padding:9px;min-width:42px;min-height:44px;flex:0 0 auto}
 body.aex-store-active .aex-se-label{display:none}
}
@media(max-width:380px){body.aex-store-active .aex-se-link{min-width:38px;padding:8px}}

/* v0.3.2: contenuto HTML amministratore, spaziature compatte. */
body.aex-store-active .aex-se-custom-html{color:var(--aex-footer-text);line-height:1.55;overflow-wrap:anywhere}
body.aex-store-active .aex-se-custom-html p{margin:0 0 8px}
body.aex-store-active .aex-se-custom-html p:last-child{margin-bottom:0}
body.aex-store-active .aex-se-custom-html a{color:var(--aex-footer-link)!important}
/* v0.3.4: nome attività desktop a sinistra, mobile sotto le icone. */
body.aex-store-active .aex-se-header-inner{display:flex;justify-content:flex-start;align-items:center;gap:22px;min-width:0}
body.aex-store-active .aex-se-brand{display:block!important;flex:0 1 auto;min-width:0;max-width:38%;font-family:var(--aex-brand-font);font-size:var(--aex-brand-desktop);font-weight:var(--aex-brand-weight);color:var(--aex-brand-color);line-height:1.25;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
body.aex-store-active .aex-se-nav{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
@media(max-width:767px){
 body.aex-store-active .aex-se-header-inner{flex-direction:column-reverse;gap:6px;padding:9px 6px 11px}
 body.aex-store-active .aex-se-nav{width:100%;justify-content:center;gap:clamp(2px,1.1vw,6px);flex-wrap:nowrap}
 body.aex-store-active .aex-se-link{padding:6px;min-width:32px;min-height:34px;flex:0 1 38px;justify-content:center;box-sizing:border-box}
 body.aex-store-active .aex-se-link svg{width:17px;height:17px}
 body.aex-store-active .aex-se-label{display:none}
 body.aex-store-active .aex-se-brand{max-width:100%;width:100%;text-align:center;font-size:var(--aex-brand-mobile);white-space:normal;overflow-wrap:anywhere}
}

/* v0.3.5: brand a sinistra, pulsanti compatti a destra; Marketplace per ultimo. */
body.aex-store-active .aex-se-header-inner{justify-content:space-between;gap:16px}
body.aex-store-active .aex-se-brand{flex:0 1 auto;max-width:34%;text-align:left}
body.aex-store-active .aex-se-nav{margin-left:auto;justify-content:flex-end;gap:5px;flex:0 1 auto}
body.aex-store-active .aex-se-link{font-size:12px;padding:8px 9px;gap:5px;white-space:nowrap}
body.aex-store-active .aex-se-link svg{width:16px;height:16px}
body.aex-store-active .aex-se-link.aex-se-home{background:var(--aex-marketplace-bg);color:var(--aex-marketplace-text)!important}
body.aex-store-active .aex-se-link.aex-se-home:hover,body.aex-store-active .aex-se-link.aex-se-home:focus-visible{filter:brightness(.9);color:var(--aex-marketplace-text)!important}
@media(max-width:767px){
 body.aex-store-active .aex-se-header-inner{justify-content:center;gap:6px}
 body.aex-store-active .aex-se-nav{margin-left:0;justify-content:center;gap:clamp(2px,1.1vw,6px);width:100%}
 body.aex-store-active .aex-se-brand{max-width:100%;text-align:center}
 body.aex-store-active .aex-se-link{padding:6px;min-width:32px;min-height:34px;flex:0 1 38px}
 body.aex-store-active .aex-se-link svg{width:17px;height:17px}
}
