
/* ComiX My Account — clean global skin. Shipping Engine owns .csh-* */

body.woocommerce-account .woocommerce{
	display:grid;
	grid-template-columns:190px minmax(0,1fr);
	gap:28px;
	align-items:start;
}

/* Sidebar */
body.woocommerce-account .woocommerce-MyAccount-navigation{
	width:auto!important;
	float:none!important;
	margin:0!important;
	background:#fff!important;
	border:2px solid #10131a!important;
	box-shadow:7px 8px 0 #ffd400!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{
	display:flex!important;
	flex-direction:column!important;
	margin:0!important;
	padding:0!important;
	list-style:none!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li{
	margin:0!important;
	padding:0!important;
	order:0;
	border-bottom:1px solid #10131a!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{border-bottom:0!important}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard{order:-1000!important}
body.woocommerce-account .woocommerce-MyAccount-navigation a{
	display:flex!important;
	align-items:center!important;
	min-height:40px!important;
	padding:8px 12px!important;
	color:#10131a!important;
	background:#fff!important;
	text-decoration:none!important;
	font-size:11px!important;
	font-weight:900!important;
	line-height:1.2!important;
	letter-spacing:.02em!important;
	text-transform:uppercase!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{
	background:#10131a!important;
	color:#fff!important;
	box-shadow:inset 6px 0 0 #ed1c24!important;
}

/* Main content */
body.woocommerce-account .woocommerce-MyAccount-content{
	width:auto!important;
	float:none!important;
	min-width:0!important;
}

/* All endpoints except native Shipping Engine mailbox */
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)){
	background:#fff!important;
	border:2px solid #10131a!important;
	box-shadow:7px 8px 0 #ed1c24!important;
	padding:34px 38px 38px!important;
}
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) > h1:first-child,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) > h2:first-child,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) > h3:first-child{
	display:inline-block!important;
	margin:4px 0 30px 34px!important;
	padding:12px 20px!important;
	background:#10131a!important;
	color:#fff!important;
	font-weight:950!important;
	line-height:1!important;
	text-transform:uppercase!important;
	box-shadow:5px 6px 0 #ed1c24!important;
}

/* Tables */
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) table.shop_table,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) table.woocommerce-orders-table{
	width:100%!important;
	border:2px solid #10131a!important;
	border-radius:0!important;
	border-collapse:separate!important;
	border-spacing:0!important;
	background:#fff!important;
}
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) table.shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) table.woocommerce-orders-table th{
	background:#10131a!important;
	color:#fff!important;
	padding:12px 14px!important;
	font-size:11px!important;
	font-weight:900!important;
	text-transform:uppercase!important;
}
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) table.shop_table td,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) table.woocommerce-orders-table td{
	padding:13px 14px!important;
	border-top:1px solid #dcdcde!important;
}

/* Forms */
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) form,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) .woocommerce-Address{
	border:1.5px solid #10131a;
	background:#fff;
	padding:18px;
}
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) input[type=text],
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) input[type=email],
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) input[type=password],
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) input[type=tel],
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) select,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) textarea{
	border:1.5px solid #10131a!important;
	border-radius:0!important;
	background:#fff!important;
	min-height:42px!important;
}

/* Buttons */
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) .button,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) button,
body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)) input[type=submit]{
	background:#10131a!important;
	color:#fff!important;
	border:1.5px solid #10131a!important;
	border-radius:0!important;
	box-shadow:3px 4px 0 #ffd400!important;
	font-size:12px!important;
	font-weight:900!important;
	line-height:1.1!important;
	text-transform:uppercase!important;
	padding:8px 12px!important;
	min-height:34px!important;
}

/* Addresses */
body.woocommerce-account .woocommerce-Addresses{
	display:grid!important;
	grid-template-columns:repeat(2,minmax(0,1fr))!important;
	gap:20px!important;
}
body.woocommerce-account .woocommerce-Address{
	width:auto!important;
	float:none!important;
	margin:0!important;
}
body.woocommerce-account .woocommerce-Address:nth-child(1){box-shadow:5px 6px 0 #72aee6}
body.woocommerce-account .woocommerce-Address:nth-child(2){box-shadow:5px 6px 0 #00a32a}

/* Notices */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error{
	border:2px solid #10131a!important;
	border-radius:0!important;
	background:#fff!important;
	box-shadow:4px 4px 0 #ffd400!important;
}

@media(max-width:900px){
	body.woocommerce-account .woocommerce{
		grid-template-columns:180px minmax(0,1fr);
		gap:20px;
	}
}
@media(max-width:768px){
	body.woocommerce-account .woocommerce{display:block}
	body.woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:24px!important}
	body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)){padding:22px 18px 28px!important}
	body.woocommerce-account .woocommerce-Addresses{grid-template-columns:1fr!important}
}


/* v3.6.60 — My Account compact navigation: more room for content, less vertical drag. */
@media(min-width:769px){
	body.woocommerce-account .woocommerce-MyAccount-navigation{
		max-width:190px!important;
		align-self:start!important;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation a{
		word-break:normal!important;
		overflow-wrap:anywhere!important;
	}
}

/* v3.6.66 — My Account UX a doppia gerarchia, speculare e autoesplicativa.
 * Desktop: macro-aree a sinistra, contenuto al centro, sezioni della macro a destra.
 * I due menu condividono la stessa grammatica visiva. La colonna destra ha un titolo
 * esplicito per evitare che la specularità sia soltanto estetica.
 */
body.woocommerce-account .woocommerce{
    display:grid!important;
    grid-template-columns:190px minmax(0,1fr) 190px!important;
    grid-template-areas:"macro content sub"!important;
    column-gap:28px!important;
    row-gap:0!important;
    align-items:start!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation{
    grid-area:macro!important;
    align-self:start!important;
    width:190px!important;
    max-width:190px!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .cx-account-macro button{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:40px!important;
    box-sizing:border-box!important;
    border:0!important;
    border-bottom:1px solid #10131a!important;
    background:#fff!important;
    color:#10131a!important;
    text-align:left!important;
    padding:8px 12px!important;
    font:inherit!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1.2!important;
    letter-spacing:.02em!important;
    text-transform:uppercase!important;
    cursor:pointer!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .cx-account-macro.is-active button{
    background:#10131a!important;
    color:#fff!important;
    box-shadow:inset 6px 0 0 #ed1c24!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .cx-account-macro:last-child button{border-bottom:0!important}

body.woocommerce-account .woocommerce-MyAccount-content{
    grid-area:content!important;
    width:100%!important;
    min-width:0!important;
    float:none!important;
}

/* Sottomenu: stessa card del menu principale, ma semanticamente identificato. */
body.woocommerce-account .cx-account-subnav{
    grid-area:sub!important;
    align-self:start!important;
    width:190px!important;
    min-width:190px!important;
    max-width:190px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    gap:0!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
    overflow:visible!important;
    background:#fff!important;
    border:2px solid #10131a!important;
    box-shadow:7px 8px 0 #ffd400!important;
}
body.woocommerce-account .cx-account-subnav[data-count="0"],
body.woocommerce-account .cx-account-subnav[data-count="1"]{display:none!important}
body.woocommerce-account .cx-account-subnav-title{
    display:flex!important;
    align-items:center!important;
    min-height:40px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:8px 12px!important;
    background:#10131a!important;
    color:#fff!important;
    border-bottom:1px solid #10131a!important;
    box-shadow:inset -6px 0 0 #ed1c24!important;
    font-size:10px!important;
    font-weight:950!important;
    line-height:1.2!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
}
body.woocommerce-account .cx-account-subnav-link{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:40px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:8px 12px!important;
    border:0!important;
    border-bottom:1px solid #10131a!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
    color:#10131a!important;
    text-decoration:none!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1.2!important;
    letter-spacing:.02em!important;
    text-transform:uppercase!important;
}
body.woocommerce-account .cx-account-subnav-link:last-child{border-bottom:0!important}
body.woocommerce-account .cx-account-subnav-link:hover,
body.woocommerce-account .cx-account-subnav-link:focus-visible,
body.woocommerce-account .cx-account-subnav-link.is-active{
    background:#10131a!important;
    color:#fff!important;
    box-shadow:inset -6px 0 0 #ed1c24!important;
    outline:none!important;
}

/* Desktop meno largo: preserva il contenuto, riducendo solo le due colonne di navigazione. */
@media (max-width:1180px) and (min-width:921px){
    body.woocommerce-account .woocommerce{
        grid-template-columns:165px minmax(0,1fr) 165px!important;
        column-gap:18px!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .cx-account-subnav{
        width:165px!important;min-width:165px!important;max-width:165px!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation a,
    body.woocommerce-account .woocommerce-MyAccount-navigation .cx-account-macro button,
    body.woocommerce-account .cx-account-subnav-link{font-size:10px!important;padding:8px 9px!important}
}

/* Tablet: niente tre colonne compresse. Macro sopra, sotto-sezioni subito sotto,
 * poi il contenuto. I menu diventano barre orizzontali touch-friendly. */
@media (max-width:920px){
    body.woocommerce-account .woocommerce{
        grid-template-columns:minmax(0,1fr)!important;
        grid-template-areas:"macro" "sub" "content"!important;
        gap:14px!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation{
        grid-area:macro!important;
        width:100%!important;max-width:none!important;margin:0!important;
        overflow-x:auto!important;overscroll-behavior-x:contain!important;
        scrollbar-width:thin!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul{
        display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;min-width:max-content!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation li{
        border-bottom:0!important;border-right:1px solid #10131a!important;flex:0 0 auto!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{border-right:0!important}
    body.woocommerce-account .woocommerce-MyAccount-navigation .cx-account-macro button{
        width:auto!important;min-height:44px!important;white-space:nowrap!important;border-bottom:0!important;
    }
    body.woocommerce-account .cx-account-subnav{
        grid-area:sub!important;
        width:100%!important;min-width:0!important;max-width:none!important;
        flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;
        overscroll-behavior-x:contain!important;scrollbar-width:thin!important;
        box-shadow:5px 6px 0 #ffd400!important;
    }
    body.woocommerce-account .cx-account-subnav-title{
        flex:0 0 auto!important;white-space:nowrap!important;min-height:44px!important;
        box-shadow:inset 0 -5px 0 #ed1c24!important;
    }
    body.woocommerce-account .cx-account-subnav-link{
        flex:0 0 auto!important;width:auto!important;min-height:44px!important;white-space:nowrap!important;
        border-bottom:0!important;border-right:1px solid #10131a!important;
    }
    body.woocommerce-account .cx-account-subnav-link:last-child{border-right:0!important}
    body.woocommerce-account .cx-account-subnav-link:hover,
    body.woocommerce-account .cx-account-subnav-link:focus-visible,
    body.woocommerce-account .cx-account-subnav-link.is-active{box-shadow:inset 0 -5px 0 #ed1c24!important}
    body.woocommerce-account .woocommerce-MyAccount-content{grid-area:content!important}
}

/* Mobile: priorità assoluta alla leggibilità e al tap target. */
@media (max-width:600px){
    body.woocommerce-account .woocommerce{gap:12px!important}
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .cx-account-subnav{margin-left:0!important;margin-right:0!important}
    body.woocommerce-account .woocommerce-MyAccount-navigation .cx-account-macro button,
    body.woocommerce-account .cx-account-subnav-link,
    body.woocommerce-account .cx-account-subnav-title{
        min-height:46px!important;font-size:10px!important;padding:9px 11px!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content:not(:has(.csh-mailbox)){
        padding:20px 16px 26px!important;
    }
}


/* v3.6.67 — My Account wide-content guard.
 * Problema: il layout speculare a tre colonne era corretto, ma il contenitore storico
 * dell'account era limitato a 1180px. Tabelle operative come Ordini richiedono più
 * spazio e potevano invadere il sottomenu destro. La correzione aumenta solo l'area
 * account autenticata su desktop largo e impedisce qualsiasi overflow oltre la
 * colonna centrale. Sotto 1280px si abbandona la specularità prima di comprimere
 * contenuti o target touch.
 */
@media (min-width:1280px){
    body.woocommerce-account.logged-in .cx-account-comic .cx-container{
        width:min(1420px,calc(100% - 40px))!important;
        max-width:1420px!important;
    }
    body.woocommerce-account.logged-in .cx-account-cover{
        width:min(1180px,100%)!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    body.woocommerce-account.logged-in .cx-account-page-panel{
        width:100%!important;
        max-width:none!important;
    }
    body.woocommerce-account.logged-in .cx-account-page-panel>.woocommerce{
        grid-template-columns:190px minmax(720px,1fr) 190px!important;
        column-gap:24px!important;
    }
}

/* La card centrale è sempre il confine di clipping/scroll del contenuto operativo. */
body.woocommerce-account.logged-in .woocommerce-MyAccount-content{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain!important;
}
body.woocommerce-account.logged-in .woocommerce-MyAccount-content > *{
    max-width:100%!important;
}
body.woocommerce-account.logged-in .woocommerce-MyAccount-content table{
    max-width:100%!important;
}

/* Tra tablet largo e desktop compatto, non sacrificare la leggibilità delle tabelle:
 * macro-menu sopra, sottomenu subito sotto, poi contenuto a piena larghezza. */
@media (max-width:1279px) and (min-width:921px){
    body.woocommerce-account .woocommerce{
        grid-template-columns:minmax(0,1fr)!important;
        grid-template-areas:"macro" "sub" "content"!important;
        gap:14px!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation{
        width:100%!important;max-width:none!important;margin:0!important;
        overflow-x:auto!important;overscroll-behavior-x:contain!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul{
        display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;min-width:max-content!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation li{
        border-bottom:0!important;border-right:1px solid #10131a!important;flex:0 0 auto!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation .cx-account-macro button{
        width:auto!important;min-height:44px!important;white-space:nowrap!important;border-bottom:0!important;
    }
    body.woocommerce-account .cx-account-subnav{
        width:100%!important;min-width:0!important;max-width:none!important;
        flex-direction:row!important;overflow-x:auto!important;box-shadow:0 5px 0 #ffd400!important;
    }
    body.woocommerce-account .cx-account-subnav-title,
    body.woocommerce-account .cx-account-subnav-link{
        flex:0 0 auto!important;min-height:44px!important;white-space:nowrap!important;border-bottom:0!important;border-right:1px solid #10131a!important;
    }
    body.woocommerce-account .cx-account-subnav-title{box-shadow:inset 0 -5px 0 #ed1c24!important}
    body.woocommerce-account .cx-account-subnav-link:hover,
    body.woocommerce-account .cx-account-subnav-link:focus-visible,
    body.woocommerce-account .cx-account-subnav-link.is-active{box-shadow:inset 0 -5px 0 #ed1c24!important}
}

/* v3.6.68 — Contrast guard: testo leggibile sulle superfici scure degli ordini.
 * Le card interne chiare mantengono il testo scuro; i link sulle superfici scure restano ComiX red.
 */
body.woocommerce-account .woocommerce-orders-table__cell-order-number{
    color:#fff!important;
}
body.woocommerce-account .woocommerce-orders-table__cell-order-number > .rac-order-customer-summary > .rac-order-number-link,
body.woocommerce-account .woocommerce-orders-table__cell-order-number > .rac-order-customer-summary > a.rac-order-number-link{
    color:#ed1c24!important;
}
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-progress,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-section-label,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-head,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-head span,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-head strong,
body.woocommerce-account .woocommerce-orders-table__cell-order-number > .rac-order-customer-summary{
    color:#fff!important;
}
/* La scheda prodotti è volutamente chiara: ripristina il contrasto scuro al suo interno. */
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-customer-order-products,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-customer-order-products .rac-progress-section-label,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-customer-order-products .rac-item-progress-title,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-customer-order-products .rac-item-progress-meta,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-customer-order-products .rac-item-progress-meta strong{
    color:#1d2327!important;
}
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-customer-order-products a{
    color:#ed1c24!important;
}

/* v3.6.69 — My Account / Ordini: filtro cronologia ad alta leggibilità. */
body.woocommerce-account .cx-order-history-filter{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    flex-wrap:wrap!important;
    margin:0 0 16px!important;
    padding:10px 12px!important;
    background:#f7f7f7!important;
    border:1px solid #10131a!important;
    box-shadow:4px 4px 0 #ffd400!important;
}
body.woocommerce-account .cx-order-history-filter label{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    margin:0!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.03em!important;
    font-size:10px!important;
}
body.woocommerce-account .cx-order-history-filter select{
    min-width:190px!important;
    min-height:42px!important;
    padding:8px 36px 8px 11px!important;
    border:2px solid #10131a!important;
    border-radius:0!important;
    background:#fff!important;
    color:#10131a!important;
    font-weight:800!important;
    cursor:pointer!important;
}
body.woocommerce-account .cx-order-history-filter select:focus-visible{
    outline:3px solid #ffd400!important;
    outline-offset:2px!important;
}
body.woocommerce-account .cx-order-history-filter .cx-order-filter-submit{
    min-height:42px!important;
    margin:0!important;
    padding:9px 14px!important;
}
body.woocommerce-account .cx-order-history-filter .cx-order-filter-hint{
    margin-left:auto!important;
    color:#555!important;
    font-size:11px!important;
    line-height:1.3!important;
}
@media (max-width:700px){
    body.woocommerce-account .cx-order-history-filter{
        align-items:stretch!important;
        padding:10px!important;
    }
    body.woocommerce-account .cx-order-history-filter label{
        width:100%!important;
        display:grid!important;
        grid-template-columns:auto minmax(0,1fr)!important;
    }
    body.woocommerce-account .cx-order-history-filter select{
        width:100%!important;
        min-width:0!important;
        min-height:46px!important;
    }
    body.woocommerce-account .cx-order-history-filter .cx-order-filter-submit{
        display:none!important;
    }
    body.woocommerce-account .cx-order-history-filter .cx-order-filter-hint{
        width:100%!important;
        margin:0!important;
    }
}

/* v3.6.70 — Ordini: il numero ordine sulle superfici nere deve restare bianco.
 * I link operativi/prodotto restano rossi; questa regola riguarda solo il numero identificativo ordine. */
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-link,
body.woocommerce-account .woocommerce-orders-table__cell-order-number a.rac-order-number-link,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-block > a:first-child{
    color:#fff!important;
}
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-link:hover,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-link:focus-visible,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-block > a:first-child:hover,
body.woocommerce-account .woocommerce-orders-table__cell-order-number .rac-order-number-block > a:first-child:focus-visible{
    color:#ed1c24!important;
}


/* v3.6.72 — My Account / riepilogo ordini: contrasto definitivo sulle superfici nere.
 * Numero ordine e stato globale sono contenuti informativi: bianco pieno.
 * I link operativi nelle card restano ComiX red; le card prodotto chiare mantengono testo scuro.
 */
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number > .rac-order-customer-summary,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number > .rac-order-number-block{
    color:#fff!important;
}
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-link,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-block > a.rac-order-number-link,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-customer-summary > a.rac-order-number-link{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-section-label,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-head,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-head,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-head span,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress .rac-progress-head strong{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
/* Hover/focus del numero ordine resta riconoscibile senza perdere contrasto. */
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-link:hover,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-link:focus-visible{
    color:#ed1c24!important;
    -webkit-text-fill-color:#ed1c24!important;
}
/* Link delle schede chiare / azioni: ComiX red come già previsto. */
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-customer-order-products a{
    color:#ed1c24!important;
    -webkit-text-fill-color:#ed1c24!important;
}

/* v3.6.73 — Hard guard completo per il riepilogo ordine su fondo nero.
 * Tutti i testi informativi/titolini ereditati dentro il summary scuro sono bianchi.
 * I link restano rossi, salvo il numero ordine che resta bianco per gerarchia visiva.
 * Le card prodotto chiare vengono esplicitamente escluse e mantengono testo scuro.
 */
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-customer-summary,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-block,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress{
    color:#fff!important;
}
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-customer-summary *:not(a):not(.rac-customer-order-products):not(.rac-customer-order-products *),
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-block *:not(a):not(.rac-customer-order-products):not(.rac-customer-order-products *),
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress *:not(a):not(.rac-customer-order-products):not(.rac-customer-order-products *){
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-customer-summary a:not(.rac-order-number-link),
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-block a:not(.rac-order-number-link),
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-order-number-progress a:not(.rac-order-number-link){
    color:#ed1c24!important;
    -webkit-text-fill-color:#ed1c24!important;
}
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number a.rac-order-number-link{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-customer-order-products,
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-customer-order-products *:not(a){
    color:#1d2327!important;
    -webkit-text-fill-color:#1d2327!important;
}
body.woocommerce-account table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number .rac-customer-order-products a{
    color:#ed1c24!important;
    -webkit-text-fill-color:#ed1c24!important;
}


/* v3.6.76 — Documenti legali consultabili senza uscire da My Account. */
.woocommerce-account .woocommerce-MyAccount-content .comix-account-policy,
.woocommerce-account .woocommerce-MyAccount-content .cofh-account-legal-document{
  max-width:100%;
  color:#111;
}
.woocommerce-account .woocommerce-MyAccount-content .comix-account-policy-actions,
.woocommerce-account .woocommerce-MyAccount-content .cofh-account-legal-actions{
  margin-top:28px;
  padding:18px;
  border:2px solid #111;
  background:#fff;
  box-shadow:6px 6px 0 #ffd400;
}
.woocommerce-account .woocommerce-MyAccount-content .comix-account-policy-actions .button,
.woocommerce-account .woocommerce-MyAccount-content .cofh-account-legal-actions .button{
  margin:4px 8px 4px 0!important;
  min-height:44px;
}
@media (max-width:600px){
  .woocommerce-account .woocommerce-MyAccount-content .comix-account-policy-actions .button,
  .woocommerce-account .woocommerce-MyAccount-content .cofh-account-legal-actions .button{
    width:100%;
    margin:5px 0!important;
  }
}

/* v3.6.97 — dashboard account UX2026: una voce = una destinazione. */
.cofh-account-dashboard-v41040{margin:0 0 28px}.cofh-account-dashboard-v41040__head h2{margin:0 0 16px;font-size:clamp(1.35rem,2.6vw,1.9rem)}.cofh-account-dashboard-v41040__section{margin:24px 0 12px}.cofh-account-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cofh-account-summary-card{position:relative;display:grid;grid-template-columns:1fr auto;gap:3px 14px;align-items:center;min-height:70px;padding:13px 42px 13px 15px;border:1px solid #d8dde5;border-radius:10px;background:#fff;color:inherit;text-decoration:none!important}.cofh-account-summary-card:hover,.cofh-account-summary-card:focus{border-color:#111;box-shadow:0 2px 8px rgba(0,0,0,.08)}.cofh-account-summary-card__label{font-weight:700;line-height:1.25}.cofh-account-summary-card__value{grid-column:2;grid-row:1/3;font-size:1.15rem}.cofh-account-summary-card__arrow{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:1.6rem}.cofh-account-summary-card--attention{border-left:4px solid #d63638}.cofh-account-summary-ok{grid-column:1/-1;padding:14px 16px;border:1px solid #b7dfc3;border-radius:10px;background:#f0fbf3;font-weight:700}.cofh-customer-notice-list{display:grid;gap:10px}.cofh-customer-notice{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 16px;border:1px solid #d8dde5;border-radius:10px;color:inherit;text-decoration:none!important;background:#fff}.cofh-customer-notice.is-unread{border-left:4px solid #2271b1}.cofh-customer-notice.requires-action{background:#fffaf0}.cofh-customer-notice small{display:block;margin-top:4px;color:#5b616b}.cofh-customer-notice__action{white-space:nowrap;font-weight:700}.cofh-account-orders-overview__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cofh-account-order-list,.cofh-account-order-products{display:grid;gap:12px;margin-top:15px}.cofh-account-order-card,.cofh-account-order-product{border:1px solid #d8dde5;border-radius:10px;padding:14px;background:#fff}.cofh-account-order-card>header,.cofh-account-order-product{display:flex;gap:12px;justify-content:space-between;align-items:center}.cofh-account-order-card header small,.cofh-account-order-product small{display:block;color:#68707c;margin-top:3px}.cofh-account-order-card__items{display:grid;gap:5px;margin-top:10px}.cofh-account-order-card__items>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf0f3;padding-top:6px}.cofh-account-progress{margin:10px 0}.cofh-account-progress__top{display:flex;justify-content:space-between;gap:10px;font-size:.92rem}.cofh-account-progress__track{height:8px;border-radius:999px;background:#e7e9ed;overflow:hidden;margin-top:5px}.cofh-account-progress__track>span{display:block;height:100%;background:currentColor;border-radius:999px}.cofh-expired-orderability-card{border:1px solid #ddd;border-radius:10px;padding:14px;margin:10px 0}
@media (max-width:720px){.cofh-account-summary-grid{grid-template-columns:1fr}.cofh-account-order-card>header,.cofh-account-order-product{align-items:flex-start;flex-direction:column}.cofh-account-order-card__items>div{flex-direction:column;gap:2px}}

/* v3.6.98 — Buono informativo: nessun link/destinazione fittizia. */
.cofh-account-summary-card--static{cursor:default;padding-right:15px}.cofh-account-summary-card--static .cofh-account-summary-card__value{grid-column:2;grid-row:1}.cofh-account-summary-card--static:hover{border-color:#d8dde5;box-shadow:none}

/* v3.6.100 — My Account dashboard compatta, senza testo WooCommerce ridondante.
 * Solo la Bacheca: rimuove i due paragrafi standard WooCommerce perché le stesse
 * informazioni sono già presenti nella dashboard ComiX e nel menu laterale.
 * Riduce del 40% i due titoli principali richiesti, senza cambiare funzioni o hook.
 */
body.woocommerce-account.logged-in .cx-account-page-panel > .woocommerce:has(.woocommerce-MyAccount-navigation-link--dashboard.is-active) .woocommerce-MyAccount-content > p:first-of-type,
body.woocommerce-account.logged-in .cx-account-page-panel > .woocommerce:has(.woocommerce-MyAccount-navigation-link--dashboard.is-active) .woocommerce-MyAccount-content > p:nth-of-type(2){
    display:none!important;
}

body.woocommerce-account.logged-in .cx-account-cover{
    padding:16px 18px 15px!important;
}
body.woocommerce-account.logged-in .cx-account-cover h1{
    font-size:clamp(22px,3vw,37px)!important;
}
body.woocommerce-account.logged-in .cx-account-cover p{
    margin-top:8px!important;
}

body.woocommerce-account.logged-in .cofh-account-dashboard-v41040__head h2{
    margin-bottom:10px!important;
    font-size:clamp(13px,1.56vw,18.25px)!important;
    line-height:1.2!important;
}

@media (max-width:760px){
    body.woocommerce-account.logged-in .cx-account-cover{
        padding:13px 14px!important;
    }
}


/* v3.6.101 — Servizi compatti in card; max 3 per riga, 2 su tablet, 1 su mobile. */
.cofh-services-account{display:grid;gap:18px}
.cofh-services-account__intro{margin:0}
.cofh-services-account__intro h2{margin:0 0 6px;font-size:24px;line-height:1.12}
.cofh-services-account__intro p{margin:0;max-width:900px}
.cofh-services-group{display:grid;gap:10px;margin:0}
.cofh-services-group>h3{margin:0;font-size:18px;line-height:1.2}
.cofh-service-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.cofh-service-card{display:flex;flex-direction:column;min-width:0;min-height:100%;padding:14px;border:1px solid #d8dce2;background:#fff;box-shadow:4px 4px 0 #f1c400}
.cofh-service-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 8px}
.cofh-service-card__head h4{margin:0;font-size:16px;line-height:1.2}
.cofh-service-card__status{flex:0 0 auto;padding:3px 7px;border:1px solid #111;background:#f5f5f5;font-size:11px;font-weight:800;text-transform:uppercase}
.cofh-service-card.is-active .cofh-service-card__status{background:#111;color:#fff}
.cofh-service-card__description{margin:0 0 9px;font-size:13px;line-height:1.4}
.cofh-service-card__consent{display:grid;gap:3px;margin:0 0 10px;padding:8px;background:#f6f7f8;font-size:12px;line-height:1.35}
.cofh-service-card__consent strong{font-size:12px}
.cofh-service-card__consent small{font-size:11px;line-height:1.35}
.cofh-service-card__footer{display:grid;gap:7px;margin-top:auto;padding-top:2px}
.cofh-service-card__footer form{margin:0}
.cofh-service-card__footer .button{min-height:36px;margin:0;padding:7px 12px;font-size:12px;line-height:1.15}
.cofh-service-card__meta{display:block;font-size:10px;line-height:1.35;color:#555}
.cofh-services-empty{grid-column:1/-1;margin:0;padding:12px;border:1px dashed #c9cdd3;background:#fafafa}
@media(max-width:1180px){.cofh-service-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.cofh-service-card-grid{grid-template-columns:1fr}.cofh-service-card{padding:12px}.cofh-services-account__intro h2{font-size:21px}}

/* v3.6.103 — dashboard account centered composition.
 * Sui desktop/intermedi il blocco Bacheca poteva risultare visivamente sbilanciato
 * verso sinistra. Centriamo la composizione hero + navigazione + pannello solo
 * quando e' attiva la Bacheca, mantenendo il titolo interno allineato a sinistra
 * e senza restringere gli altri endpoint che possono richiedere piu' larghezza.
 */
@media (min-width:981px) and (max-width:1279px){
    body.woocommerce-account.logged-in .cx-account-cover{
        width:min(980px,100%)!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    body.woocommerce-account.logged-in .cx-account-page-panel > .woocommerce:has(.woocommerce-MyAccount-navigation-link--dashboard.is-active){
        max-width:980px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        grid-template-columns:190px minmax(0,760px)!important;
        column-gap:24px!important;
        justify-content:center!important;
    }
}
@media (min-width:1280px){
    body.woocommerce-account.logged-in .cx-account-page-panel > .woocommerce:has(.woocommerce-MyAccount-navigation-link--dashboard.is-active){
        max-width:1180px!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
}



/* v3.6.103 — My Account: centratura reale della Bacheca senza sacrificare il responsive.
 * Desktop largo: quando la Bacheca ha solo le due schede visibili (menu + contenuto),
 * elimina la colonna destra vuota della griglia a tre colonne e centra il gruppo sotto
 * la cover. Il testo della cover resta allineato a sinistra.
 * Tablet/mobile: conserva la gerarchia responsive già consolidata, a larghezza fluida.
 */
@media (min-width:1280px){
    body.woocommerce-account.logged-in .cx-account-page-panel > .woocommerce:has(.woocommerce-MyAccount-navigation-link--dashboard.is-active){
        width:min(1180px,100%)!important;
        max-width:1180px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        grid-template-columns:190px minmax(0,1fr)!important;
        grid-template-areas:"macro content"!important;
        column-gap:24px!important;
    }
    body.woocommerce-account.logged-in .cx-account-page-panel > .woocommerce:has(.woocommerce-MyAccount-navigation-link--dashboard.is-active) .cx-account-subnav{
        display:none!important;
    }
}

/* La cover è una scheda centrata, ma la tipografia rimane intenzionalmente a sinistra. */
body.woocommerce-account.logged-in .cx-account-cover{
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:left!important;
}

/* Tablet: pannello e cover seguono il contenitore fluido, senza offset laterali. */
@media (max-width:1279px){
    body.woocommerce-account.logged-in .cx-account-cover,
    body.woocommerce-account.logged-in .cx-account-page-panel{
        width:100%!important;
        max-width:none!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
}

/* Smartphone: nessuna larghezza fissa; ombre contenute nel viewport e card a colonna. */
@media (max-width:600px){
    body.woocommerce-account.logged-in .cx-account-comic .cx-container{
        width:min(100% - 24px,1180px)!important;
    }
    body.woocommerce-account.logged-in .cx-account-cover{
        width:100%!important;
        padding:15px 16px 14px!important;
        box-shadow:5px 5px 0 #e31b23!important;
    }
    body.woocommerce-account.logged-in .cx-account-page-panel,
    body.woocommerce-account.logged-in .cx-account-page-panel > .woocommerce,
    body.woocommerce-account.logged-in .woocommerce-MyAccount-content{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
    }
}

/* v3.6.104 — Servizi: sottomenu Nuovi servizi / Servizi attivati.
 * Il filtro resta puramente di presentazione: il 023 continua a possedere dati,
 * consensi e azioni. I pulsanti delle card sono centrati e restano fluidi su mobile.
 */
body.woocommerce-account .cofh-services-group[hidden]{display:none!important}
body.woocommerce-account .cofh-service-card__footer form{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    width:100%!important;
}
body.woocommerce-account .cofh-service-card__footer .button,
body.woocommerce-account .cofh-service-card__footer button,
body.woocommerce-account .cofh-service-card__footer input[type=submit]{
    width:max-content!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
}
@media (max-width:600px){
    body.woocommerce-account .cofh-service-card__footer .button,
    body.woocommerce-account .cofh-service-card__footer button,
    body.woocommerce-account .cofh-service-card__footer input[type=submit]{
        min-height:44px!important;
        white-space:normal!important;
    }
}



/* v3.6.110 — Servizi > Apri Ticket / RMA: sola presentazione del workflow 023. */
.cofh-ticket-portal{display:grid;gap:20px;min-width:0}
.cofh-ticket-intro{padding:16px 18px;border:1px solid #d7dbe0;background:#fff}
.cofh-ticket-intro h2{margin:0 0 8px;font-size:24px;line-height:1.1}
.cofh-ticket-intro p{margin:6px 0;max-width:960px;line-height:1.45}
.cofh-ticket-legal-note{font-size:12px;color:#50575e}
.cofh-ticket-current,.cofh-ticket-eligible{display:grid;gap:10px}
.cofh-ticket-current>h3,.cofh-ticket-eligible>h3{margin:0;font-size:18px}
.cofh-ticket-list,.cofh-ticket-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.cofh-ticket-card,.cofh-ticket-order{min-width:0;padding:14px;border:2px solid #111;background:#fff;box-shadow:4px 4px 0 #ffd400}
.cofh-ticket-card.is-waiting{box-shadow:4px 4px 0 #ed1c24}
.cofh-ticket-card__head,.cofh-ticket-order>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.cofh-ticket-card__head>div,.cofh-ticket-order>header>div{display:grid;gap:3px;min-width:0}
.cofh-ticket-card__head strong,.cofh-ticket-order>header strong{overflow-wrap:anywhere}
.cofh-ticket-card small,.cofh-ticket-order small,.cofh-ticket-product small{display:block;color:#50575e}
.cofh-ticket-status{display:inline-flex;align-items:center;max-width:240px;padding:5px 8px;border:1px solid #111;background:#f6f7f7;font-size:11px;font-weight:900;line-height:1.15;text-align:center}
.cofh-ticket-products{display:grid;gap:8px;margin-top:12px}
.cofh-ticket-product{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #d7dbe0;background:#fafafa;min-width:0}
.cofh-ticket-product>div:first-child{min-width:0}
.cofh-ticket-product strong{display:block;overflow-wrap:anywhere}
.cofh-ticket-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.cofh-ticket-actions .button{margin:0!important;min-height:36px!important;white-space:normal!important}
.cofh-ticket-empty{margin:0;padding:12px;border:1px dashed #c9cdd3;background:#fafafa}
.cofh-dashboard-tickets{display:grid;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #d7dbe0}
.cofh-dashboard-tickets__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cofh-dashboard-tickets__head h3{margin:0!important}
.cofh-dashboard-ticket-list{display:grid;gap:7px}
.cofh-dashboard-ticket{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d7dbe0;background:#fff;color:inherit;text-decoration:none!important}
.cofh-dashboard-ticket>span:first-child{display:grid;gap:2px;min-width:0}
.cofh-dashboard-ticket strong{overflow-wrap:anywhere}
.cofh-dashboard-ticket small{color:#50575e}
@media(max-width:980px){
  .cofh-ticket-list,.cofh-ticket-order-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .cofh-ticket-intro{padding:12px}
  .cofh-ticket-intro h2{font-size:21px}
  .cofh-ticket-card__head,.cofh-ticket-order>header,.cofh-dashboard-ticket{align-items:stretch;flex-direction:column}
  .cofh-ticket-product{grid-template-columns:1fr}
  .cofh-ticket-actions{justify-content:stretch}
  .cofh-ticket-actions .button{width:100%}
  .cofh-ticket-status{max-width:none;width:100%;justify-content:center;box-sizing:border-box}
}


/* v3.6.112 — Bacheca cliente = centro operativo immediato.
 * Il 023 possiede dati/stati/link; il tema rende la gerarchia visiva.
 */
body.woocommerce-account.logged-in .cofh-account-dashboard-v41049{
  display:grid;
  gap:18px;
  margin:0;
  min-width:0;
}
body.woocommerce-account.logged-in .woocommerce-MyAccount-content:has(.cofh-account-dashboard-v41049){
  overflow:visible!important;
  padding:22px!important;
  background:#fff!important;
}
.cofh-dashboard-command-head{
  display:grid;
  gap:5px;
  padding:0 0 14px;
  border-bottom:3px solid #111;
}
.cofh-dashboard-command-head__kicker,
.cofh-dashboard-section-kicker{
  display:block;
  color:#e31b23;
  font-size:10px;
  font-weight:950;
  letter-spacing:.12em;
  line-height:1.2;
}
.cofh-dashboard-command-head h2{
  margin:0!important;
  font-size:clamp(20px,2.2vw,30px)!important;
  line-height:1.05!important;
  color:#10131a;
}
.cofh-dashboard-command-head p{
  max-width:820px;
  margin:0;
  color:#4f5661;
  font-size:13px;
  line-height:1.45;
}
.cofh-dashboard-live,
.cofh-dashboard-orders{
  display:grid;
  gap:12px;
  min-width:0;
}
.cofh-dashboard-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  min-width:0;
}
.cofh-dashboard-section-head h3{
  margin:2px 0 0!important;
  color:#10131a;
  font-size:18px!important;
  line-height:1.1!important;
}
.cofh-dashboard-section-head>a{
  flex:0 0 auto;
  color:#10131a!important;
  font-size:12px;
  font-weight:900;
  text-decoration:none!important;
  border-bottom:2px solid #ffd400;
}
.cofh-dashboard-communication-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  min-width:0;
}
.cofh-dashboard-communication{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:74px;
  padding:13px 14px 13px 17px;
  border:2px solid #111;
  background:#fff;
  color:#111!important;
  text-decoration:none!important;
  box-shadow:4px 4px 0 #ffd400;
  min-width:0;
}
.cofh-dashboard-communication::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:6px;
  background:#ffd400;
}
.cofh-dashboard-communication.requires-action{
  box-shadow:4px 4px 0 #e31b23;
}
.cofh-dashboard-communication.requires-action::before{background:#e31b23}
.cofh-dashboard-communication.is-waiting{
  background:#fffdf3;
  box-shadow:4px 4px 0 #ffd400;
}
.cofh-dashboard-communication__body{
  display:grid;
  gap:4px;
  min-width:0;
}
.cofh-dashboard-communication__body strong{
  display:block;
  font-size:13px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.cofh-dashboard-communication__body small{
  display:block;
  color:#555d68;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.cofh-dashboard-communication__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-width:max-content;
}
.cofh-dashboard-communication__action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  white-space:nowrap;
  min-height:34px;
  padding:8px 10px;
  background:#10131a;
  color:#fff!important;
  text-decoration:none!important;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.02em;
  box-sizing:border-box;
}
.cofh-dashboard-communication__read{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:34px;
  flex:0 0 36px;
  border:2px solid #10131a;
  background:#ffd400;
  color:#10131a!important;
  text-decoration:none!important;
  font-size:19px;
  font-weight:900;
  line-height:1;
  box-sizing:border-box;
}
.cofh-dashboard-communication__read:hover,
.cofh-dashboard-communication__read:focus-visible{
  background:#10131a;
  color:#ffd400!important;
  outline:2px solid #ffd400;
  outline-offset:2px;
}
.cofh-dashboard-communication.is-order-update{
  background:#fffdf3;
  box-shadow:4px 4px 0 #ffd400;
}
.cofh-dashboard-communication.is-order-update::before{background:#ffd400}
.cofh-dashboard-clear,
.cofh-dashboard-empty-orders{
  display:grid;
  gap:3px;
  padding:13px 15px;
  border:1px solid #b7dfc3;
  background:#f0fbf3;
  color:#173c22;
}
.cofh-dashboard-clear strong{font-size:13px}
.cofh-dashboard-clear span{font-size:11px}
.cofh-dashboard-orders-average{
  display:grid;
  grid-template-columns:minmax(190px,.55fr) minmax(260px,1fr);
  align-items:center;
  gap:18px;
  padding:14px 16px;
  border:2px solid #10131a;
  background:#10131a;
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:5px 5px 0 #ffd400;
}
.cofh-dashboard-orders-average>div:first-child{display:grid;gap:3px}
.cofh-dashboard-orders-average>div:first-child strong{font-size:14px}
.cofh-dashboard-orders-average>div:first-child small{color:#d8dde5;font-size:11px}
.cofh-dashboard-orders-average .cofh-account-progress{margin:0;color:#ffd400}
.cofh-dashboard-orders-average .cofh-account-progress__top{color:#fff;font-size:11px}
.cofh-dashboard-orders-average .cofh-account-progress__track{height:10px;background:#4b5058}
.cofh-dashboard-orders-average .cofh-account-progress__track>span{background:#ffd400!important}
.cofh-dashboard-order-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  min-width:0;
}
.cofh-dashboard-order{
  display:grid;
  gap:8px;
  min-width:0;
  padding:13px 14px;
  border:1px solid #cfd4dc;
  background:#fff;
  color:#111!important;
  text-decoration:none!important;
}
.cofh-dashboard-order:hover,
.cofh-dashboard-order:focus-visible{
  border-color:#111;
  box-shadow:3px 3px 0 #ffd400;
  outline:none;
}
.cofh-dashboard-order__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.cofh-dashboard-order__head>span:first-child{display:grid;gap:2px;min-width:0}
.cofh-dashboard-order__head strong{font-size:14px;line-height:1.15}
.cofh-dashboard-order__open{
  flex:0 0 auto;
  color:#111;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.cofh-dashboard-order .cofh-account-progress{margin:2px 0 0;color:#e31b23}
.cofh-dashboard-order .cofh-account-progress__top{font-size:11px}
.cofh-dashboard-order .cofh-account-progress__track{height:10px;border-radius:0;background:#e5e7eb}
.cofh-dashboard-order .cofh-account-progress__track>span{background:#e31b23!important;border-radius:0}

/* Centro notifiche: stessa gerarchia, senza accumulare vecchi stati ordine. */
.cofh-customer-notice-center>h2{margin-top:0!important;font-size:22px!important}
.cofh-customer-notice-list{gap:9px!important}
.cofh-customer-notice{
  border-radius:0!important;
  border:1px solid #ccd2da!important;
  box-shadow:3px 3px 0 #ffd400;
}
.cofh-customer-notice.is-unread{border-left:6px solid #ffd400!important;background:#fffdf3}
.cofh-customer-notice.requires-action{border-left-color:#e31b23!important;box-shadow:3px 3px 0 #e31b23}

@media(max-width:980px){
  .cofh-dashboard-communication-list,
  .cofh-dashboard-order-grid{grid-template-columns:1fr}
  .cofh-dashboard-orders-average{grid-template-columns:1fr;gap:10px}
}
@media(max-width:600px){
  body.woocommerce-account.logged-in .woocommerce-MyAccount-content:has(.cofh-account-dashboard-v41049){padding:14px!important}
  .cofh-dashboard-command-head{padding-bottom:11px}
  .cofh-dashboard-command-head h2{font-size:21px!important}
  .cofh-dashboard-section-head{align-items:flex-start;flex-direction:column;gap:6px}
  .cofh-dashboard-communication{grid-template-columns:1fr;gap:9px;padding:12px 12px 12px 16px}
  .cofh-dashboard-communication__actions{justify-content:flex-start;min-width:0;flex-wrap:wrap}
  .cofh-dashboard-communication__action{justify-self:start;white-space:normal}
  .cofh-dashboard-orders-average{padding:12px;box-shadow:4px 4px 0 #ffd400}
  .cofh-dashboard-order__head{flex-direction:column;gap:5px}
  .cofh-dashboard-order__open{white-space:normal}
  .cofh-customer-notice{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
  .cofh-customer-notice__action{white-space:normal!important}
}


/* v3.6.113 — Comunicazioni dashboard: archivio esplicito via busta. */
.cofh-dashboard-section-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.cofh-dashboard-section-links>a{
  color:#10131a!important;
  font-size:12px;
  font-weight:900;
  text-decoration:none!important;
  border-bottom:2px solid #ffd400;
}
.cofh-dashboard-read-all{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.cofh-dashboard-read-all>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:22px;
  border:1px solid #10131a;
  background:#ffd400;
  color:#10131a;
  font-size:14px;
  line-height:1;
  box-sizing:border-box;
}
.cofh-customer-notice.is-history{
  opacity:.82;
  box-shadow:none!important;
  background:#f7f7f8!important;
}
.cofh-customer-notice.is-history .cofh-customer-notice__action{
  color:#555d68;
}
@media(max-width:600px){
  .cofh-dashboard-section-links{justify-content:flex-start;gap:8px}
  .cofh-dashboard-section-links>a{font-size:11px}
}

/* v3.6.138 — THEME-OWNED FLOATING ACCOUNT NAVIGATION (mobile/tablet touch)
 * The theme owns the global My Account navigator. 040 only contributes its endpoint.
 */
.cx-account-mobile-float{display:none}
@media (max-width:920px){
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-mobile-float{
    display:inline-flex!important;position:fixed!important;
    top:var(--cx-account-float-y,82px)!important;left:12px!important;z-index:1800!important;
    align-items:center!important;justify-content:center!important;gap:8px!important;
    min-width:112px!important;height:42px!important;margin:0!important;padding:0 13px!important;
    border:1px solid #2b2f36!important;border-left:5px solid #ed1c24!important;border-radius:4px!important;
    background:#0b0d12!important;color:#fff!important;box-shadow:0 5px 16px rgba(0,0,0,.24)!important;
    font-size:11px!important;font-weight:950!important;line-height:1!important;letter-spacing:.04em!important;text-transform:uppercase!important;
    cursor:pointer!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;
  }
  @supports(top:max(1px,2px)){
    body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-mobile-float{
      top:max(var(--cx-account-float-y,82px),calc(env(safe-area-inset-top,0px) + 8px))!important;
    }
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-mobile-float[aria-expanded="true"]{
    background:#ed1c24!important;border-left-color:#ffd400!important;
  }
  .cx-account-mobile-float__menu{display:grid!important;gap:3px!important;width:17px!important;flex:0 0 17px!important}
  .cx-account-mobile-float__menu i{display:block!important;width:17px!important;height:2px!important;background:currentColor!important;border-radius:1px!important}
  .cx-account-mobile-float__label{display:block!important;white-space:nowrap!important}

  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce{
    display:block!important;grid-template-columns:none!important;grid-template-areas:none!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav{
    display:none!important;position:fixed!important;
    top:var(--cx-account-panel-y,132px)!important;left:12px!important;right:auto!important;bottom:auto!important;
    z-index:1790!important;width:min(340px,calc(100vw - 24px))!important;min-width:0!important;max-width:340px!important;
    max-height:calc(100vh - var(--cx-account-panel-y,132px) - 18px)!important;
    max-height:calc(100dvh - var(--cx-account-panel-y,132px) - env(safe-area-inset-bottom,0px) - 18px)!important;
    margin:0!important;padding:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
    background:#fff!important;border:2px solid #10131a!important;box-shadow:5px 6px 0 #ffd400!important;
  }
  @supports(top:max(1px,2px)){
    body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation,
    body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav{
      top:max(var(--cx-account-panel-y,132px),calc(env(safe-area-inset-top,0px) + 58px))!important;
    }
  }
  body.woocommerce-account.logged-in.cx-account-main-open .woocommerce-MyAccount-navigation{display:block!important}
  body.woocommerce-account.logged-in.cx-account-sub-open .cx-account-subnav{display:flex!important;flex-direction:column!important}

  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation ul{
    display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation li{
    display:block!important;width:100%!important;flex:0 0 auto!important;margin:0!important;border:0!important;border-bottom:1px solid #10131a!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation li:last-child{border-bottom:0!important}
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation .cx-account-macro button{
    display:flex!important;align-items:center!important;width:100%!important;min-height:48px!important;margin:0!important;padding:10px 14px!important;
    border:0!important;border-radius:0!important;background:#fff!important;color:#10131a!important;box-shadow:none!important;
    text-align:left!important;font-size:11px!important;font-weight:950!important;line-height:1.2!important;text-transform:uppercase!important;
    touch-action:manipulation!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation .cx-account-macro.is-active button,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation .cx-account-macro button:hover,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation .cx-account-macro button:focus-visible{
    background:#10131a!important;color:#fff!important;box-shadow:inset 6px 0 0 #ed1c24!important;outline:none!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-title,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-link{
    display:flex!important;align-items:center!important;flex:0 0 auto!important;width:100%!important;min-height:48px!important;margin:0!important;padding:10px 14px!important;
    border:0!important;border-radius:0!important;border-bottom:1px solid #10131a!important;box-shadow:none!important;
    font-size:11px!important;font-weight:950!important;line-height:1.2!important;text-transform:uppercase!important;white-space:normal!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-title{background:#10131a!important;color:#fff!important;box-shadow:inset 6px 0 0 #ed1c24!important}
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-link{background:#fff!important;color:#10131a!important;text-decoration:none!important}
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-link:last-child{border-bottom:0!important}
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-link.is-active,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-link:hover,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav-link:focus-visible{
    background:#10131a!important;color:#fff!important;box-shadow:inset 6px 0 0 #ed1c24!important;outline:none!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-content{
    display:block!important;width:100%!important;max-width:100%!important;margin:0!important;min-width:0!important;
  }
}

/* Safari iOS / Android / Firefox / Brave: larger touch target without changing visual grammar. */
@media (max-width:600px){
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-mobile-float{
    left:10px!important;height:44px!important;min-width:116px!important;padding-inline:13px!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav{
    left:10px!important;width:min(340px,calc(100vw - 20px))!important;
  }
}


/* v3.6.147 — MOBILE ACCOUNT / HEADER MENU ARBITRATION — MARKUS
 * Riserva una fascia reale sotto l'header per il controllo ACCOUNT.
 * Quando il menu principale o la ricerca mobile sono aperti, il navigatore Account
 * viene sospeso: nessuna collisione e nessun pannello Account puo' restare sopra l'header.
 */
@media (max-width:920px){
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-comic{
    padding-top:60px!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-mobile-float{
    z-index:900!important;
    transition:opacity .14s ease,visibility .14s ease!important;
  }
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .woocommerce-MyAccount-navigation,
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-subnav{
    z-index:890!important;
  }
  body.woocommerce-account.logged-in.cx-menu-open .cx-account-mobile-float,
  body.woocommerce-account.logged-in.cx-search-open .cx-account-mobile-float{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.woocommerce-account.logged-in.cx-menu-open .woocommerce-MyAccount-navigation,
  body.woocommerce-account.logged-in.cx-menu-open .cx-account-subnav,
  body.woocommerce-account.logged-in.cx-search-open .woocommerce-MyAccount-navigation,
  body.woocommerce-account.logged-in.cx-search-open .cx-account-subnav{
    display:none!important;
  }
}
@media (max-width:600px){
  body.woocommerce-account.logged-in.cx-account-mobile-nav-ready .cx-account-comic{
    padding-top:62px!important;
  }
}
