/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.2.2
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ── Font dichiarazioni globali (caricano su tutte le pagine, incluse WC template) ── */
@font-face {
    font-family: 'Net-campora';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('https://toromotori.it/wp-content/uploads/2026/05/FontsFree-Net-campora-black.woff2') format('woff2'),
         url('https://toromotori.it/wp-content/uploads/2026/05/FontsFree-Net-campora-black.woff') format('woff'),
         url('https://toromotori.it/wp-content/uploads/2026/05/FontsFree-Net-campora-black.ttf') format('truetype');
}

@font-face {
    font-family: 'Arkit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('https://toromotori.it/wp-content/uploads/2026/05/Arkit-Light.woff2') format('woff2'),
         url('https://toromotori.it/wp-content/uploads/2026/05/Arkit-Light.woff') format('woff'),
         url('https://toromotori.it/wp-content/uploads/2026/05/Arkit-Light.ttf') format('truetype');
}

/* ── WooCommerce cart toast ── */
body > .woocommerce-message {
    position: fixed !important;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    max-width: 270px;
    width: calc(100vw - 48px);
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background-color: #1e1e1d !important;
    color: #ffffff !important;
    border: none !important;
    border-top: none !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: tm-toast-in 0.32s cubic-bezier(0.16,1,0.3,1) forwards;
}
.tm-toast-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
body > .woocommerce-message::before {
    display: none !important;
    content: none !important;
}
.tm-toast-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background-color: #2D9B4A;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
}
.tm-toast-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}
.tm-toast-sub {
    font-size: 12px;
    color: #aaaaaa;
    padding-left: 28px;
}
body > .woocommerce-message a.button {
    display: block !important;
    margin-top: 10px !important;
    background-color: #f5ca36 !important;
    color: #1e1e1d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    text-align: center;
    border: none !important;
}
body > .woocommerce-message a.button:hover {
    background-color: #e8bc20 !important;
}
.tm-toast-undo {
    display: block !important;
    margin-top: 8px !important;
    padding-left: 28px;
    font-size: 12px !important;
    color: #f5ca36 !important;
    text-decoration: underline !important;
    cursor: pointer;
}
.tm-toast-undo:hover {
    color: #ffffff !important;
}
body > .woocommerce-message.tm-toast-hide {
    animation: tm-toast-out 0.28s ease forwards;
}
@keyframes tm-toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tm-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(20px); }
}

/* ── WooCommerce carrello vuoto ── */
.tm-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 40px 24px;
}
.tm-empty-cart__icon svg {
    width: 160px;
    height: auto;
    margin-bottom: 12px;
    opacity: 0.45;
}
.tm-empty-cart__title {
    font-family: 'Net-campora', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: #1e1e1d;
    margin: 0 0 16px;
    line-height: 1.2;
}
.tm-empty-cart__text {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 0 36px;
}
.tm-empty-cart__btn {
    font-family: 'Net-campora', sans-serif;
    display: inline-block;
    background-color: #1e1e1d;
    color: #f5ca36;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.tm-empty-cart__btn:hover {
    background-color: #333333;
    color: #f5ca36;
}
body.search-no-results .woocommerce-products-header,
body.search-no-results h1.entry-title,
body.search-no-results .page-title,
body.search-no-results .woocommerce-breadcrumb,
body.search-no-results nav.woocommerce-breadcrumb {
    display: none !important;
}
.tm-no-results .tm-empty-cart__icon svg {
    width: 120px;
    height: 120px;
}
.tm-no-results__wa {
    margin-top: 20px;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #666666;
}
.tm-no-results__wa a {
    color: #1e1e1d;
    font-weight: 700;
    text-decoration: underline;
}
.tm-no-results__wa a:hover {
    color: #f5ca36;
}

/* ── My Account ──────────────────────────────────────────────────────────── */

.tm-myaccount {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    padding: 40px 0;
}

/* Sidebar */
.tm-sidebar {
    background: #1e1e1d;
    border-radius: 16px;
    padding: 28px 20px;
    position: sticky;
    top: 100px;
}
.tm-sidebar__user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 20px;
}
.tm-sidebar__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5ca36;
    color: #1e1e1d;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tm-sidebar__name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}
.tm-sidebar__company {
    display: block;
    color: #aaaaaa;
    font-size: 12px;
    margin-top: 2px;
}
.tm-sidebar__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tm-sidebar__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: color .2s, background .2s;
}
.tm-sidebar__item a:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.tm-sidebar__item.is-active a {
    color: #f5ca36;
    font-weight: 700;
    border-left-color: #f5ca36;
    background: rgba(245,202,54,.08);
}

/* Dashboard content */
.tm-myaccount__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Welcome banner */
.tm-dashboard__welcome {
    background: #1e1e1d;
    border-radius: 16px;
    padding: 32px 36px;
    color: #fff;
}
.tm-dashboard__hello {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
}
.tm-dashboard__hello span {
    color: #f5ca36;
}
.tm-dashboard__welcome p {
    color: #aaaaaa;
    font-size: 14px;
    margin: 0;
    max-width: 500px;
}

/* 3 card rapide */
.tm-dashboard__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tm-dashboard__card {
    background: #fff;
    border: 1.5px solid #e5e0d8;
    border-radius: 14px;
    padding: 24px 20px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tm-dashboard__card:hover {
    border-color: #f5ca36;
    box-shadow: 0 4px 20px rgba(245,202,54,.12);
}
.tm-dashboard__card-icon {
    width: 48px;
    height: 48px;
    background: #fdf8ec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-dashboard__card-title {
    font-weight: 700;
    font-size: 15px;
    color: #1e1e1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tm-dashboard__card-title span {
    color: #f5ca36;
    font-size: 18px;
}
.tm-dashboard__card-body p {
    font-size: 13px;
    color: #666;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* Ultimi ordini */
.tm-dashboard__orders {
    background: #fff;
    border: 1.5px solid #e5e0d8;
    border-radius: 14px;
    padding: 24px 28px;
}
.tm-dashboard__orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.tm-dashboard__orders-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #1e1e1d;
    text-transform: uppercase;
}
.tm-dashboard__orders-all {
    font-size: 13px;
    font-weight: 600;
    color: #1e1e1d;
    text-decoration: none;
    border-bottom: 1px solid #1e1e1d;
}
.tm-dashboard__orders-all:hover { color: #f5ca36; border-color: #f5ca36; }
.tm-dashboard__orders-list {
    display: flex;
    flex-direction: column;
}
.tm-order-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto 24px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #f0ebe3;
    text-decoration: none;
    transition: background .15s;
}
.tm-order-row:hover { background: #fafaf8; }
.tm-order-row__number { font-weight: 700; font-size: 14px; color: #1e1e1d; }
.tm-order-row__meta { font-size: 13px; color: #666; }
.tm-order-row__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--status-color);
    background: color-mix(in srgb, var(--status-color) 12%, transparent);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.tm-order-row__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-color);
    flex-shrink: 0;
}
.tm-order-row__total { font-weight: 700; font-size: 14px; color: #1e1e1d; white-space: nowrap; }
.tm-order-row__arrow { color: #aaa; font-size: 20px; }
.tm-dashboard__no-orders { font-size: 14px; color: #666; padding: 12px 0; }
.tm-dashboard__no-orders a { color: #f5ca36; }

/* Banner assistenza */
.tm-dashboard__support {
    background: #1e1e1d;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.tm-dashboard__support-text h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}
.tm-dashboard__support-text p {
    color: #ffffff;
    font-size: 13px;
    margin: 0 0 8px;
    max-width: 420px;
}
.tm-dashboard__support-text small {
    color: #ffffff;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tm-dashboard__support-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.tm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, background .2s;
    white-space: nowrap;
}
.tm-btn--whatsapp { background: #25d366; color: #fff; }
.tm-btn--whatsapp:hover { background: #1ebe5a; color: #fff; }
.tm-btn--outline { border: 1.5px solid #f5ca36; color: #f5ca36; }
.tm-btn--outline:hover { background: rgba(245,202,54,.08); }

/* Responsive */
@media (max-width: 900px) {
    .tm-myaccount { grid-template-columns: 1fr; }
    .tm-sidebar { position: static; }
    .tm-dashboard__cards { grid-template-columns: 1fr; }
    .tm-dashboard__support { flex-direction: column; align-items: flex-start; }
    .tm-order-row { grid-template-columns: 70px 1fr auto; }
    .tm-order-row__total,
    .tm-order-row__arrow { display: none; }
}

/* ── Font Campora (titoli) ── */
.tm-dashboard__hello,
.tm-dashboard__card-title,
.tm-dashboard__orders-title,
.tm-dashboard__support-text h3,
.tm-sidebar__name,
.tm-dashboard__orders-all,
.tm-btn {
    font-family: 'Net-campora', sans-serif;
}

/* ── Font Arkit (testi) ── */
.tm-dashboard__welcome p,
.tm-dashboard__card-body p,
.tm-order-row__meta,
.tm-order-row__number,
.tm-order-row__total,
.tm-order-row__status,
.tm-dashboard__support-text p,
.tm-dashboard__support-text small,
.tm-dashboard__no-orders,
.tm-sidebar__company,
.tm-sidebar__item a {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Nessuna sottolineatura nei link dashboard ── */
.tm-dashboard__card,
.tm-dashboard__card *,
.tm-dashboard__orders-all,
.tm-order-row,
.tm-order-row *,
.tm-btn,
.tm-sidebar__item a {
    text-decoration: none !important;
}

/* ── WhatsApp button: testo sempre bianco ── */
.tm-btn--whatsapp,
.tm-btn--whatsapp:hover,
.tm-btn--whatsapp * {
    color: #ffffff !important;
}

/* ── Pagina Indirizzi ── */
.tm-address__intro {
    color: #666;
    font-size: 14px;
    margin: 0 0 28px;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
}
.tm-address__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.tm-address__card {
    background: #fff;
    border: 1.5px solid #e5e0d8;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tm-address__card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tm-address__icon {
    width: 44px;
    height: 44px;
    background: #fdf8ec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tm-address__title {
    font-family: 'Net-campora', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1e1e1d;
    margin: 0;
}
.tm-address__body { flex: 1; }
.tm-address__text {
    font-style: normal;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
}
.tm-address__empty {
    font-size: 14px;
    color: #aaa;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
}
.tm-address__edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #f5ca36;
    text-decoration: none !important;
    border: 1.5px solid #f5ca36;
    border-radius: 8px;
    padding: 9px 16px;
    transition: background .2s;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    align-self: flex-start;
}
.tm-address__edit-btn:hover { background: rgba(245,202,54,.08); color: #f5ca36; }
.tm-address__edit-btn span { font-size: 16px; }

@media (max-width: 600px) {
    .tm-address__grid { grid-template-columns: 1fr; }
}

/* ── Allineamento tabella ordini ── */
.tm-order-row {
    grid-template-columns: 72px 1fr 130px 100px 20px;
    column-gap: 12px;
}
.tm-order-row__number { font-family: 'Net-campora', sans-serif; }
.tm-order-row__status { justify-content: center; }
.tm-order-row__total { text-align: right; }
.tm-order-row__arrow { text-align: right; }

/* ── Dashboard: "Ciao" visibile su sfondo scuro ──────────────────────────── */
.tm-dashboard__hello {
    color: #ffffff !important;
}

/* ── Lost password: altezza minima contenuto ─────────────────────────────── */
.woocommerce-lost-password .woocommerce {
    min-height: 70vh;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MY ACCOUNT — Dettagli account (edit-account)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Label */
.woocommerce-EditAccountForm .form-row label {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    display: block;
}
.woocommerce-EditAccountForm .form-row label .required { color: #D93025; }

/* Input */
.woocommerce-EditAccountForm .input-text {
    font-family: 'Arkit', sans-serif !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1.5px solid #e2e2e2 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    outline: none !important;
}
.woocommerce-EditAccountForm .input-text:focus {
    border-color: #f5ca36 !important;
    box-shadow: 0 0 0 3px rgba(245,202,54,0.12) !important;
}

/* Nota "display name" in corsivo */
.woocommerce-EditAccountForm em {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Fieldset "Modifica password" */
.woocommerce-EditAccountForm fieldset {
    border: 1.5px solid #e2e2e2;
    border-radius: 12px;
    padding: 24px 24px 8px;
    margin: 24px 0 0;
}
.woocommerce-EditAccountForm fieldset legend {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 8px;
}

/* Bottone "Salva le modifiche" */
.woocommerce-EditAccountForm .button[name="save_account_details"] {
    font-family: 'Net-campora', sans-serif !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    background: #1a1a1a !important;
    color: #f5ca36 !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 14px 36px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-top: 8px;
}
.woocommerce-EditAccountForm .button[name="save_account_details"]:hover {
    background: #333 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MY ACCOUNT — Ordini
   ═══════════════════════════════════════════════════════════════════════════ */

/* Stato vuoto: rimuovi bordo blu WooCommerce, sostituisci con stile brand */
.tm-myaccount__content .woocommerce-info {
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    font-family: 'Arkit', sans-serif !important;
    font-size: 14px !important;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tm-myaccount__content .woocommerce-info::before,
.tm-myaccount__content .woocommerce-info::after {
    display: none !important;
}

/* Bottone "Sfoglia prodotti" dentro la notice */
.tm-myaccount__content .woocommerce-info .button {
    font-family: 'Net-campora', sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    background: #1a1a1a !important;
    color: #f5ca36 !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 10px 24px !important;
    margin-left: auto !important;
    white-space: nowrap;
    transition: background 0.2s !important;
    flex-shrink: 0;
}
.tm-myaccount__content .woocommerce-info .button:hover {
    background: #333 !important;
}

/* Tabella ordini (quando ci sono ordini) */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
}
.woocommerce-orders-table thead th {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    padding: 0 16px 14px;
    border-bottom: 1.5px solid #e2e2e2;
    text-align: left;
}
.woocommerce-orders-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.woocommerce-orders-table tbody tr:hover { background: #fafaf8; }
.woocommerce-orders-table tbody td,
.woocommerce-orders-table tbody th {
    padding: 14px 16px;
    color: #1a1a1a;
    vertical-align: middle;
}
/* Numero ordine */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-family: 'Net-campora', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}
.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
    color: #f5ca36;
}
/* Totale in mono */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
}
/* Bottoni azioni (Visualizza, ecc.) */
.woocommerce-orders-table .button {
    font-family: 'Net-campora', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: #1a1a1a !important;
    color: #f5ca36 !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 7px 18px !important;
    transition: background 0.2s !important;
}
.woocommerce-orders-table .button:hover {
    background: #333 !important;
}
/* Gap tra bottoni nella riga azioni (Visualizza / Recedi) */
.woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.woocommerce-orders-table__cell-order-actions .button {
    margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MY ACCOUNT — Dettaglio ordine (view-order)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Status header card */
.tm-vo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 22px;
}
.tm-vo-header__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tm-vo-number {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #888;
}
.tm-vo-number strong {
    font-family: 'Net-campora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1e1e1d;
    margin-left: 4px;
}
.tm-vo-date {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    color: #aaa;
    margin-top: 1px;
}
/* Status badge - default: completato (verde) */
.tm-vo-status {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
    flex-shrink: 0;
}
.tm-vo-status--processing { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.tm-vo-status--pending,
.tm-vo-status--on-hold    { background: #fefce8; color: #ca8a04; border-color: #fde68a; }
.tm-vo-status--cancelled,
.tm-vo-status--failed,
.tm-vo-status--refunded   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Order notes */
.tm-vo-notes {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 22px;
}
.tm-vo-notes__title {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin: 0 0 12px;
}
.tm-vo-notes__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tm-vo-notes__list .woocommerce-OrderUpdate {
    border-left: 3px solid #f5ca36;
    padding: 8px 14px;
    background: #f4f8f4;
    border-radius: 0 8px 8px 0;
    list-style: none;
}
.tm-vo-note__time {
    display: block;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}
.tm-vo-note__text p {
    margin: 0;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #555;
}

/* Order details - section title */
.tm-myaccount__content .woocommerce-order-details__title {
    font-family: 'Net-campora', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1e1e1d;
    margin: 0 0 14px;
}

/* Order details table */
.tm-myaccount__content .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #1e1e1d;
}
.tm-myaccount__content .woocommerce-table--order-details thead th {
    background: #1e1e1d;
    color: #fff;
    padding: 12px 18px;
    text-align: left;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.tm-myaccount__content .woocommerce-table--order-details tbody td,
.tm-myaccount__content .woocommerce-table--order-details tbody th {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.tm-myaccount__content .woocommerce-table--order-details tbody tr:last-child td,
.tm-myaccount__content .woocommerce-table--order-details tbody tr:last-child th {
    border-bottom: none;
}
/* Totals rows */
.tm-myaccount__content .woocommerce-table--order-details tfoot th,
.tm-myaccount__content .woocommerce-table--order-details tfoot td {
    padding: 9px 18px;
    border-top: 1px solid #f0f0f0;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #555;
}
/* Totale finale */
.tm-myaccount__content .woocommerce-table--order-details tfoot .order-total th,
.tm-myaccount__content .woocommerce-table--order-details tfoot .order-total td {
    font-family: 'Net-campora', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1e1d;
    border-top: 2px solid #e5e7eb;
    padding-top: 12px;
}
/* Importi in monospace */
.tm-myaccount__content .woocommerce-table--order-details .woocommerce-Price-amount {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
}
.tm-myaccount__content .woocommerce-table--order-details tfoot .order-total .woocommerce-Price-amount {
    font-size: 15px;
}

/* Azioni (Actions) row */
.tm-myaccount__content .woocommerce-table--order-details .order-actions--heading {
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
    vertical-align: middle;
    padding: 12px 18px;
}
/* Bottone "Recedi dal contratto qui" - border/outline */
.tm-myaccount__content .woocommerce-table--order-details .order-actions-button.recesso {
    display: inline-block;
    font-family: 'Arkit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
    border: 1.5px solid #1e1e1d !important;
    color: #1e1e1d !important;
    background: transparent !important;
    border-radius: 100px !important;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s !important;
    box-shadow: none !important;
}
.tm-myaccount__content .woocommerce-table--order-details .order-actions-button.recesso:hover {
    background: #f5ca36 !important;
    border-color: #f5ca36 !important;
    color: #1e1e1d !important;
}
/* Bottone "Ordina di nuovo" - filled dark */
.tm-myaccount__content .woocommerce-table--order-details .order-actions-button.order-again {
    display: inline-block;
    font-family: 'Net-campora', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 7px 18px !important;
    background: #1e1e1d !important;
    color: #f5ca36 !important;
    border: none !important;
    border-radius: 100px !important;
    text-decoration: none;
    margin-right: 8px;
    transition: background 0.2s !important;
    box-shadow: none !important;
}
.tm-myaccount__content .woocommerce-table--order-details .order-actions-button.order-again:hover {
    background: #333 !important;
    color: #f5ca36 !important;
}

/* Bottone "Ordina di nuovo" - <p class="order-again"><a class="button"> */
.tm-myaccount__content .woocommerce-order-details p.order-again {
    margin: 8px 0 0;
}
.tm-myaccount__content .woocommerce-order-details p.order-again a.button {
    display: inline-block;
    font-family: 'Net-campora', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    background: #1e1e1d !important;
    color: #f5ca36 !important;
    border: none !important;
    border-radius: 100px !important;
    text-decoration: none;
    transition: background 0.2s !important;
    box-shadow: none !important;
}
.tm-myaccount__content .woocommerce-order-details p.order-again a.button:hover {
    background: #333 !important;
    color: #f5ca36 !important;
}

/* Indirizzo di fatturazione / spedizione */
.tm-myaccount__content .woocommerce-customer-details {
    margin-top: 4px;
}
.tm-myaccount__content .woocommerce-customer-details .woocommerce-column__title {
    font-family: 'Net-campora', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1e1e1d;
    margin: 0 0 12px;
}
.tm-myaccount__content .woocommerce-customer-details .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tm-myaccount__content .woocommerce-customer-details address {
    background: #f4f8f4;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-size: 13px;
    line-height: 1.9;
    color: #444;
    margin: 0;
}
.tm-myaccount__content .woocommerce-customer-details p {
    margin: 0;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #555;
}

/* Sezione senza address (solo billing, no col2-set) */
.tm-myaccount__content .woocommerce-customer-details > .woocommerce-column__title {
    font-family: 'Net-campora', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1e1e1d;
    margin: 0 0 12px;
}
.tm-myaccount__content .woocommerce-customer-details > address {
    background: #f4f8f4;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'Arkit', 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-size: 13px;
    line-height: 1.9;
    color: #444;
    margin: 0;
}

/* Nascondi sezione indirizzi nella pagina dettaglio ordine (ridondante) */
.woocommerce-view-order .woocommerce-customer-details {
    display: none !important;
}

/* Checkout order card — rimuove bordo doppio (card + table) */
.tm-order-card .woocommerce-checkout-review-order-table {
    border: none !important;
    border-radius: 0 !important;
}

/* Privacy Policy checkout checkbox */
#upm_wc_privacy_field {
    width: 100% !important;
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#upm_wc_privacy_field label {
    width: 100% !important;
}
#upm_wc_privacy_field label > span {
    flex: 1;
    min-width: 0;
}
#upm_wc_privacy_field input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--color-primary, #f5ca36);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────
   PERFORMANCE — Animazione pulse composite
   box-shadow causa paint non-composite (PageSpeed warning).
   Override: usa transform+opacity su ::after (solo compositor GPU).
   ──────────────────────────────────────────────────────────── */
.pulse-box,
.pulse {
    position: relative;
    animation: none !important;
}
.pulse-box::after,
.pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid rgba(245, 202, 54, 0.7);
    animation: tm-pulse-composite 2s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}
@keyframes tm-pulse-composite {
    0%, 100% { transform: scale(1); opacity: 0; }
    25%       { opacity: 0.9; }
    50%       { transform: scale(1.05); opacity: 0; }
}

/* Responsive */
@media (max-width: 640px) {
    .tm-vo-header { flex-direction: column; align-items: flex-start; }
    .tm-myaccount__content .woocommerce-customer-details .col2-set {
        grid-template-columns: 1fr;
    }
}

/* ── Breadcrumb custom (globale — usata anche su archivio prodotti via shortcode [tm_breadcrumb]) ── */
.tm-breadcrumb-bar {
    background: #f5ca36;
    width: 100%;
}
.tm-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-family: 'Net-campora', sans-serif; font-size: 15px;
    color: #1e1e1d; padding: 11px 40px 11px 0; flex-wrap: wrap;
    max-width: 1280px; margin: 0 auto;
}
.tm-breadcrumb a { color: #1e1e1d; text-decoration: none; font-weight: 600; transition: color .15s; }
.tm-breadcrumb a:hover { color: #000; }
.tm-breadcrumb .sep { color: rgba(0,0,0,.35); }
@media (max-width: 640px) { .tm-breadcrumb { padding: 10px 20px 10px 0; } }
