/* 2Elle Sport Area Clienti v0.4 */
.twoelle-portal,.twoelle-card,.twoelle-login{box-sizing:border-box;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.twoelle-portal{max-width:1380px;margin:34px auto;padding:34px;background:#f6f6f4;color:#191919;border:1px solid #e8e8e4;border-radius:20px}
.twoelle-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.twoelle-top h2{font-size:42px;line-height:1.05;margin:7px 0 6px;font-weight:800;letter-spacing:-.03em}.twoelle-top p{margin:0;color:#676767;font-size:16px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:#6a6a6a}.logout{font-weight:700;color:#1a1a1a;text-decoration:none;border:1px solid #d7d7d3;background:#fff;padding:10px 15px;border-radius:9px}.logout:hover{border-color:#bbb}
.twoelle-progress{display:flex;align-items:center;gap:12px;margin:0 0 28px;padding:14px 18px;background:#fff;border:1px solid #e3e3df;border-radius:12px}.progress-step{display:flex;align-items:center;gap:9px;white-space:nowrap}.progress-step span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ecece8;color:#777;font-weight:800;font-size:12px;flex:0 0 30px}.progress-step.active span{background:#f3d21b;color:#151515}.progress-step b{font-size:11px;text-transform:uppercase;letter-spacing:.08em}.twoelle-progress i{height:1px;background:#ddd;flex:1;min-width:24px}
.twoelle-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;align-items:start}.catalog-head{display:flex;justify-content:space-between;align-items:end;margin:0 0 12px}.catalog-head h3{font-size:25px;margin:4px 0 0}.product-count{font-size:12px;color:#777}
.brand-section{background:#fff;border:1px solid #e2e2de;border-radius:14px;overflow:hidden;margin-bottom:18px}.brand-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:#202020;color:#fff}.brand-heading h4{margin:0;font-size:16px;letter-spacing:.08em;text-transform:uppercase;color:#fff !important}.brand-heading span{font-size:11px;color:#cfcfcf}.desktop-table-wrap{overflow-x:auto}.order-table{width:100%;border-collapse:collapse;min-width:760px}.order-table th{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#666;background:#f2f2ef;padding:10px 7px;border-bottom:1px solid #deded9;text-align:center}.order-table th.article-col{text-align:left;padding-left:18px;min-width:190px;position:sticky;left:0;z-index:3;background:#f2f2ef}.order-table td.article{position:sticky;left:0;z-index:2;background:#fff;box-shadow:6px 0 8px -8px rgba(0,0,0,.25)}.order-table td{padding:10px 6px;border-bottom:1px solid #ededeb;text-align:center;vertical-align:middle}.order-table tr:last-child td{border-bottom:0}.order-table td.article{text-align:left;padding-left:18px}.article strong{display:block;font-size:13px;line-height:1.25}.article small,.mobile-product-head small{display:block;color:#929292;font-size:10px;margin-top:3px}.order-table td.na{color:#ccc}.price{font-weight:800;white-space:nowrap}.row-total{font-weight:800;font-size:13px}
.qty-control{display:inline-flex;align-items:center;border:1px solid #d8d8d3;background:#fff;border-radius:7px;overflow:hidden;height:34px}.qty-control button{width:29px;height:100%;border:0;background:#f5f5f2;color:#333;font-size:18px;line-height:1;cursor:pointer;padding:0}.qty-control button:hover{background:#ecece8}.qty-control input{width:32px;height:100%;border:0;border-left:1px solid #e4e4df;border-right:1px solid #e4e4df;text-align:center;font-size:13px;font-weight:700;appearance:textfield;-moz-appearance:textfield}.qty-control input::-webkit-outer-spin-button,.qty-control input::-webkit-inner-spin-button{appearance:none;margin:0}
.mobile-products{display:none}.twoelle-summary{background:#202020;color:#fff;border-radius:14px;padding:21px;position:sticky;top:24px;box-shadow:0 8px 25px rgba(0,0,0,.08)}.summary-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #3c3c3c;padding-bottom:16px}.summary-title h3{margin:0;font-size:18px}.summary-title span{font-size:11px;color:#aaa}.twoelle-summary #twoelle-summary-items{max-height:430px;overflow:auto;padding:12px 0}.twoelle-summary ul{list-style:none;margin:0;padding:0}.twoelle-summary li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #333;font-size:12px}.twoelle-summary li small{color:#aaa}.twoelle-summary .empty{color:#999;font-size:12px;line-height:1.5}.sum{display:flex;justify-content:space-between;align-items:end;border-top:1px solid #444;padding-top:18px;margin-top:4px}.sum span{font-size:12px;color:#aaa}.sum strong{font-size:25px;color:#f3d21b}.submit{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:20px;padding:15px 17px;border:0;border-radius:9px;background:#f3d21b;color:#111;font-size:13px;font-weight:900;cursor:pointer}.submit:hover{background:#ffdf32}.secure{display:block;text-align:center;color:#8e8e8e;margin-top:12px;font-size:10px}.note{display:block;margin-top:18px;background:#fff;border:1px solid #e2e2de;border-radius:12px;padding:16px}.note span{font-size:12px;font-weight:800}.note textarea{display:block;width:100%;box-sizing:border-box;min-height:90px;margin-top:9px;border:1px solid #ddd;border-radius:8px;padding:10px;resize:vertical;font:inherit}.twoelle-success{display:flex;align-items:center;gap:12px;background:#edf8ef;border:1px solid #cce8d0;color:#236a30;border-radius:12px;padding:14px 16px;margin-bottom:18px}.twoelle-success>span{width:30px;height:30px;border-radius:50%;background:#39a851;color:#fff;display:grid;place-items:center;font-weight:900}.twoelle-success strong{display:block}.twoelle-success small{display:block;margin-top:2px;color:#5d7e63}
.twoelle-card{background:#fff;border:1px solid #e6e6e6;border-radius:16px;padding:24px;box-sizing:border-box;margin:20px 0}.twoelle-login{max-width:420px;margin:40px auto;background:#fff;border:1px solid #e6e6e6;border-radius:16px;padding:24px}.twoelle-login h2{margin-top:0}
@media(max-width:1050px){.twoelle-grid{grid-template-columns:1fr}.twoelle-summary{position:static}.twoelle-summary #twoelle-summary-items{max-height:none}.twoelle-portal{margin:20px 12px;padding:22px}.twoelle-top h2{font-size:34px}}
@media(max-width:720px){.twoelle-progress{align-items:stretch}.progress-step{flex-direction:column;justify-content:center;gap:4px;flex:1}.progress-step b{font-size:8px;text-align:center}.twoelle-progress i{min-width:8px}.twoelle-portal{margin:12px 6px;padding:15px;border-radius:14px}.twoelle-top{align-items:flex-start}.twoelle-top h2{font-size:30px}.twoelle-progress{gap:6px;padding:10px}.twoelle-progress b{font-size:9px}.twoelle-progress i{min-width:10px}.desktop-table-wrap{display:none}.mobile-products{display:block}.mobile-product{padding:15px;border-bottom:1px solid #eee}.mobile-product:last-child{border-bottom:0}.mobile-product-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.mobile-product-head strong{font-size:14px}.mobile-product-head b{white-space:nowrap}.mobile-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mobile-sizes>div{display:flex;justify-content:space-between;align-items:center;background:#f7f7f4;border:1px solid #e5e5e1;border-radius:8px;padding:6px 7px 6px 10px}.mobile-sizes>div>span{font-size:11px;font-weight:800}.qty-control{height:32px}.qty-control button{width:27px}.qty-control input{width:28px}.catalog-head h3{font-size:21px}}

/* v0.4.1: brand header contrast and single-size products */
.brand-heading{background:#202020 !important}.brand-heading h4{color:#fff !important}.brand-heading span{color:#cfcfcf !important}

/* v0.4.3: clearer progress steps, sticky article column, mobile single-size fallback */
.desktop-table-wrap{scrollbar-width:thin}.desktop-table-wrap:after{content:"Scorri lateralmente per vedere tutte le taglie";display:block;text-align:right;color:#999;font-size:9px;padding:5px 10px 7px}.mobile-product-head b{font-weight:900}

/* v0.5.0 — WooCommerce account navigation moved to the top */
body.twoelle-account-layout .woocommerce-MyAccount-navigation{display:none !important}
body.twoelle-account-layout .woocommerce-MyAccount-content{width:100% !important;float:none !important;margin:0 !important}
body.twoelle-account-layout .woocommerce .col2-set,
body.twoelle-account-layout .woocommerce-page .col2-set{width:100%}
body.twoelle-account-layout .twoelle-account-topnav, body.twoelle-order-page .twoelle-account-topnav{display:block;width:100%;margin:0 0 28px;padding:0;border-bottom:1px solid #e5e5e5;background:#fff}
body.twoelle-account-layout .twoelle-account-topnav ul, body.twoelle-order-page .twoelle-account-topnav ul{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:thin}
body.twoelle-account-layout .twoelle-account-topnav li, body.twoelle-order-page .twoelle-account-topnav li{margin:0;padding:0;flex:0 0 auto}
body.twoelle-account-layout .twoelle-account-topnav a, body.twoelle-order-page .twoelle-account-topnav a{display:block;padding:18px 17px 15px;color:#222;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;border-bottom:3px solid transparent;white-space:nowrap}
body.twoelle-account-layout .twoelle-account-topnav a:hover, body.twoelle-order-page .twoelle-account-topnav a:hover{color:#c8102e}
body.twoelle-account-layout .twoelle-account-topnav li.is-active a, body.twoelle-order-page .twoelle-account-topnav li.is-active a{color:#c8102e;border-bottom-color:#c8102e}
body.twoelle-account-layout .twoelle-portal{max-width:none;width:100%;margin:0;padding:0;background:transparent;border:0;border-radius:0}
body.twoelle-account-layout .twoelle-top{padding:0 0 24px}
body.twoelle-account-layout .twoelle-progress{margin-bottom:24px}
@media(max-width:900px){
 body.twoelle-account-layout .twoelle-account-topnav a, body.twoelle-order-page .twoelle-account-topnav a{padding:15px 12px 13px;font-size:10px}
 body.twoelle-account-layout .twoelle-account-topnav{margin-bottom:20px}
}

/* v0.5.1 — riepilogo spostato sotto il catalogo per sfruttare tutta la larghezza */
.twoelle-grid{display:block !important}.twoelle-grid > main{width:100%}.twoelle-summary{position:static !important;width:100%;margin-top:18px;display:grid;grid-template-columns:minmax(0,1fr) 250px 210px;gap:22px;align-items:center}.twoelle-summary .summary-title{border:0;padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.twoelle-summary #twoelle-summary-items{max-height:220px;overflow:auto;padding:0}.twoelle-summary .sum{border-top:0;border-left:1px solid #444;padding:0 0 0 22px;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.twoelle-summary .sum strong{font-size:28px}.twoelle-summary .submit{margin-top:0}.twoelle-summary .secure{grid-column:1 / -1;margin:0;text-align:center}.twoelle-summary .summary-title h3{font-size:16px}.twoelle-summary .summary-title span{font-size:12px}
@media(max-width:900px){.twoelle-summary{grid-template-columns:1fr 1fr;gap:16px}.twoelle-summary .summary-title{grid-column:1/-1}.twoelle-summary .sum{border-left:0;border-top:1px solid #444;padding:16px 0 0;align-items:flex-start}.twoelle-summary .submit{align-self:end}.twoelle-summary .secure{grid-column:1/-1}}
@media(max-width:720px){.twoelle-summary{display:block}.twoelle-summary #twoelle-summary-items{max-height:none;margin-top:14px}.twoelle-summary .sum{margin-top:16px;padding-top:16px}.twoelle-summary .submit{margin-top:16px}.twoelle-summary .secure{margin-top:12px}}

/* v0.5.2 — colonne taglie più compatte */
.order-table{min-width:0;table-layout:fixed}
.order-table th{padding:9px 3px;font-size:9px}
.order-table td{padding:8px 3px}
.order-table th.article-col{min-width:190px;width:25%;padding-left:14px}
.order-table td.article{padding-left:14px}
.order-table th:not(.article-col){width:auto}
.order-table .qty-control{height:30px}
.order-table .qty-control button{width:23px;font-size:16px}
.order-table .qty-control input{width:25px;font-size:12px}
.order-table .article strong{font-size:12px}
.order-table .article small{font-size:9px}
.order-table .row-total,.order-table .price{font-size:12px}
@media(max-width:1100px) and (min-width:721px){
  .order-table{min-width:920px;table-layout:auto}
  .order-table th.article-col{min-width:175px;width:auto}
  .order-table th,.order-table td{padding-left:2px;padding-right:2px}
}
@media(max-width:720px){
  .mobile-sizes{gap:6px}
  .mobile-sizes>div{padding:5px 6px 5px 8px}
  .mobile-sizes .qty-control{height:30px}
  .mobile-sizes .qty-control button{width:24px}
  .mobile-sizes .qty-control input{width:25px}
}

/* v0.5.3 — logo della società cliente nella pagina nuovo ordine */
.twoelle-order-heading{display:flex;align-items:center;justify-content:space-between;gap:28px}
.twoelle-client-logo{width:150px;height:90px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:10px;flex:0 0 auto}
.twoelle-client-logo img{display:block;max-width:100%;max-height:70px;width:auto;height:auto;object-fit:contain}
@media(max-width:720px){.twoelle-order-heading{align-items:flex-start;gap:16px}.twoelle-client-logo{width:100px;height:70px}.twoelle-client-logo img{max-height:52px}}


/* v0.5.4 — layout full width + logo assegnato alla singola pagina ordine */
body.twoelle-account-layout .woocommerce-MyAccount-content{width:100vw !important;max-width:none !important;margin-left:calc(50% - 50vw) !important;margin-right:0 !important;float:none !important}
body.twoelle-account-layout .twoelle-account-topnav{width:100vw;margin-left:calc(50% - 50vw);padding-left:clamp(16px,3vw,48px);padding-right:clamp(16px,3vw,48px);box-sizing:border-box}
body.twoelle-account-layout .twoelle-portal{width:100%;max-width:none;padding-left:clamp(18px,3vw,52px);padding-right:clamp(18px,3vw,52px)}
body.twoelle-account-layout .twoelle-grid{display:block !important;width:100%}
body.twoelle-account-layout .twoelle-grid>main{width:100%;max-width:none}
body.twoelle-account-layout .desktop-table-wrap{width:100%;overflow-x:auto}
body.twoelle-account-layout .order-table{width:100%;min-width:0;table-layout:auto}
body.twoelle-account-layout .order-table th:not(.article-col),body.twoelle-account-layout .order-table td:not(.article){min-width:92px}
body.twoelle-account-layout .order-table th.article-col{min-width:240px;width:26%}
body.twoelle-account-layout .order-table th,body.twoelle-account-layout .order-table td{padding-left:6px;padding-right:6px}
body.twoelle-account-layout .order-table .qty-control{height:34px}
body.twoelle-account-layout .order-table .qty-control button{width:28px}
body.twoelle-account-layout .order-table .qty-control input{width:30px}
body.twoelle-account-layout .twoelle-summary{width:100%;margin-top:22px;position:static !important}
@media(max-width:720px){
 body.twoelle-account-layout .woocommerce-MyAccount-content{width:100% !important;margin-left:0 !important}
 body.twoelle-account-layout .twoelle-account-topnav{width:100%;margin-left:0;padding-left:0;padding-right:0}
 body.twoelle-account-layout .twoelle-portal{padding-left:10px;padding-right:10px}
}
/* v0.5.5: society logo is assigned per order page; large logo left of heading, no frame */
.twoelle-order-heading{display:flex;align-items:center;justify-content:flex-start;gap:34px}
.twoelle-order-title{min-width:0}
.twoelle-client-logo{width:auto;height:auto;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0;padding:0;flex:0 0 auto}
.twoelle-client-logo img{display:block;width:auto;height:auto;max-width:180px;max-height:125px;object-fit:contain}
.product-color{font-weight:800;text-transform:uppercase;letter-spacing:.02em;color:#777 !important;margin-top:2px}
@media(max-width:720px){.twoelle-order-heading{align-items:flex-start;gap:16px}.twoelle-client-logo img{max-width:90px;max-height:90px}}
/* v0.5.5: page-specific society logo, large on the left without border */
.twoelle-order-heading{display:flex;align-items:center;justify-content:flex-start;gap:34px}
.twoelle-order-title{min-width:0}
.twoelle-client-logo{width:auto;height:auto;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0;padding:0;flex:0 0 auto}
.twoelle-client-logo img{display:block;width:auto;height:auto;max-width:180px;max-height:125px;object-fit:contain}
.product-color{display:block !important;color:#777 !important;font-weight:800;text-transform:uppercase;letter-spacing:.02em;margin-top:2px}
@media(max-width:720px){.twoelle-order-heading{align-items:flex-start;gap:16px}.twoelle-client-logo img{max-width:90px;max-height:90px}}


/* v0.5.6 — loghi brand caricabili dall'amministratore */
.brand-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand-heading-name{display:flex;align-items:center;min-height:44px}
.brand-heading .brand-logo{display:block;width:auto;max-width:180px;height:42px;object-fit:contain;object-position:left center}
.brand-heading span{white-space:nowrap}
@media(max-width:720px){.brand-heading .brand-logo{max-width:130px;height:34px}.brand-heading{gap:10px}}

/* v0.5.7 — flusso ordine a 3 pagine: compila -> rivedi -> invio */
.twoelle-progress .progress-step.active span{background:#c8102e;color:#fff}.twoelle-progress .progress-step.active b{color:#c8102e}
.catalog-next{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:20px;padding:22px 24px;background:#202020;color:#fff;border-radius:14px}.catalog-next>div{display:flex;flex-direction:column;gap:5px}.catalog-next strong{font-size:17px}.catalog-next span{color:#aaa;font-size:12px}.catalog-next .submit{width:auto;min-width:250px;margin:0;background:#c8102e;color:#fff}.catalog-next .submit:hover{background:#a80d26}.catalog-next .submit small{font-size:10px;font-weight:600;margin-left:6px}.catalog-next .submit span{color:#fff;font-size:18px}
.review-card{background:#fff;border:1px solid #e2e2de;border-radius:14px;overflow:hidden}.review-card-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;background:#202020;color:#fff}.review-card-head h3{margin:4px 0 0;font-size:24px}.review-card-head>span{font-size:13px;color:#ccc}.review-brand{border-bottom:1px solid #e8e8e5}.review-brand:last-child{border-bottom:0}.review-brand>h4{margin:0;padding:14px 24px;background:#f2f2ef;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.review-line{display:grid;grid-template-columns:minmax(0,1fr) 130px 120px;gap:16px;align-items:center;padding:16px 24px;border-top:1px solid #eee}.review-line strong{display:block;font-size:14px}.review-line small{display:block;margin-top:4px;color:#777;font-size:11px}.review-line span{text-align:right;color:#555;font-size:12px}.review-line b{text-align:right;font-size:14px}.review-total{display:flex;justify-content:flex-end;align-items:center;gap:35px;padding:20px 24px;border-top:1px solid #ddd}.review-total span{font-size:13px;color:#666}.review-total strong{font-size:28px;color:#c8102e}.review-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px}.review-actions .back{display:inline-flex;align-items:center;padding:14px 18px;border:1px solid #d8d8d4;border-radius:9px;text-decoration:none;color:#222;font-weight:800;font-size:12px}.review-actions .submit{width:auto;min-width:250px;margin:0;background:#c8102e;color:#fff}.review-actions .submit:hover{background:#a80d26}.review-actions .submit:disabled{opacity:.45;cursor:not-allowed}.review-secure{margin-top:14px}.twoelle-review-form .note{margin-top:18px}
@media(max-width:720px){.catalog-next{display:block;padding:16px}.catalog-next .submit{margin-top:14px;width:100%;min-width:0}.review-card-head{padding:18px}.review-card-head h3{font-size:20px}.review-line{grid-template-columns:1fr auto;gap:8px;padding:14px 18px}.review-line span{grid-column:1;text-align:left}.review-line b{grid-column:2;grid-row:1 / span 2}.review-brand>h4{padding:12px 18px}.review-total{justify-content:space-between;padding:18px}.review-actions{display:flex;flex-direction:column-reverse;align-items:stretch}.review-actions .submit,.review-actions .back{width:100%;justify-content:center;box-sizing:border-box}.review-actions .submit{min-width:0}.twoelle-progress .progress-step b{font-size:8px}}

/* v0.5.8 — riepilogo ad alto contrasto + pulsante PDF */
.review-card-head{color:#fff !important;background:#202020 !important}
.review-card-head .eyebrow,.review-card-head h3,.review-card-head h3 *{color:#fff !important}
.review-card-head>span{color:#fff !important;font-weight:700}
.review-action-right{display:flex;align-items:center;gap:12px}
.pdf-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 18px;border:1px solid #222;border-radius:9px;background:#fff;color:#222;font-size:12px;font-weight:900;cursor:pointer;min-width:160px}
.pdf-button:hover{background:#f3f3f1}
.twoelle-pdf-form{display:none !important}
@media(max-width:720px){.review-actions .review-action-right{display:flex;flex-direction:column;width:100%;gap:10px}.review-action-right .pdf-button,.review-action-right .submit{width:100%;min-width:0;box-sizing:border-box}.review-actions{gap:12px}}


/* v0.5.8 — contrasto chiaro nel riepilogo e azioni PDF */
.review-card-head .eyebrow{color:#fff !important}
.review-card-head h3{color:#fff !important}
.review-card-head{color:#fff !important}

/* v0.5.9 — pagina ordine senza sidebar anche quando si torna dal riepilogo */
body.twoelle-order-page .woocommerce-layout__sidebar,
body.twoelle-order-page .woocommerce-MyAccount-navigation,
body.twoelle-order-page .widget-area,
body.twoelle-order-page aside.sidebar,
body.twoelle-order-page .sidebar,
body.twoelle-order-page .site-sidebar{display:none !important}
body.twoelle-order-page .woocommerce-MyAccount-content,
body.twoelle-order-page .site-main,
body.twoelle-order-page main{width:100% !important;max-width:none !important;float:none !important;margin-left:0 !important;margin-right:0 !important}
body.twoelle-order-page .twoelle-portal{width:100% !important;max-width:none !important}
body.twoelle-order-page .twoelle-pdf-form{display:none !important}
/* evita che il tema ripristini la sidebar nello step catalogo */
body.twoelle-order-page .content-area{width:100% !important;max-width:none !important}


/* v0.5.10 — la pagina ordine resta full-width anche dopo l'invio */
body.twoelle-order-page .woocommerce-MyAccount-navigation,
body.twoelle-order-page .woocommerce-layout__sidebar,
body.twoelle-order-page .widget-area,
body.twoelle-order-page .sidebar,
body.twoelle-order-page aside.sidebar,
body.twoelle-order-page .site-sidebar,
body.twoelle-order-page aside#secondary,
body.twoelle-order-page #secondary,
body.twoelle-order-page .secondary,
body.twoelle-order-page .sidebar-primary,
body.twoelle-order-page .sidebar-main { display:none !important; }
body.twoelle-order-page .woocommerce-MyAccount-content,
body.twoelle-order-page .content-area,
body.twoelle-order-page .site-main,
body.twoelle-order-page main,
body.twoelle-order-page .primary,
body.twoelle-order-page .main-content,
body.twoelle-order-page .entry-content { width:100% !important; max-width:none !important; float:none !important; margin-left:0 !important; margin-right:0 !important; }
body.twoelle-order-page .site-content,
body.twoelle-order-page .content,
body.twoelle-order-page .container { max-width:none !important; }
body.twoelle-order-page .twoelle-portal { width:100% !important; max-width:none !important; }

/* v0.5.12 — il PDF viene inviato via email; niente pulsante nel riepilogo */
.pdf-button,.twoelle-pdf-form{display:none !important}
body.twoelle-order-page .review-actions{justify-content:space-between}
@media(max-width:720px){body.twoelle-order-page .review-actions .submit{width:100%;min-width:0}}


/* V0.5.13 - nasconde esclusivamente le sidebar, senza coinvolgere wrapper/contenitori del tema */
body.twoelle-order-page aside,
body.twoelle-order-page .sidebar,
body.twoelle-order-page #sidebar,
body.twoelle-order-page .widget-area,
body.twoelle-order-page .woocommerce-MyAccount-navigation,
body.twoelle-order-page .secondary-sidebar,
body.twoelle-order-page .site-sidebar { display:none !important; }
body.twoelle-order-page .twoelle-portal { width:100% !important; max-width:none !important; }
body.twoelle-order-page .twoelle-portal main { width:100% !important; max-width:none !important; }

/* V0.5.14 - area ordine realmente full width anche dentro il container del tema */
body.twoelle-order-page .twoelle-portal{
  width:100vw !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
body.twoelle-order-page .twoelle-account-topnav{
  width:100vw !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
body.twoelle-order-page .twoelle-portal .twoelle-grid,
body.twoelle-order-page .twoelle-portal .twoelle-grid > main,
body.twoelle-order-page .twoelle-portal .desktop-table-wrap{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}
@media(max-width:720px){
  body.twoelle-order-page .twoelle-portal{margin-left:0 !important;width:100% !important;padding-left:10px !important;padding-right:10px !important}
  body.twoelle-order-page .twoelle-account-topnav{margin-left:0 !important;width:100% !important}
}

/* V0.5.15 - elimina anche la colonna vuota lasciata dal layout account del tema */
body.twoelle-order-page .woocommerce,
body.twoelle-order-page .woocommerce-account,
body.twoelle-order-page .woocommerce-account .woocommerce,
body.twoelle-order-page .woocommerce-MyAccount-content{
  box-sizing:border-box !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  float:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  border-left:0 !important;
}
body.twoelle-order-page .woocommerce:before,
body.twoelle-order-page .woocommerce:after,
body.twoelle-order-page .woocommerce-MyAccount-content:before,
body.twoelle-order-page .woocommerce-MyAccount-content:after{display:none !important;}
body.twoelle-order-page .twoelle-portal,
body.twoelle-order-page .twoelle-account-topnav{
  position:relative !important;
  left:0 !important;
  right:auto !important;
  margin-left:0 !important;
  margin-right:0 !important;
  width:100% !important;
  max-width:none !important;
}
body.twoelle-order-page .woocommerce-MyAccount-content,
body.twoelle-order-page .woocommerce-account .woocommerce{
  grid-template-columns:1fr !important;
  grid-template-areas:none !important;
  gap:0 !important;
}

/* v0.5.16 — Divi: il contenitore della pagina ordine non deve restare nella colonna principale da 2/3 */
body.twoelle-order-page .et_pb_row,
body.twoelle-order-page .et_pb_row.et_pb_gutters1,
body.twoelle-order-page .et_pb_row.et_pb_gutters2,
body.twoelle-order-page .et_pb_row.et_pb_gutters3,
body.twoelle-order-page .et_pb_row.et_pb_gutters4 { width:100% !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; }
body.twoelle-order-page .et_pb_row > .et_pb_column,
body.twoelle-order-page .et_pb_row > .et_pb_column_1_2,
body.twoelle-order-page .et_pb_row > .et_pb_column_2_3,
body.twoelle-order-page .et_pb_row > .et_pb_column_3_4,
body.twoelle-order-page .et_pb_row > .et_pb_column_1_3,
body.twoelle-order-page .et_pb_row > .et_pb_column_1_4 { width:100% !important; max-width:none !important; margin-right:0 !important; margin-left:0 !important; }
body.twoelle-order-page .et_pb_section,
body.twoelle-order-page .et_pb_section .et_pb_row,
body.twoelle-order-page .et_pb_section .et_pb_row_inner { width:100% !important; max-width:none !important; }
body.twoelle-order-page .et_pb_column.et_pb_column_empty { display:none !important; }
body.twoelle-order-page .twoelle-portal { margin-left:0 !important; margin-right:0 !important; }


/* v0.5.17 — Divi: rimuove la colonna #left-area ridotta che rimane anche dopo aver nascosto la sidebar */
body.twoelle-order-page #main-content,
body.twoelle-order-page .et_pb_pagebuilder_layout #main-content,
body.twoelle-order-page #main-content > .container,
body.twoelle-order-page #main-content .container{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
}
body.twoelle-order-page #left-area{
  width:100% !important;
  max-width:none !important;
  float:none !important;
  padding-right:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
body.twoelle-order-page #sidebar,
body.twoelle-order-page #main-content #sidebar{
  display:none !important;
  width:0 !important;
  max-width:0 !important;
  flex:0 0 0 !important;
}
body.twoelle-order-page .et_pb_section,
body.twoelle-order-page .et_pb_row{
  box-sizing:border-box !important;
}
body.twoelle-order-page .twoelle-portal{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
@media(max-width:980px){
  body.twoelle-order-page #left-area{width:100% !important;padding-right:0 !important}
}

/* v0.5.18 — la barra account resta visibile anche nella pagina ordine assegnata */
body.twoelle-order-page .twoelle-account-topnav{display:block !important;width:100% !important;box-sizing:border-box !important;}
body.twoelle-order-page .twoelle-account-topnav ul{display:flex !important;align-items:center;gap:0;list-style:none;margin:0;padding:0;overflow-x:auto;}
body.twoelle-order-page .twoelle-account-topnav li{margin:0;padding:0;flex:0 0 auto;}
body.twoelle-order-page .twoelle-account-topnav a{display:block;padding:18px 17px 15px;color:#222;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;border-bottom:3px solid transparent;white-space:nowrap;}
body.twoelle-order-page .twoelle-account-topnav li.is-active a{color:#c8102e;border-bottom-color:#c8102e;}
@media(max-width:720px){body.twoelle-order-page .twoelle-account-topnav a{padding:15px 12px 13px;font-size:10px;}body.twoelle-order-page .twoelle-account-topnav{margin-bottom:20px !important;}}
/* Miniature prodotto */
.product-thumb{width:58px;height:58px;object-fit:contain;flex:0 0 58px;border:1px solid #e5e5e5;border-radius:6px;background:#fff;padding:3px;}
.order-table td.article{display:flex;align-items:center;gap:12px;min-width:250px;}
.order-table td.article .article-info{display:flex;flex-direction:column;gap:3px;min-width:0;}
.mobile-product-head{display:flex;align-items:center;gap:12px;}
.mobile-product-head>div{min-width:0;flex:1;}
@media(max-width:767px){.product-thumb{width:52px;height:52px;flex-basis:52px;}.order-table td.article{min-width:230px;}}
/* Miniature prodotto */
.product-thumb{width:58px;height:58px;object-fit:contain;flex:0 0 58px;border:1px solid #e5e5e5;border-radius:6px;background:#fff;padding:3px;}
.order-table td.article{display:flex;align-items:center;gap:12px;min-width:250px;}
.order-table td.article .article-info{display:flex;flex-direction:column;gap:3px;min-width:0;}
.mobile-product-head{display:flex;align-items:center;gap:12px;}
.mobile-product-head>div{min-width:0;flex:1;}
@media(max-width:767px){.product-thumb{width:52px;height:52px;flex-basis:52px;}.order-table td.article{min-width:230px;}}

/* v0.5.27 — categorie prodotti */
.category-title{display:flex;align-items:baseline;gap:12px;margin:28px 0 12px;padding:0 4px}.category-title span{font-size:10px;font-weight:900;letter-spacing:.14em;color:#777;text-transform:uppercase}.category-title strong{font-size:22px;font-weight:900;letter-spacing:-.02em}.category-title em{margin-left:auto;font-size:11px;color:#777;font-style:normal}.category-section:first-of-type .category-title{margin-top:4px}.cat-handle{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #c3c4c7;border-radius:4px;background:#f6f7f7;color:#2271b1;font-size:20px;font-weight:700;cursor:grab}.cat-num{display:inline-block;min-width:20px;margin:0 4px;font-weight:700}.cat-move{width:25px;height:25px;padding:0!important}.category-section{margin-bottom:8px}

.review-product{display:flex;align-items:center;gap:12px;min-width:0}.review-thumb{width:54px;height:54px;object-fit:contain;border-radius:7px;border:1px solid #e5e7eb;background:#fff;padding:3px;flex:0 0 54px}.review-product>div{min-width:0}

/* v0.5.45 — layout definitivo: sidebar del sito nascosta ovunque,
   tranne nelle pagine archivio/prodotto WooCommerce. Il full-width è
   riservato esclusivamente al flusso Nuovo Ordine. */
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) #sidebar,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) #secondary,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .et_right_sidebar #sidebar,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .et_pb_widget_area,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .widget-area,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) aside.sidebar,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) aside#secondary,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .site-sidebar,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .sidebar-primary,
body:not(.single-product):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .sidebar-main {
  display:none !important;
}

/* Account: niente colonna sidebar, ma il contenitore del tema resta nella
   sua larghezza normale. Così Bacheca/Ordini/Indirizzi non deformano Divi. */
body.twoelle-account-layout #sidebar,
body.twoelle-account-layout #secondary,
body.twoelle-account-layout .et_right_sidebar #sidebar,
body.twoelle-account-layout .et_pb_widget_area,
body.twoelle-account-layout .widget-area,
body.twoelle-account-layout aside.sidebar,
body.twoelle-account-layout aside#secondary,
body.twoelle-account-layout .site-sidebar,
body.twoelle-account-layout .sidebar-primary,
body.twoelle-account-layout .sidebar-main { display:none !important; }

/* Nuovo Ordine: full-width reale, inclusa la colonna Divi #left-area. */
body.twoelle-order-page #sidebar,
body.twoelle-order-page #secondary,
body.twoelle-order-page #left-area,
body.twoelle-order-page .et_right_sidebar #left-area,
body.twoelle-order-page #main-content,
body.twoelle-order-page #main-content > .container,
body.twoelle-order-page #main-content .container:not(.et_menu_container),
body.twoelle-order-page .content-area,
body.twoelle-order-page .site-main {
  width:100% !important;
  max-width:none !important;
  float:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
body.twoelle-order-page .et_pb_section,
body.twoelle-order-page .et_pb_row,
body.twoelle-order-page .et_pb_row_inner,
body.twoelle-order-page .et_pb_row > .et_pb_column,
body.twoelle-order-page .et_pb_column,
body.twoelle-order-page .woocommerce,
body.twoelle-order-page .woocommerce-account,
body.twoelle-order-page .woocommerce-account .woocommerce,
body.twoelle-order-page .woocommerce-MyAccount-content {
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
body.twoelle-order-page .twoelle-portal { width:100% !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; }
body.twoelle-order-page .twoelle-portal main { width:100% !important; max-width:none !important; }
body.twoelle-order-page .et_pb_column.et_pb_column_empty { display:none !important; }

/* La navigazione account del plugin resta visibile nel flusso ordine. */
body.twoelle-order-page .twoelle-account-topnav { display:block !important; width:100% !important; box-sizing:border-box !important; }
body.twoelle-order-page .twoelle-account-topnav ul { display:flex !important; align-items:center; gap:0; list-style:none; margin:0; padding:0; overflow-x:auto; }
body.twoelle-order-page .twoelle-account-topnav li { margin:0; padding:0; flex:0 0 auto; }
body.twoelle-order-page .twoelle-account-topnav a { display:block; padding:18px 17px 15px; color:#222; text-decoration:none; font-size:12px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; border-bottom:3px solid transparent; white-space:nowrap; }
body.twoelle-order-page .twoelle-account-topnav li.is-active a { color:#c8102e; border-bottom-color:#c8102e; }
@media(max-width:720px){body.twoelle-order-page .twoelle-account-topnav a{padding:15px 12px 13px;font-size:10px;}body.twoelle-order-page .twoelle-account-topnav{margin-bottom:20px !important;}}


/* v0.5.45.9 — ordini nuovi evidenziati nel backoffice */
.twoelle-orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 14px;padding:14px 16px;background:#fff;border:1px solid #e5e5e5;border-radius:10px}
.twoelle-new-orders-summary{font-size:14px;color:#c4121c}.twoelle-no-new{color:#666}.twoelle-orders-actions{display:flex;align-items:center;gap:14px}.twoelle-orders-table tr.twoelle-order-new td{background:#fff8f8}.twoelle-orders-table tr.twoelle-order-new td:first-child{border-left:4px solid #c4121c}.twoelle-new-badge{display:inline-block;background:#c4121c;color:#fff;font-weight:800;font-size:10px;letter-spacing:.5px;padding:4px 8px;border-radius:20px}.twoelle-read-badge{display:inline-block;background:#eee;color:#777;font-weight:700;font-size:10px;letter-spacing:.5px;padding:4px 8px;border-radius:20px}.twoelle-delete-all-orders{color:#b32d2e !important}.twoelle-orders-table .button-link-delete{cursor:pointer}
@media(max-width:782px){.twoelle-orders-toolbar{align-items:flex-start;flex-direction:column}.twoelle-orders-actions{flex-wrap:wrap}}

.twoelle-admin-order-detail .twoelle-order-edit-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;max-width:1000px;margin:18px 0}.twoelle-admin-order-detail label{display:block;margin-bottom:6px}.twoelle-admin-order-detail .small-text{width:90px}.twoelle-admin-order-detail table th{white-space:nowrap}.twoelle-admin-order-detail table td{vertical-align:middle}@media(max-width:900px){.twoelle-admin-order-detail .twoelle-order-edit-grid{grid-template-columns:1fr}}

/* v0.5.45.11 - Area cliente: ordini 2Elle */
.twoelle-client-orders h2{margin:0 0 22px;font-size:30px;}
.twoelle-client-orders-table th,.twoelle-client-orders-table td{vertical-align:middle;}
.twoelle-client-order-status{display:inline-block;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:700;text-transform:uppercase;}
.twoelle-client-order-status.new{background:#ffe7e7;color:#c40000;}
.twoelle-client-order-status.read{background:#eee;color:#555;}
.twoelle-client-order-detail{margin-top:32px;padding-top:24px;border-top:1px solid #ddd;}
.twoelle-client-order-detail h3{margin:0 0 14px;}
.twoelle-client-order-total{text-align:right;font-size:18px;margin-top:18px;}
@media(max-width:700px){.twoelle-client-orders-table thead{display:none}.twoelle-client-orders-table,.twoelle-client-orders-table tbody,.twoelle-client-orders-table tr,.twoelle-client-orders-table td{display:block;width:100%;box-sizing:border-box}.twoelle-client-orders-table tr{padding:12px 0;border-bottom:1px solid #ddd}.twoelle-client-orders-table td{border:0!important;padding:5px 0 5px 42%;position:relative;min-height:28px}.twoelle-client-orders-table td:before{content:attr(data-title);position:absolute;left:0;top:5px;width:38%;font-weight:700}.twoelle-client-order-items{font-size:13px;display:block;overflow-x:auto;white-space:nowrap}}

/* v0.5.45.21 — Header account WooCommerce nativo */
body.woocommerce-account .twoelle-wc-account-identity{display:flex!important;align-items:center!important;gap:18px!important;width:100%!important;box-sizing:border-box!important;margin:0 0 24px!important;padding:0!important}
body.woocommerce-account .twoelle-wc-account-identity-logo{width:78px!important;height:78px!important;flex:0 0 78px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;border:1px solid #e5e5e5!important;border-radius:8px!important;overflow:hidden!important}
body.woocommerce-account .twoelle-wc-account-identity-logo img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:7px!important;box-sizing:border-box!important}
body.woocommerce-account .twoelle-wc-account-identity-copy{min-width:0!important}
body.woocommerce-account .twoelle-wc-account-identity-title{margin:0!important;font-size:30px!important;line-height:1.15!important;font-weight:700!important;color:#222!important}
body.woocommerce-account .twoelle-wc-account-identity-greeting{margin-top:5px!important;font-size:16px!important;line-height:1.35!important;color:#555!important;font-weight:500!important}
body.woocommerce-account .et_pb_title_container h1{display:none!important}
@media(max-width:700px){body.woocommerce-account .twoelle-wc-account-identity{gap:12px!important;margin-bottom:18px!important}body.woocommerce-account .twoelle-wc-account-identity-logo{width:60px!important;height:60px!important;flex-basis:60px!important}body.woocommerce-account .twoelle-wc-account-identity-title{font-size:24px!important}body.woocommerce-account .twoelle-wc-account-identity-greeting{font-size:14px!important}}


/* v0.5.45.22 — Nasconde il grande hero/titolo Divi "My Account" nell'area WooCommerce.
   L'intestazione account del plugin resta visibile subito sotto. */
body.woocommerce-account .et_pb_section:has(.et_pb_title_container),
body.woocommerce-account .et_pb_fullwidth_section:has(.et_pb_title_container) {
  display:none !important;
}

/* v0.5.45.25 - ordinamento articoli specifico per pagina ordine */
.twoelle-page-products-sortable{border:1px solid #dcdcde;border-radius:8px;background:#fff;max-width:1100px;min-height:48px;padding:6px}
.twoelle-page-product-row{display:flex;align-items:center;gap:10px;padding:11px 12px;margin:4px 0;border:1px solid #e5e5e5;border-radius:6px;background:#fafafa;cursor:grab}
.twoelle-page-product-row:active{cursor:grabbing}
.twoelle-page-product-row.twoelle-dragging{opacity:.45}
.twoelle-page-product-row.twoelle-drag-over{border-color:#2271b1;background:#f0f7fc}
.twoelle-page-product-drag{font-size:20px;line-height:1;color:#777;cursor:grab;width:24px;text-align:center}
.twoelle-page-product-row label,.twoelle-page-product-available{font-size:13px;line-height:1.55}
.twoelle-page-products-empty{padding:18px;color:#777;text-align:center}
.twoelle-page-products-available{max-width:1100px;border:1px solid #dcdcde;border-radius:8px;padding:8px;background:#fff}
.twoelle-page-product-available{display:block;padding:9px 10px;border-bottom:1px solid #eee}
.twoelle-page-product-available:last-child{border-bottom:0}
