/* Paydea Coupon Hub — Area Azienda (design system TK, accent viola coupon) */
.tk-pch-wrap {
    --tk-navy: #0f172a; --tk-navy-2: #1e293b; --tk-navy-3: #334155; --tk-navy-light: #e8eef7;
    --tk-accent: #7c3aed; --tk-accent-d: #6d28d9; --tk-accent-l: #ede9fe; --tk-accent-ll: #f5f3ff;
    --tk-green: #10b981; --tk-green-l: #d1fae5; --tk-green-d: #065f46;
    --tk-amber: #f59e0b; --tk-amber-l: #fef3c7; --tk-amber-d: #92400e;
    --tk-red: #ef4444; --tk-red-l: #fee2e2; --tk-red-d: #991b1b;
    --tk-blue: #3b82f6; --tk-blue-l: #dbeafe;
    --tk-gray-50: #f8fafc; --tk-gray-100: #f1f5f9; --tk-gray-200: #e2e8f0; --tk-gray-300: #cbd5e1;
    --tk-gray-500: #475569; --tk-gray-700: #334155; --tk-gray-900: #0f172a; --tk-white: #fff;
    --tk-radius: 10px; --tk-radius-sm: 6px;
    --tk-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --tk-shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --tk-transition: all .18s cubic-bezier(.4,0,.2,1);
    max-width: 100%; color: var(--tk-navy); font-size: 14px;
}
.tk-pch-wrap * { box-sizing: border-box; }

/* Header bar */
.tk-pch-header-bar {
    background: linear-gradient(135deg, var(--tk-navy) 0%, var(--tk-navy-2) 60%, var(--tk-navy-3) 100%);
    border-radius: var(--tk-radius) var(--tk-radius) 0 0;
    padding: 22px 28px; display: flex; align-items: center; justify-content: space-between;
}
.tk-pch-header-left { display: flex; align-items: center; gap: 16px; }
.tk-pch-header-icon {
    width: 44px; height: 44px; font-size: 22px; align-self: center;
    background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.tk-pch-header-bar h1 { color: #fff; font-size: 20px; font-weight: 700; margin: 0; }
.tk-pch-version { color: var(--tk-gray-300); font-size: 12px; font-weight: 500; }
.tk-pch-subtitle { color: var(--tk-gray-300); font-size: 13px; margin-top: 2px; }
.tk-pch-pill {
    display: inline-block; align-self: center; padding: 3px 12px; border-radius: 50px;
    background: var(--tk-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px;
    white-space: nowrap;
}

/* Tabs toolbar con emoji, accent border-bottom */
.tk-pch-tabs { display: flex; gap: 4px; background: #fff; border-bottom: 1px solid var(--tk-gray-200); padding: 0 12px; flex-wrap: wrap; }
.tk-pch-tab { padding: 14px 18px; text-decoration: none; color: var(--tk-gray-500); font-weight: 600; border-bottom: 3px solid transparent; }
.tk-pch-tab:hover { color: var(--tk-navy); }
.tk-pch-tab.active { color: var(--tk-accent-d); border-bottom-color: var(--tk-accent); }

/* Body layout: main + sidebar */
.tk-pch-body { display: flex; gap: 20px; align-items: flex-start; background: var(--tk-gray-50); padding: 20px; }
.tk-pch-main { flex: 1; min-width: 0; }
.tk-pch-sidebar { width: 280px; flex-shrink: 0; }

/* Card */
.tk-pch-card { background: #fff; border: 1px solid var(--tk-gray-200); border-radius: var(--tk-radius); padding: 24px 28px; margin-bottom: 20px; box-shadow: var(--tk-shadow); }
/* !important: dentro "Il mio account" il tema ha .woocommerce-account h2 e
   .woocommerce-MyAccount-content h2 (28px, verde acqua) che vincono per
   specificità sul nostro titolo di card. */
.tk-pch-wrap .tk-pch-card h2,
.tk-pch-wrap .tk-pch-step h2 {
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: var(--tk-navy) !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--tk-gray-100) !important;
}
.tk-pch-wrap .tk-pch-step h2 { border-bottom: 0 !important; }

/* Notices */
.tk-pch-notice { padding: 12px 18px; border-radius: var(--tk-radius-sm); margin: 16px 20px 0; font-weight: 600; }
.tk-pch-notice-ok { background: var(--tk-green-l); color: var(--tk-green-d); }
.tk-pch-notice-err { background: var(--tk-red-l); color: var(--tk-red-d); }

/* Stat boxes */
.tk-pch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.tk-pch-stat { background: #fff; border: 1px solid var(--tk-gray-200); border-left: 4px solid var(--tk-gray-300); border-radius: var(--tk-radius); padding: 18px 20px; box-shadow: var(--tk-shadow); display: flex; flex-direction: column; }
.tk-pch-stat .n { font-size: 26px; font-weight: 800; color: var(--tk-navy); line-height: 1.1; }
.tk-pch-stat .l { font-size: 12px; color: var(--tk-gray-500); text-transform: uppercase; letter-spacing: .4px; margin-top: 6px; }
.tk-pch-stat.b-blue { border-left-color: var(--tk-blue); }
.tk-pch-stat.b-green { border-left-color: var(--tk-green); }
.tk-pch-stat.b-amber { border-left-color: var(--tk-amber); }
.tk-pch-stat.b-red { border-left-color: var(--tk-red); }

/* Key-value list */
.tk-pch-kv { list-style: none; margin: 0 0 16px; padding: 0; }
.tk-pch-kv li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--tk-gray-100); }
.tk-pch-kv li span { color: var(--tk-gray-500); }

/* Table */
.tk-pch-table { width: 100%; border-collapse: collapse; }
.tk-pch-table th { background: var(--tk-navy); color: #fff; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; padding: 10px 12px; text-align: left; }
.tk-pch-table td { padding: 12px; border-bottom: 1px solid var(--tk-gray-100); }
.tk-pch-table tr:nth-child(even) td { background: var(--tk-gray-50); }
.tk-pch-table tr:hover td { background: var(--tk-accent-ll); }
.tk-pch-table code { background: var(--tk-gray-100); padding: 2px 8px; border-radius: 4px; font-weight: 700; letter-spacing: 1px; }

/* Badge */
.tk-pch-badge { display: inline-flex; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tk-pch-badge.b-green { background: var(--tk-green-l); color: var(--tk-green-d); }
.tk-pch-badge.b-amber { background: var(--tk-amber-l); color: var(--tk-amber-d); }
.tk-pch-badge.b-red { background: var(--tk-red-l); color: var(--tk-red-d); }
.tk-pch-badge.b-gray { background: var(--tk-gray-100); color: var(--tk-gray-500); }

/* Buttons — !important per vincere gli override dei bottoni del tema (Kadence) */
.tk-pch-wrap .tk-pch-btn-navy,
.tk-pch-wrap a.tk-pch-btn-navy,
.tk-pch-wrap button.tk-pch-btn-navy {
    display: inline-block; background: var(--tk-navy) !important; color: #fff !important;
    border-radius: 6px !important; font-weight: 700; padding: 10px 20px; border: 0 !important;
    cursor: pointer; text-decoration: none; box-shadow: none !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-btn-navy:hover,
.tk-pch-wrap a.tk-pch-btn-navy:hover,
.tk-pch-wrap button.tk-pch-btn-navy:hover { background: var(--tk-accent) !important; color: #fff !important; }

.tk-pch-wrap .tk-pch-btn-secondary,
.tk-pch-wrap a.tk-pch-btn-secondary,
.tk-pch-wrap button.tk-pch-btn-secondary {
    display: inline-block; background: var(--tk-gray-100) !important; color: var(--tk-navy) !important;
    border-radius: 6px !important; font-weight: 700; padding: 10px 20px; border: 1px solid var(--tk-gray-200) !important;
    cursor: pointer; text-decoration: none; box-shadow: none !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-btn-secondary:hover,
.tk-pch-wrap a.tk-pch-btn-secondary:hover,
.tk-pch-wrap button.tk-pch-btn-secondary:hover { background: var(--tk-accent-ll) !important; color: var(--tk-accent-d) !important; border-color: var(--tk-accent-l) !important; }

.tk-pch-wrap .tk-pch-btn-danger,
.tk-pch-wrap a.tk-pch-btn-danger,
.tk-pch-wrap button.tk-pch-btn-danger {
    display: inline-block; background: var(--tk-red-l) !important; color: var(--tk-red-d) !important;
    border-radius: 6px !important; font-weight: 700; padding: 10px 20px; border: 1px solid #fecaca !important;
    cursor: pointer; text-decoration: none; box-shadow: none !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-btn-danger:hover,
.tk-pch-wrap a.tk-pch-btn-danger:hover,
.tk-pch-wrap button.tk-pch-btn-danger:hover { background: var(--tk-red) !important; color: #fff !important; border-color: var(--tk-red) !important; }

.tk-pch-btn-sm { padding: 6px 10px !important; font-size: 12px; white-space: nowrap; }
/* I bottoni della colonna Azioni restano in riga: il nowrap sulla cella fa sì
   che la tabella le assegni la larghezza necessaria invece di mandarli a capo. */
.tk-pch-actions { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.tk-pch-table td:last-child { white-space: nowrap; }
/* Colonne corte tutte su una riga sola: va a capo solo il titolo del coupon. */
.tk-pch-table th,
.tk-pch-table td[data-label="Codice"],
.tk-pch-table td[data-label="Categoria"],
.tk-pch-table td[data-label="Sconto"],
.tk-pch-table td[data-label="Utilizzi"],
.tk-pch-table td[data-label="Stato"],
.tk-pch-table td[data-label="Brand"],
.tk-pch-table td[data-label="P.IVA"],
.tk-pch-table td[data-label="Coupon"] { white-space: nowrap; }
.tk-pch-wrap .tk-pch-btn-contact {
    display: block; width: 100%; text-align: center; background: var(--tk-navy) !important; color: #fff !important;
    border-radius: 8px !important; font-weight: 700; padding: 14px; text-decoration: none; margin-top: 8px; border: 0 !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-btn-contact:hover { background: var(--tk-accent) !important; color: #fff !important; }

/* Form fields */
.tk-pch-field { display: block; margin-bottom: 18px; }
.tk-pch-field > span { display: block; font-weight: 600; margin-bottom: 6px; color: var(--tk-navy); }
.tk-pch-field em { color: var(--tk-gray-500); font-style: normal; font-weight: 400; font-size: 12px; }
.tk-pch-field small { display: block; color: var(--tk-gray-500); font-size: 12px; margin-top: 4px; }
.tk-pch-input, .tk-pch-select, .tk-pch-wrap textarea.tk-pch-input {
    width: 100%; border-radius: 6px; border: 1px solid var(--tk-gray-300);
    padding: 8px 14px; font-size: 14px;
    color: var(--tk-navy) !important;      /* testo scuro, non ereditare il teal del tema */
    background: #fff !important;
}
.tk-pch-input::placeholder, .tk-pch-wrap textarea.tk-pch-input::placeholder { color: #94a3b8 !important; opacity: 1; }
.tk-pch-input:focus, .tk-pch-select:focus { outline: 0; border-color: var(--tk-accent); box-shadow: 0 0 0 3px var(--tk-accent-l); }
/* Testo di aiuto sotto i campi: grigio leggibile, mai il colore link del tema. */
.tk-pch-wrap .tk-pch-field small { color: var(--tk-gray-500) !important; }
.tk-pch-code-row .tk-pch-code { color: var(--tk-navy) !important; }
.tk-pch-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.tk-pch-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tk-pch-code-row { display: flex; gap: 8px; }
.tk-pch-code-row .tk-pch-input { font-family: monospace; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }

/* Radio cards (tipo sconto) */
.tk-pch-radio-cards { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tk-pch-radio-card { flex: 1; min-width: 200px; border: 2px solid var(--tk-gray-200); border-radius: var(--tk-radius); padding: 16px 18px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tk-pch-radio-card:has(input:checked) { border-color: var(--tk-accent); background: var(--tk-accent-ll); }
.tk-pch-radio-card input { accent-color: var(--tk-accent); }

/* Wizard */
.tk-pch-steps-nav { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tk-pch-steps-nav .dot { font-size: 12px; font-weight: 700; color: var(--tk-gray-500); background: var(--tk-gray-100); padding: 6px 12px; border-radius: 50px; cursor: pointer; }
.tk-pch-steps-nav .dot.active { background: var(--tk-accent); color: #fff; }
.tk-pch-steps-nav .dot.done { background: var(--tk-green-l); color: var(--tk-green-d); }
.tk-pch-step { border: 0; padding: 0; margin: 0; }
.tk-pch-wizard-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--tk-gray-100); }
/* Il tema forza display sui button ignorando [hidden]: lo ripristiniamo. */
.tk-pch-wizard [hidden], .tk-pch-step[hidden] { display: none !important; }
.tk-pch-summary { background: var(--tk-gray-50); border-radius: var(--tk-radius-sm); padding: 16px; }
.tk-pch-summary .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--tk-gray-200); }
.tk-pch-summary .row:last-child { border-bottom: 0; }
.tk-pch-summary .row span { color: var(--tk-gray-500); }
.tk-pch-summary .row strong { color: var(--tk-navy); }

/* Sidebar */
.tk-pch-created { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--tk-gray-500); text-transform: uppercase; }
.tk-pch-brand { font-size: 20px; font-weight: 800; color: var(--tk-navy); margin: 4px 0 12px; }

/* Selettore prodotti (wizard step 3) */
.tk-pch-prod-results { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; max-height: 320px; overflow-y: auto; }
.tk-pch-prod-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--tk-gray-200); border-radius: var(--tk-radius-sm); background: #fff; }
.tk-pch-prod-row img, .tk-pch-prod-noimg { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--tk-gray-100); flex-shrink: 0; }
.tk-pch-prod-info { flex: 1; min-width: 0; }
.tk-pch-prod-name { font-weight: 600; color: var(--tk-navy); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-pch-prod-meta { font-size: 12px; color: var(--tk-gray-500); }
.tk-pch-prod-add { background: var(--tk-accent); color: #fff; border: 0; border-radius: 6px; font-weight: 700; font-size: 12px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.tk-pch-prod-add:hover { background: var(--tk-accent-d); }
.tk-pch-prod-add:disabled { background: var(--tk-green); cursor: default; opacity: .8; }
.tk-pch-prod-selected-wrap { border-top: 1px solid var(--tk-gray-100); padding-top: 14px; }
.tk-pch-prod-selected-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--tk-gray-500); margin-bottom: 10px; }
.tk-pch-prod-selected { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-pch-prod-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tk-accent-ll); color: var(--tk-accent-d); border: 1px solid var(--tk-accent-l); border-radius: 50px; padding: 5px 6px 5px 14px; font-size: 13px; font-weight: 600; }
.tk-pch-prod-rm { background: var(--tk-accent); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: 14px; }
.tk-pch-prod-empty { color: var(--tk-gray-500); font-size: 13px; padding: 8px 0; }

/* Menu a tendina negozi abilitati (wizard step 3) */
.tk-pch-dd { position: relative; }
.tk-pch-wrap .tk-pch-dd-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: #fff !important; color: var(--tk-navy) !important; border: 1px solid var(--tk-gray-300) !important; border-radius: var(--tk-radius-sm) !important; padding: 9px 14px !important; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; box-shadow: none !important; }
.tk-pch-wrap .tk-pch-dd-toggle:hover { border-color: var(--tk-accent) !important; }
.tk-pch-dd-caret { color: var(--tk-gray-500); font-size: 12px; }
.tk-pch-dd-panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--tk-gray-200); border-radius: var(--tk-radius-sm); box-shadow: var(--tk-shadow-md); overflow: hidden; }
.tk-pch-dd-tools { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--tk-gray-100); background: var(--tk-gray-50); }
.tk-pch-wrap .tk-pch-dd-mini { background: #fff !important; color: var(--tk-navy) !important; border: 1px solid var(--tk-gray-200) !important; border-radius: 50px !important; font-size: 11px; font-weight: 700; padding: 4px 12px !important; cursor: pointer; box-shadow: none !important; }
.tk-pch-wrap .tk-pch-dd-mini:hover { border-color: var(--tk-accent) !important; color: var(--tk-accent-d) !important; }
.tk-pch-dd-list { max-height: 260px; overflow-y: auto; padding: 6px; }
.tk-pch-dd-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--tk-radius-sm); cursor: pointer; }
.tk-pch-dd-item:hover { background: var(--tk-accent-ll); }
.tk-pch-dd-item input { margin: 0; flex: 0 0 auto; }
.tk-pch-dd-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--tk-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-pch-dd-count { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--tk-accent-d); background: var(--tk-accent-l); border-radius: 50px; padding: 2px 8px; }

/* ===== Archivio pubblico coupon ===== */
.tk-pch-public { padding: 0; }

/* Chip filtri categoria — una riga scrollabile (no wrap, no scrollbar, no frecce) */
.tk-pch-cat-filter { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.tk-pch-cat-filter::-webkit-scrollbar { display: none; }
.tk-pch-chip { flex: 0 0 auto; display: inline-block; padding: 7px 16px; border-radius: 50px; background: #fff; border: 1px solid var(--tk-gray-200); color: var(--tk-gray-700); font-size: 13px; font-weight: 600; text-decoration: none; transition: var(--tk-transition); white-space: nowrap; }
.tk-pch-chip:hover { border-color: var(--tk-accent); color: var(--tk-accent-d); }
.tk-pch-chip.active { background: var(--tk-accent); border-color: var(--tk-accent); color: #fff; }

/* Griglia coupon */
.tk-pch-coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; align-items: start; }

/* ===== Card coupon = BIGLIETTO =====
   Colori presi dalle opzioni di /offerte/ (variabili --tkpch-* messe inline
   sulla griglia), così la vetrina coupon segue la stessa palette. */
.tk-pch-ticket {
    --tkt-bg: var(--tkpch-bg, #7c3aed);
    --tkt-btn: var(--tkpch-btn, #5b21b6);
    --tkt-btn-tx: var(--tkpch-btn-tx, #fff);
    --tkt-radius: var(--tkpch-radius, 20px);
    --tkt-cut: 152px;   /* altezza della testata = dove passa il tratteggio */
    --tkt-notch: 16px;  /* raggio delle tacche laterali */
    /* Dentini sopra/sotto della STESSA misura delle tacche laterali. */
    --tkt-tooth: var(--tkt-notch);
    --tkt-step: 42px;   /* passo: dentini STACCATI, con il bordo piatto in mezzo */

    position: relative;
    background: var(--tkt-bg);
    color: #fff;
    border-radius: var(--tkt-radius);
    display: flex;
    flex-direction: column;
    transition: var(--tk-transition);

    /* Sagoma del biglietto: quattro maschere in INTERSEZIONE — le due tacche
       laterali e le due file di dentini (sopra e sotto). In intersezione ogni
       livello può solo togliere, quindi i tagli si sommano davvero; con la
       composizione predefinita (unione) si annullerebbero a vicenda.
       Tagli veri, non finti: restano trasparenti su qualsiasi sfondo. */
    --tkt-m-l: radial-gradient(circle var(--tkt-notch) at 0 var(--tkt-cut), #0000 98%, #000 100%);
    --tkt-m-r: radial-gradient(circle var(--tkt-notch) at 100% var(--tkt-cut), #0000 98%, #000 100%);
    --tkt-m-t: radial-gradient(circle var(--tkt-tooth) at 50% 0, #0000 98%, #000 100%);
    --tkt-m-b: radial-gradient(circle var(--tkt-tooth) at 50% 100%, #0000 98%, #000 100%);

    -webkit-mask-image: var(--tkt-m-l), var(--tkt-m-r), var(--tkt-m-t), var(--tkt-m-b);
    -webkit-mask-size: 100% 100%, 100% 100%, var(--tkt-step) 100%, var(--tkt-step) 100%;
    -webkit-mask-repeat: no-repeat, no-repeat, round, round;
    -webkit-mask-composite: source-in, source-in, source-in;

    mask-image: var(--tkt-m-l), var(--tkt-m-r), var(--tkt-m-t), var(--tkt-m-b);
    mask-size: 100% 100%, 100% 100%, var(--tkt-step) 100%, var(--tkt-step) 100%;
    mask-repeat: no-repeat, no-repeat, round, round;
    mask-composite: intersect;
}
.tk-pch-ticket:hover { transform: translateY(-3px); }

/* Testata: cerchio bianco con il logo dell'azienda + linea tratteggiata */
.tk-pch-ticket-head {
    position: relative; height: var(--tkt-cut);
    display: flex; align-items: center; justify-content: center;
}
.tk-pch-ticket-head::after {
    content: ''; position: absolute; left: 26px; right: 26px; bottom: 0;
    border-top: 2px dashed rgba(255, 255, 255, .75);
}
.tk-pch-ticket-logo {
    width: 112px; height: 112px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 14px;
    box-sizing: border-box; overflow: hidden;
}
.tk-pch-ticket-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tk-pch-ticket-logo span { font-size: 44px; font-weight: 800; color: var(--tkt-bg); line-height: 1; }

/* Corpo */
.tk-pch-ticket-body { flex: 1; display: flex; flex-direction: column; padding: 18px 22px 22px; text-align: center; }
.tk-pch-wrap .tk-pch-ticket-desc { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .92); margin: 0 0 16px; }
.tk-pch-ticket-off { margin-bottom: 14px; }
.tk-pch-ticket-off span { display: block; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; }
.tk-pch-ticket-off strong { display: block; font-size: 46px; font-weight: 800; line-height: 1.05; }
.tk-pch-ticket-min {
    align-self: center; font-size: 12px; font-weight: 700; padding: 4px 14px; margin-bottom: 14px;
    background: rgba(255, 255, 255, .18); border-radius: 50px;
}
.tk-pch-ticket-foot { margin-top: auto; }
.tk-pch-ticket-code {
    background: rgba(255, 255, 255, .26); border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50px; padding: 10px 14px; margin-bottom: 10px;
    font-family: monospace; font-size: 15px; font-weight: 700; letter-spacing: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tk-pch-public .tk-pch-ticket-btn,
.tk-pch-public button.tk-pch-ticket-btn {
    display: block; width: 100%; border: 0 !important; cursor: pointer;
    background: var(--tkt-btn) !important; color: var(--tkt-btn-tx) !important;
    border-radius: 50px !important; padding: 12px 16px !important;
    font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: none !important; transition: var(--tk-transition);
}
.tk-pch-public .tk-pch-ticket-btn:hover { filter: brightness(1.12); color: var(--tkt-btn-tx) !important; }
.tk-pch-ticket-exp { font-size: 11px; color: rgba(255, 255, 255, .85); margin-top: 10px; }

/* ===== Accesso Area Azienda (email + password in pagina) ===== */
.tk-pch-login {
    max-width: 480px; margin: 40px auto; background: #fff;
    border: 1px solid var(--tk-gray-200); border-radius: var(--tk-radius);
    padding: 0; overflow: hidden; box-shadow: var(--tk-shadow-md);
}
/* Banda navy in testa: il logo del sito è bianco, qui si vede. */
.tk-pch-login-head {
    background: linear-gradient(135deg, var(--tk-navy) 0%, var(--tk-navy-2) 60%, var(--tk-navy-3) 100%);
    text-align: center; padding: 30px 32px 26px;
}
.tk-pch-login-logo { display: block; margin: 0 auto 18px; max-width: 190px; width: auto; height: 44px; object-fit: contain; }
.tk-pch-login-head .tk-pch-header-icon { margin: 0 auto 16px; }
.tk-pch-login-head h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: #fff; }
.tk-pch-wrap .tk-pch-login-head p { margin: 0; font-size: 13px; color: var(--tk-gray-300); line-height: 1.55; }
.tk-pch-login-body { padding: 28px 32px 26px; }
.tk-pch-login .tk-pch-notice { margin: 0 0 18px; }

/* Campi a piena larghezza: il tema Paydea stringe gli input, qui li forziamo. */
.tk-pch-login .tk-pch-field { margin-bottom: 18px; }
.tk-pch-login .tk-pch-field > span { font-size: 13px; }
.tk-pch-wrap .tk-pch-login .tk-pch-input {
    display: block; width: 100% !important; max-width: 100% !important;
    box-sizing: border-box; height: auto !important; min-height: 0;
    padding: 12px 16px !important; font-size: 15px; line-height: 1.4; margin: 0;
}
.tk-pch-wrap .tk-pch-btn-block { display: block; width: 100%; text-align: center; padding: 14px 20px !important; margin-top: 4px; font-size: 15px; }
.tk-pch-login-links { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tk-gray-100); text-align: center; font-size: 13px; color: var(--tk-gray-500); }
.tk-pch-login-links a { color: var(--tk-accent-d) !important; font-weight: 600; text-decoration: none; }
.tk-pch-login-links a:hover { text-decoration: underline; }
.tk-pch-login-links span { display: block; margin-top: 8px; }

/* Icone delle voci azienda nel menu "Il mio account": il tema Paydea ha una
   mappa fissa endpoint→dashicon e sui nostri ripiega su dashicons-admin-generic
   (vietata dallo standard TK). Non ha filtri, quindi il glifo lo diamo qui.
   Questo CSS sulla pagina account viene caricato solo per le aziende. */
.woocommerce-MyAccount-navigation-link--pch-dashboard .paydea-nav-icon::before { content: "\f226"; }
.woocommerce-MyAccount-navigation-link--pch-azienda .paydea-nav-icon::before   { content: "\f512"; }
.woocommerce-MyAccount-navigation-link--pch-coupons .paydea-nav-icon::before   { content: "\f524"; }
.woocommerce-MyAccount-navigation-link--pch-crea .paydea-nav-icon::before      { content: "\f502"; }

/* Pannello dentro "Il mio account": niente fondo grigio né padding esterni,
   la navigazione è già nella colonna di sinistra di WooCommerce. */
.tk-pch-embed .tk-pch-body { background: transparent; padding: 18px 0 0; }
.tk-pch-embed .tk-pch-notice { margin-left: 0; margin-right: 0; }
.tk-pch-embed .tk-pch-card:last-child { margin-bottom: 0; }

/* Più spazio al quadrante: il tema dà al contenuto account 78px di padding
   orizzontale e 250px alla colonna di sinistra, e la tabella coupon non ci
   stava. Questo CSS arriva solo sulla pagina account di un'azienda. */
.woocommerce-account .woocommerce-MyAccount-content {
    padding-left: 18px !important;
    padding-right: 18px !important;
}
/* Etichette del menu su una riga sola ("La mia azienda", "I miei coupon"
   andavano a capo). La colonna NON va stretta, altrimenti tornano a spezzarsi. */
.woocommerce-account .woocommerce-MyAccount-navigation .paydea-nav-label,
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    white-space: nowrap;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Card e tabella più compatte dentro l'account: lo spazio utile è quello del
   contenuto MENO il padding della card, e la tabella ci deve stare tutta. */
.tk-pch-embed .tk-pch-card { padding: 22px 18px; }
.tk-pch-embed .tk-pch-table { font-size: 13px; }
.tk-pch-embed .tk-pch-table th,
.tk-pch-embed .tk-pch-table td { padding: 10px 8px; }
.tk-pch-embed .tk-pch-btn-sm { padding: 5px 9px !important; font-size: 11px; }
.tk-pch-embed .tk-pch-actions { gap: 5px; }
/* Fascia stretta: la colonna di sinistra è ancora affiancata ma il contenuto è
   già corto (misurato: sbordava di 17px). Qui si stringe ancora un po'. */
@media (min-width: 783px) and (max-width: 1200px) {
    .tk-pch-embed .tk-pch-card { padding: 18px 12px; }
    .tk-pch-embed .tk-pch-table th,
    .tk-pch-embed .tk-pch-table td { padding: 9px 6px; }
    .tk-pch-embed .tk-pch-btn-sm { padding: 5px 7px !important; }
}

/* ===== Area Azienda: logo, selettore azienda, scheda anagrafica ===== */
.tk-pch-header-logo {
    width: 44px; height: 44px; align-self: center; flex-shrink: 0;
    border-radius: 12px; object-fit: contain; background: #fff; padding: 4px;
}
.tk-pch-company-switch { display: flex; align-items: center; gap: 8px; align-self: center; margin: 0; }
.tk-pch-company-switch label { color: var(--tk-gray-300); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tk-pch-wrap .tk-pch-company-switch .tk-pch-select { width: auto; min-width: 180px; padding: 7px 34px 7px 14px; font-weight: 600; }

.tk-pch-notice-warn { background: var(--tk-amber-l); color: var(--tk-amber-d); }
.tk-pch-notice-warn a { color: var(--tk-amber-d); font-weight: 700; }

.tk-pch-check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tk-navy); margin-bottom: 14px; }
.tk-pch-check input { accent-color: var(--tk-accent); }

.tk-pch-logo-box { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.tk-pch-logo-preview {
    width: 160px; height: 160px; flex-shrink: 0; border: 1px dashed var(--tk-gray-300);
    border-radius: var(--tk-radius); background: var(--tk-gray-50);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tk-pch-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tk-pch-logo-empty { color: var(--tk-gray-500); font-size: 13px; }
.tk-pch-logo-fields { flex: 1; min-width: 0; }
.tk-pch-wrap .tk-pch-logo-hint { font-size: 12px; color: var(--tk-gray-500); margin: 0 0 8px; line-height: 1.5; }
.tk-pch-wrap input[type="file"].tk-pch-input { padding: 8px 10px; background: var(--tk-gray-50) !important; }

/* Intestazione azienda nell'archivio /coupon/ */
.tk-pch-brand-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.tk-pch-brand-head-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--tk-gray-200); border-radius: var(--tk-radius); padding: 6px; }
.tk-pch-brand-head-txt h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--tk-navy); }
.tk-pch-wrap .tk-pch-brand-head-back { font-size: 13px; font-weight: 600; color: var(--tk-accent-d); text-decoration: none; }
.tk-pch-wrap .tk-pch-brand-head-back:hover { text-decoration: underline; }

/* ===== "Aziende Partner" (home) =====
   Riusano il markup .tkms-cc di multishop, ma qui NON c'è la card: solo il
   logo grande sullo sfondo della sezione, con il nome sotto. */
/* Fascia di altezza FISSA uguale per tutti: qualunque siano le dimensioni del
   file caricato, ogni logo viene reso dentro lo stesso riquadro, così quelli
   quadrati e quelli larghi (wordmark) pesano otticamente allo stesso modo. */
.tk-pch-brands .tkms-cc-card-bg {
    box-sizing: border-box;
    background: none; border: 0; box-shadow: none;
    border-radius: 0; aspect-ratio: auto;
    height: 110px; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.tk-pch-brands .tkms-cc-card:hover .tkms-cc-card-bg { box-shadow: none; }
/* contain: riempie il riquadro mantenendo le proporzioni, senza deformare.
   object-position in basso: un marchio largo disegna meno dell'altezza del
   riquadro e lo spazio vuoto finirebbe SOTTO, allontanando il nome. Appoggiando
   il logo al fondo, il vuoto va sopra (invisibile) e la distanza dal nome è la
   stessa per tutti i loghi, quadrati o larghi che siano. */
.tk-pch-brands .tkms-cc-card-bg img {
    display: block; width: 100%; height: 100%;
    max-width: 100%; max-height: 100%;
    object-fit: contain; object-position: center bottom;
}
/* Nome subito sotto il logo. */
.tk-pch-brands .tkms-cc-card-label { margin-top: 8px; }
/* Azienda unica: la centriamo, altrimenti il logo resta spaesato a sinistra.
   Solo con UNA card, perché da due in su a un certo punto c'è overflow e
   centrare un contenitore scrollabile renderebbe irraggiungibile la prima. */
.tk-pch-brands .tkms-cc-track:not(:has(> :nth-child(2))) { justify-content: center; }
/* Fallback (.tk-pch-brands--solo): messo SOLO quando tk-paydea-multishop non è
   attivo e il suo CSS non c'è. Mai attivo insieme al suo, così non gli sporca
   il layout slider qualunque sia l'ordine di enqueue. */
.tk-pch-brands--solo { position: relative; margin: 24px 0; }
.tk-pch-brands--solo .tkms-cc-track {
    display: grid; gap: 20px;
    grid-template-columns: repeat(var(--tkms-cc-cols, 4), minmax(0, 1fr));
}
.tk-pch-brands--solo .tkms-cc-card { display: block; text-decoration: none; color: inherit; }
.tk-pch-brands--solo .tkms-cc-card-bg { display: flex; align-items: center; justify-content: center; }
.tk-pch-brands--solo .tkms-cc-card-label { margin-top: 14px; text-align: center; font-size: 17px; font-weight: 600; color: var(--tkms-cc-label-color, inherit); }
.tk-pch-brands-empty { color: #64748b; font-size: 14px; }

/* Lista coupon: prodotto sotto il titolo */
.tk-pch-cpn-prod { display: block; margin-top: 3px; font-size: 12px; color: var(--tk-gray-500); white-space: normal; }
.tk-pch-cpn-prod.is-missing { color: var(--tk-amber-d); font-weight: 600; }

/* ===== Scheda azienda (wp-admin) ===== */
.tk-pch-az-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 22px;
    padding: 26px 28px; margin-bottom: 20px; border-radius: 14px; color: #fff;
    background: radial-gradient(circle at 88% -20%, rgba(124, 58, 237, .55), transparent 55%),
                linear-gradient(135deg, var(--tk-navy) 0%, var(--tk-navy-2) 60%, #312e81 100%);
    box-shadow: var(--tk-shadow-md);
}
.tk-pch-az-hero-logo {
    width: 78px; height: 78px; flex-shrink: 0; border-radius: 18px; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.tk-pch-az-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tk-pch-az-hero-logo span { font-size: 32px; font-weight: 800; color: var(--tk-accent); }
.tk-pch-az-hero-txt { flex: 1; min-width: 0; }
.tk-pch-az-hero-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #c4b5fd; }
.tk-pch-wrap .tk-pch-az-hero h2 { margin: 4px 0 10px; padding: 0; border: 0; font-size: 24px; line-height: 1.2; font-weight: 800; color: #fff; }
.tk-pch-az-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--tk-gray-300); }
.tk-pch-wrap a.tk-pch-az-back {
    align-self: flex-start; flex-shrink: 0; padding: 9px 16px; border-radius: 50px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; transition: var(--tk-transition);
}
.tk-pch-wrap a.tk-pch-az-back:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.tk-pch-az-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tk-pch-az-sec {
    background: #fff; border: 1px solid var(--tk-gray-200); border-radius: 14px;
    padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--tk-shadow);
}
.tk-pch-az-sec-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--tk-gray-100); }
.tk-pch-az-sec-icon {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; font-size: 18px;
    display: flex; align-items: center; justify-content: center; background: var(--tk-accent-ll);
}
.tk-pch-wrap .tk-pch-az-sec-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--tk-navy); }
.tk-pch-wrap .tk-pch-az-sec-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--tk-gray-500); }

.tk-pch-az-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.tk-pch-az-fields-sede { grid-template-columns: 120px minmax(0, 1fr) 90px; }
.tk-pch-az-field { display: block; margin: 0; min-width: 0; }
.tk-pch-az-field.is-full { grid-column: 1 / -1; }
.tk-pch-az-field > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--tk-gray-700); }
.tk-pch-az-field > span em { font-style: normal; color: var(--tk-red); }
.tk-pch-az-field small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--tk-gray-500); }
.tk-pch-wrap input.tk-pch-az-input {
    display: block; width: 100%; height: 42px; min-height: 42px; margin: 0; padding: 0 14px;
    border: 1px solid var(--tk-gray-300); border-radius: 8px; background: #fff;
    font-size: 14px; color: var(--tk-navy); box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.tk-pch-wrap input.tk-pch-az-input::placeholder { color: #94a3b8; }
.tk-pch-wrap input.tk-pch-az-input:hover { border-color: #94a3b8; }
.tk-pch-wrap input.tk-pch-az-input:focus { outline: 0; border-color: var(--tk-accent); box-shadow: 0 0 0 3px var(--tk-accent-l); }

.tk-pch-az-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tk-pch-az-chip { padding: 4px 11px; border-radius: 50px; background: var(--tk-accent-ll); color: var(--tk-accent-d); font: 600 12px/1.4 monospace; }
.tk-pch-az-count { margin-left: auto; font-size: 12.5px; font-weight: 700; }
.tk-pch-az-count.is-ok { color: var(--tk-green-d); }
.tk-pch-az-count.is-zero { color: var(--tk-amber-d); }

.tk-pch-az-savebar {
    position: sticky; bottom: 16px; z-index: 5;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 16px 14px 22px; border-radius: 14px; background: #fff;
    border: 1px solid var(--tk-gray-200); box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.tk-pch-az-savebar span { font-size: 13px; color: var(--tk-gray-500); }
.tk-pch-wrap button.tk-pch-az-save {
    flex-shrink: 0; padding: 12px 24px; border: 0; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d)); color: #fff;
    font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(124, 58, 237, .35); transition: var(--tk-transition);
}
.tk-pch-wrap button.tk-pch-az-save:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 58, 237, .45); }

/* Colonna laterale */
.tk-pch-az-drop {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer;
    border: 2px dashed var(--tk-gray-300); border-radius: 12px; transition: var(--tk-transition);
}
.tk-pch-az-drop:hover { border-color: var(--tk-accent); background: var(--tk-accent-ll); }
.tk-pch-az-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tk-pch-az-drop-img {
    width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; background: #fff;
    border: 1px solid var(--tk-gray-200); display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden;
}
.tk-pch-az-drop-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tk-pch-az-drop-img b { font-size: 30px; font-weight: 400; color: var(--tk-accent); }
.tk-pch-az-drop-txt { font-size: 12px; line-height: 1.45; color: var(--tk-gray-500); }
.tk-pch-az-drop-txt strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--tk-navy); }
.tk-pch-az-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--tk-gray-700); }

.tk-pch-az-status { display: grid; gap: 8px; }
.tk-pch-az-status-opt {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
    border: 1.5px solid var(--tk-gray-200); border-radius: 10px; transition: var(--tk-transition);
}
.tk-pch-az-status-opt:hover { border-color: var(--tk-gray-300); }
.tk-pch-az-status-opt input { margin: 0; }
.tk-pch-az-status-opt strong { display: block; font-size: 13.5px; color: var(--tk-navy); }
.tk-pch-az-status-opt small { display: block; font-size: 12px; color: var(--tk-gray-500); }
.tk-pch-az-status-opt.is-active:has(input:checked)    { border-color: var(--tk-green); background: var(--tk-green-l); }
.tk-pch-az-status-opt.is-pending:has(input:checked)   { border-color: var(--tk-amber); background: var(--tk-amber-l); }
.tk-pch-az-status-opt.is-suspended:has(input:checked) { border-color: var(--tk-red); background: var(--tk-red-l); }
/* Radio disegnato a mano: wp-admin lo ristila e il pallino del selezionato spariva. */
.tk-pch-wrap .tk-pch-az-status-opt input[type="radio"] {
    appearance: none; -webkit-appearance: none; flex-shrink: 0;
    width: 18px; height: 18px; margin: 0; border-radius: 50%;
    border: 2px solid var(--tk-gray-300); background: #fff; box-shadow: none; position: relative;
}
.tk-pch-wrap .tk-pch-az-status-opt input[type="radio"]::before { content: none; }
.tk-pch-wrap .tk-pch-az-status-opt input[type="radio"]:checked::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor;
}
.tk-pch-wrap .tk-pch-az-status-opt.is-active input:checked    { border-color: var(--tk-green); color: var(--tk-green); }
.tk-pch-wrap .tk-pch-az-status-opt.is-pending input:checked   { border-color: var(--tk-amber); color: var(--tk-amber); }
.tk-pch-wrap .tk-pch-az-status-opt.is-suspended input:checked { border-color: var(--tk-red); color: var(--tk-red); }

.tk-pch-az-user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--tk-gray-50); }
.tk-pch-az-user-avatar {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 800; font-size: 17px;
    display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d));
}
.tk-pch-az-user-txt { min-width: 0; }
.tk-pch-az-user-txt strong { display: block; font-size: 14px; color: var(--tk-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pch-az-user-txt small { font-size: 12px; color: var(--tk-gray-500); }
.tk-pch-wrap a.tk-pch-az-btn, .tk-pch-wrap button.tk-pch-az-btn {
    display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: 10px; cursor: pointer;
    text-align: center; font-size: 14px; font-weight: 700; text-decoration: none; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-az-btn.is-primary { background: var(--tk-navy); color: #fff; }
.tk-pch-wrap .tk-pch-az-btn.is-primary:hover { background: var(--tk-accent); color: #fff; }
.tk-pch-wrap .tk-pch-az-note { margin: 10px 0; font-size: 12.5px; line-height: 1.5; color: var(--tk-gray-500); }
.tk-pch-az-links { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--tk-gray-100); font-size: 13px; }
.tk-pch-wrap .tk-pch-az-links a { font-weight: 600; color: var(--tk-accent-d); text-decoration: none; }
.tk-pch-wrap .tk-pch-az-links a.is-danger { color: var(--tk-red-d); }
.tk-pch-wrap .tk-pch-az-links a:hover { text-decoration: underline; }
.tk-pch-az-invite { display: grid; gap: 10px; }

/* ===== Elenco aziende (wp-admin) ===== */
.tk-pch-wrap a.tk-pch-az-new {
    align-self: center; flex-shrink: 0; padding: 12px 22px; border-radius: 10px; text-decoration: none;
    background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d)); color: #fff;
    font-size: 14px; font-weight: 700; box-shadow: 0 8px 22px rgba(124, 58, 237, .45); transition: var(--tk-transition);
}
.tk-pch-wrap a.tk-pch-az-new:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124, 58, 237, .55); }

.tk-pch-az-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.tk-pch-az-kpi {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
    background: #fff; border: 1px solid var(--tk-gray-200); box-shadow: var(--tk-shadow);
}
.tk-pch-az-kpi-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.tk-pch-az-kpi strong { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; color: var(--tk-navy); }
.tk-pch-az-kpi small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--tk-gray-500); }
.tk-pch-az-kpi.k-violet .tk-pch-az-kpi-ico { background: var(--tk-accent-l); }
.tk-pch-az-kpi.k-green .tk-pch-az-kpi-ico  { background: var(--tk-green-l); }
.tk-pch-az-kpi.k-blue .tk-pch-az-kpi-ico   { background: var(--tk-blue-l); }
.tk-pch-az-kpi.k-amber .tk-pch-az-kpi-ico  { background: var(--tk-amber-l); }

.tk-pch-az-listsec { padding: 0; overflow: hidden; }
.tk-pch-az-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--tk-gray-100); }
.tk-pch-az-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.tk-pch-az-search span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .6; }
.tk-pch-wrap .tk-pch-az-search input {
    width: 100%; height: 40px; margin: 0; padding: 0 14px 0 38px; border: 1px solid var(--tk-gray-300);
    border-radius: 50px; background: var(--tk-gray-50); font-size: 14px; box-shadow: none;
}
.tk-pch-wrap .tk-pch-az-search input:focus { outline: 0; background: #fff; border-color: var(--tk-accent); box-shadow: 0 0 0 3px var(--tk-accent-l); }
.tk-pch-az-filter { display: inline-flex; padding: 4px; gap: 2px; border-radius: 50px; background: var(--tk-gray-100); }
.tk-pch-wrap .tk-pch-az-filter button {
    padding: 7px 14px; border: 0; border-radius: 50px; background: transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--tk-gray-500); transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-az-filter button:hover { color: var(--tk-navy); }
.tk-pch-wrap .tk-pch-az-filter button.is-on { background: #fff; color: var(--tk-accent-d); box-shadow: var(--tk-shadow); }

.tk-pch-az-table th:first-child, .tk-pch-az-table td:first-child { padding-left: 20px; }
.tk-pch-az-table th:last-child, .tk-pch-az-table td:last-child { padding-right: 20px; }
.tk-pch-az-table td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.tk-pch-az-table tr[hidden] { display: none; }
.tk-pch-wrap a.tk-pch-az-who { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tk-pch-az-who-logo {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--tk-gray-200);
    display: flex; align-items: center; justify-content: center; padding: 5px; overflow: hidden;
    font-size: 18px; font-weight: 800; color: var(--tk-accent);
}
.tk-pch-az-who-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tk-pch-az-who-txt strong { display: block; font-size: 14.5px; color: var(--tk-navy); }
.tk-pch-az-who-txt small { display: block; font-size: 12px; color: var(--tk-gray-500); }
.tk-pch-wrap a.tk-pch-az-who:hover strong { color: var(--tk-accent-d); }
.tk-pch-az-mono { font-family: monospace; font-size: 13px; color: var(--tk-gray-700); }
.tk-pch-az-login { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tk-gray-700); }
.tk-pch-az-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--tk-green); box-shadow: 0 0 0 3px var(--tk-green-l); }
.tk-pch-az-login.is-none { color: var(--tk-amber-d); }
.tk-pch-az-login.is-none .tk-pch-az-dot { background: var(--tk-amber); box-shadow: 0 0 0 3px var(--tk-amber-l); }
.tk-pch-az-cpn { display: inline-flex; min-width: 30px; justify-content: center; padding: 3px 10px; border-radius: 50px; background: var(--tk-accent-ll); color: var(--tk-accent-d); font-weight: 700; font-size: 13px; }
.tk-pch-az-noresult { padding: 28px; text-align: center; color: var(--tk-gray-500); }
.tk-pch-az-empty { padding: 48px 24px; text-align: center; }
.tk-pch-az-empty > div { font-size: 46px; }
.tk-pch-wrap .tk-pch-az-empty h3 { margin: 10px 0 6px; font-size: 18px; color: var(--tk-navy); }
.tk-pch-wrap .tk-pch-az-empty p { margin: 0 auto 20px; max-width: 420px; color: var(--tk-gray-500); }

@media (max-width: 1280px) {
    .tk-pch-az-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
    .tk-pch-az-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ===== Wizard creazione coupon (restyling) ===== */
.tk-pch-wrap .tk-pch-wizard { padding: 26px 30px 24px; }

/* Barra step: pallini numerati uniti da una linea */
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav { display: flex; gap: 0; margin: 0 0 30px; padding: 0; flex-wrap: nowrap; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot {
    position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 0; background: none; border-radius: 0; cursor: pointer; font-size: 12px; color: var(--tk-gray-500);
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot::before {
    content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--tk-gray-200); z-index: 0;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot:first-child::before { display: none; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot b {
    position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--tk-gray-300); color: var(--tk-gray-500); font-size: 14px; font-weight: 800;
    transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot em {
    font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.done::before,
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.active::before { background: linear-gradient(90deg, var(--tk-green), var(--tk-accent)); }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.done b { background: var(--tk-green); border-color: var(--tk-green); color: transparent; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.done b::after { content: '✓'; position: absolute; color: #fff; font-size: 16px; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.done em { color: var(--tk-green-d); }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.active b {
    background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d)); border-color: transparent; color: #fff;
    box-shadow: 0 0 0 5px var(--tk-accent-l);
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.active em { color: var(--tk-accent-d); font-weight: 800; }

/* Testata dello step */
.tk-pch-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tk-pch-step-ico {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tk-accent-ll), var(--tk-accent-l));
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-step-head h2 {
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    font-size: 20px !important; font-weight: 800 !important; line-height: 1.2 !important; color: var(--tk-navy) !important;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-step-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--tk-gray-500); }

/* Campi */
.tk-pch-wrap .tk-pch-wizard .tk-pch-field { margin-bottom: 20px; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-field > span { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tk-pch-wrap .tk-pch-wizard input.tk-pch-input,
.tk-pch-wrap .tk-pch-wizard select.tk-pch-select {
    height: 48px; padding: 0 16px; border-radius: 10px !important; border: 1.5px solid var(--tk-gray-200) !important;
    background-color: var(--tk-gray-50) !important; font-size: 15px; box-shadow: none !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-wizard select.tk-pch-select { padding-right: 38px; }
.tk-pch-wrap .tk-pch-wizard textarea.tk-pch-input {
    padding: 12px 16px; border-radius: 10px !important; border: 1.5px solid var(--tk-gray-200) !important;
    background-color: var(--tk-gray-50) !important; font-size: 15px; box-shadow: none !important;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-input:hover, .tk-pch-wrap .tk-pch-wizard .tk-pch-select:hover { border-color: var(--tk-gray-300) !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-input:focus, .tk-pch-wrap .tk-pch-wizard .tk-pch-select:focus {
    outline: 0; background-color: #fff !important; border-color: var(--tk-accent) !important; box-shadow: 0 0 0 4px var(--tk-accent-l) !important;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-code-row .tk-pch-code { font-size: 18px; letter-spacing: 3px; }

/* Step 1: scelta tipo */
.tk-pch-wrap .tk-pch-wizard .tk-pch-radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-radio-card {
    position: relative; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 18px;
    border: 2px solid var(--tk-gray-200); border-radius: 14px; background: #fff; cursor: pointer; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-radio-card:hover { border-color: var(--tk-accent-l); transform: translateY(-1px); box-shadow: var(--tk-shadow-md); }
.tk-pch-wrap .tk-pch-wizard .tk-pch-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.tk-pch-rc-ico {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; font-size: 24px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; background: var(--tk-gray-100); color: var(--tk-gray-500); transition: var(--tk-transition);
}
.tk-pch-rc-txt strong { display: block; font-size: 16px; color: var(--tk-navy); }
.tk-pch-rc-txt small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--tk-gray-500); }
.tk-pch-rc-check {
    margin-left: auto; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 13px; color: transparent; border: 2px solid var(--tk-gray-300);
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-radio-card:has(input:checked) { border-color: var(--tk-accent); background: var(--tk-accent-ll); box-shadow: 0 8px 22px rgba(124, 58, 237, .14); }
.tk-pch-wizard .tk-pch-radio-card:has(input:checked) .tk-pch-rc-ico { background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d)); color: #fff; }
.tk-pch-wizard .tk-pch-radio-card:has(input:checked) .tk-pch-rc-check { background: var(--tk-accent); border-color: var(--tk-accent); color: #fff; }

/* Step 3: ricerca prodotto */
.tk-pch-search-box { position: relative; }
.tk-pch-search-box::before {
    content: ''; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); z-index: 1; opacity: .55;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-search-box input.tk-pch-input { padding-left: 46px; height: 52px; font-size: 16px; }
.tk-pch-wizard .tk-pch-prod-results { display: grid; gap: 8px; max-height: 360px; margin: -6px 0 20px; overflow-y: auto; }
.tk-pch-wrap .tk-pch-wizard button.tk-pch-prod-row {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px; text-align: left; cursor: pointer;
    border: 1.5px solid var(--tk-gray-200) !important; border-radius: 12px !important; background: #fff !important;
    color: var(--tk-navy) !important; box-shadow: none !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-wizard button.tk-pch-prod-row:hover { border-color: var(--tk-accent) !important; box-shadow: 0 6px 18px rgba(124, 58, 237, .14) !important; transform: translateY(-1px); }
.tk-pch-wizard .tk-pch-prod-row img, .tk-pch-wizard .tk-pch-prod-noimg {
    width: 54px; height: 54px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--tk-gray-100);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.tk-pch-wizard .tk-pch-prod-info { flex: 1; min-width: 0; display: block; }
.tk-pch-wizard .tk-pch-prod-name { display: block; font-size: 15px; font-weight: 700; color: var(--tk-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-pch-wizard .tk-pch-prod-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--tk-gray-500); }
.tk-pch-prod-go { flex-shrink: 0; padding: 8px 14px; border-radius: 50px; background: var(--tk-accent-ll); color: var(--tk-accent-d); font-size: 13px; font-weight: 700; transition: var(--tk-transition); }
.tk-pch-wizard .tk-pch-prod-row:hover .tk-pch-prod-go { background: var(--tk-accent); color: #fff; }
.tk-pch-wizard .tk-pch-prod-empty { padding: 18px; border-radius: 12px; background: var(--tk-gray-50); text-align: center; color: var(--tk-gray-500); font-size: 14px; }

/* Prodotto scelto: card grande */
.tk-pch-wizard .tk-pch-prod-selected { display: block; margin-bottom: 22px; }
.tk-pch-pick {
    position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; overflow: hidden;
    border: 2px solid var(--tk-accent); border-radius: 16px;
    background: linear-gradient(135deg, var(--tk-accent-ll) 0%, #fff 70%); box-shadow: 0 10px 28px rgba(124, 58, 237, .16);
}
.tk-pch-pick-img {
    width: 76px; height: 76px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: var(--tk-shadow);
}
.tk-pch-pick-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-pch-pick-txt { flex: 1; min-width: 0; display: block; }
.tk-pch-pick-kicker { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 50px; background: var(--tk-green-l); color: var(--tk-green-d); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.tk-pch-pick-txt strong { display: block; font-size: 18px; font-weight: 800; color: var(--tk-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-pch-pick-txt small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--tk-gray-500); }
.tk-pch-wrap .tk-pch-wizard button.tk-pch-prod-rm {
    flex-shrink: 0; width: auto; height: auto; padding: 9px 16px; cursor: pointer;
    border: 1.5px solid var(--tk-accent-l) !important; border-radius: 50px !important; background: #fff !important;
    color: var(--tk-accent-d) !important; font-size: 13px; font-weight: 700; line-height: 1.2; box-shadow: none !important;
}
.tk-pch-wrap .tk-pch-wizard button.tk-pch-prod-rm:hover { background: var(--tk-accent) !important; border-color: var(--tk-accent) !important; color: #fff !important; }

/* Menu negozi */
.tk-pch-wrap .tk-pch-wizard .tk-pch-dd-toggle {
    height: 48px; padding: 0 16px !important; border-radius: 10px !important; border: 1.5px solid var(--tk-gray-200) !important;
    background: var(--tk-gray-50) !important; font-size: 15px;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-dd-toggle[aria-expanded="true"] { border-color: var(--tk-accent) !important; background: #fff !important; box-shadow: 0 0 0 4px var(--tk-accent-l) !important; }
.tk-pch-wizard .tk-pch-dd-panel { border-radius: 12px; box-shadow: var(--tk-shadow-lg, 0 10px 40px rgba(0,0,0,.12)); }
.tk-pch-wizard .tk-pch-dd-item { padding: 10px 12px; }
.tk-pch-wizard .tk-pch-dd-item input { width: 18px; height: 18px; accent-color: var(--tk-accent); }

/* Pulsanti Avanti / Indietro / Crea */
.tk-pch-wrap .tk-pch-wizard .tk-pch-wizard-actions { margin-top: 26px; padding-top: 22px; }
.tk-pch-wrap .tk-pch-wizard #tk-pch-next, .tk-pch-wrap .tk-pch-wizard #tk-pch-submit {
    padding: 13px 28px; border-radius: 12px !important; font-size: 15px;
    background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d)) !important; box-shadow: 0 8px 22px rgba(124, 58, 237, .35) !important;
}
.tk-pch-wrap .tk-pch-wizard #tk-pch-next:hover, .tk-pch-wrap .tk-pch-wizard #tk-pch-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124, 58, 237, .45) !important; }
.tk-pch-wrap .tk-pch-wizard #tk-pch-prev { padding: 13px 22px; border-radius: 12px !important; font-size: 15px; }

/* Riepilogo */
.tk-pch-wizard .tk-pch-summary { padding: 6px 20px; border-radius: 14px; background: var(--tk-gray-50); border: 1px solid var(--tk-gray-200); }
.tk-pch-wizard .tk-pch-summary .row { padding: 11px 0; }

@media (max-width: 782px) {
    .tk-pch-wrap .tk-pch-wizard { padding: 20px 16px; }
    .tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot em { display: none; }
    .tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.active em { display: block; position: absolute; top: 44px; white-space: nowrap; overflow: visible; }
    .tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav { margin-bottom: 42px; }
    .tk-pch-wrap .tk-pch-wizard .tk-pch-radio-cards { grid-template-columns: 1fr; }
    .tk-pch-pick { flex-wrap: wrap; }
    .tk-pch-wrap .tk-pch-wizard button.tk-pch-prod-rm { width: 100%; }
    .tk-pch-prod-go { display: none; }
}


/* ===== Wizard: palette Paydea viola → indaco → ciano + reset anti-tema ===== */
.tk-pch-wrap .tk-pch-wizard {
    --tkw-grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #06b6d4 100%);
    --tkw-grad-soft: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 55%, #ecfeff 100%);
    --tkw-glow: 0 10px 30px rgba(99, 102, 241, .30);
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.active b { background: var(--tkw-grad); box-shadow: 0 0 0 5px #e0e7ff, var(--tkw-glow); }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.done::before,
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.active::before { background: var(--tkw-grad); }
.tk-pch-wrap .tk-pch-wizard .tk-pch-steps-nav .dot.done b { background: linear-gradient(135deg, #10b981, #06b6d4); border-color: transparent; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-step-ico { background: var(--tkw-grad); box-shadow: var(--tkw-glow); filter: saturate(1.1); }

/* Card tipo sconto */
.tk-pch-wrap .tk-pch-wizard .tk-pch-radio-card:has(input:checked) {
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--tkw-grad) border-box;
    box-shadow: var(--tkw-glow);
}
.tk-pch-wizard .tk-pch-radio-card:has(input:checked) .tk-pch-rc-ico,
.tk-pch-wizard .tk-pch-radio-card:has(input:checked) .tk-pch-rc-check { background: var(--tkw-grad); border-color: transparent; }

/* Righe risultato: reset completo degli stili bottone del tema */
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-results button.tk-pch-prod-row {
    display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important;
    gap: 14px !important; width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important;
    padding: 10px 14px !important; text-align: left !important; text-transform: none !important; letter-spacing: normal !important;
    line-height: 1.3 !important; font-size: 14px !important; font-weight: 400 !important;
    border: 1.5px solid #e2e8f0 !important; border-radius: 14px !important;
    background: #fff !important; color: #0f172a !important; box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-results button.tk-pch-prod-row:hover,
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-results button.tk-pch-prod-row:focus-visible {
    border-color: transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, var(--tkw-grad) border-box !important;
    box-shadow: var(--tkw-glow) !important; transform: translateY(-2px);
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-row img,
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-noimg { width: 56px !important; height: 56px !important; max-width: none !important; border-radius: 12px !important; object-fit: cover !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-info { display: block !important; flex: 1 1 auto !important; min-width: 0 !important; text-align: left !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-name { display: block !important; font-size: 15px !important; font-weight: 700 !important; color: #0f172a !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-meta { display: block !important; margin-top: 3px !important; font-size: 13px !important; font-weight: 500 !important; color: #64748b !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-meta .amount { color: #0f172a; font-weight: 700; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-go {
    flex-shrink: 0 !important; margin-left: auto !important; padding: 8px 16px !important; border-radius: 50px !important;
    background: #eef2ff !important; color: #4f46e5 !important; font-size: 13px !important; font-weight: 800 !important; white-space: nowrap !important;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-prod-row:hover .tk-pch-prod-go { background: var(--tkw-grad) !important; color: #fff !important; }

/* Prodotto scelto */
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick {
    display: flex !important; flex-direction: row !important; align-items: center !important; gap: 18px !important;
    padding: 18px 20px !important; border: 2px solid transparent !important; border-radius: 18px !important;
    background: linear-gradient(135deg, #faf5ff, #eef2ff 55%, #ecfeff) padding-box, var(--tkw-grad) border-box !important;
    box-shadow: var(--tkw-glow) !important;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick-img { width: 84px !important; height: 84px !important; flex: 0 0 84px !important; border-radius: 16px !important; overflow: hidden !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick-img img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick-txt { display: block !important; flex: 1 1 auto !important; min-width: 0 !important; text-align: left !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick-kicker { display: inline-block !important; background: linear-gradient(135deg, #10b981, #06b6d4) !important; color: #fff !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick-txt strong { display: block !important; font-size: 19px !important; color: #0f172a !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick-txt small { display: block !important; font-size: 14px !important; color: #475569 !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick button.tk-pch-prod-rm {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: auto !important; height: auto !important; min-width: 0 !important; margin: 0 !important;
    padding: 10px 18px !important; writing-mode: horizontal-tb !important; white-space: nowrap !important; flex: 0 0 auto !important;
    border: 0 !important; border-radius: 50px !important; background: #fff !important; color: #4f46e5 !important;
    font-size: 13px !important; font-weight: 800 !important; line-height: 1 !important; text-transform: none !important;
    box-shadow: 0 2px 10px rgba(79, 70, 229, .18) !important;
}
.tk-pch-wrap .tk-pch-wizard .tk-pch-pick button.tk-pch-prod-rm:hover { background: var(--tkw-grad) !important; color: #fff !important; }

/* Pulsanti */
.tk-pch-wrap .tk-pch-wizard #tk-pch-next, .tk-pch-wrap .tk-pch-wizard #tk-pch-submit { background: var(--tkw-grad) !important; box-shadow: var(--tkw-glow) !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-dd-toggle[aria-expanded="true"] { border-color: #6366f1 !important; box-shadow: 0 0 0 4px #e0e7ff !important; }
.tk-pch-wrap .tk-pch-wizard .tk-pch-input:focus, .tk-pch-wrap .tk-pch-wizard .tk-pch-select:focus { border-color: #6366f1 !important; box-shadow: 0 0 0 4px #e0e7ff !important; }

@media (max-width: 782px) {
    .tk-pch-wrap .tk-pch-wizard .tk-pch-pick { flex-wrap: wrap !important; }
    .tk-pch-wrap .tk-pch-wizard .tk-pch-pick button.tk-pch-prod-rm { width: 100% !important; }
}


/* ===== I miei codici sconto (card) ===== */
.tk-pch-cl {
    --tkw-grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #06b6d4 100%);
    --tkw-glow: 0 10px 30px rgba(99, 102, 241, .28);
}
.tk-pch-cl-head {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 22px 26px; margin-bottom: 18px; border-radius: 18px; color: #fff;
    background: radial-gradient(circle at 90% -30%, rgba(6, 182, 212, .55), transparent 55%), linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #4338ca 100%);
    box-shadow: var(--tkw-glow);
}
.tk-pch-cl-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #a5f3fc; }
.tk-pch-wrap h2.tk-pch-cl-title { margin: 2px 0 8px !important; padding: 0 !important; border: 0 !important; font-size: 26px !important; font-weight: 800 !important; color: #fff !important; }
.tk-pch-cl-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-pch-cl-counts span { padding: 4px 12px; border-radius: 50px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 700; color: #fff; }
.tk-pch-cl-counts .is-active::first-letter { color: #34d399; }
.tk-pch-cl-counts .is-paused::first-letter { color: #fbbf24; }
.tk-pch-cl-counts .is-draft::first-letter  { color: #cbd5e1; }
.tk-pch-wrap a.tk-pch-cl-new {
    flex-shrink: 0; padding: 12px 22px; border-radius: 12px; text-decoration: none;
    background: #fff; color: #4f46e5 !important; font-size: 14px; font-weight: 800;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transition: var(--tk-transition);
}
.tk-pch-wrap a.tk-pch-cl-new:hover { transform: translateY(-2px); color: #7c3aed !important; }

.tk-pch-cl-list { display: grid; gap: 14px; }
.tk-pch-ci {
    position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img main side" "img actions actions";
    gap: 12px 18px; align-items: center; padding: 18px 20px 16px 24px; overflow: hidden;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 2px 6px rgba(15, 23, 42, .04); transition: var(--tk-transition);
}
.tk-pch-ci::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tkw-grad); }
.tk-pch-ci.is-paused::before, .tk-pch-ci.is-draft::before { background: #cbd5e1; }
.tk-pch-ci.is-noprod::before { background: linear-gradient(180deg, #f59e0b, #ef4444); }
.tk-pch-ci:hover { border-color: transparent; box-shadow: var(--tkw-glow); transform: translateY(-2px); }

.tk-pch-ci-img {
    grid-area: img; align-self: start; width: 76px; height: 76px; border-radius: 16px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    background: linear-gradient(135deg, #f5f3ff, #ecfeff); box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .12);
}
.tk-pch-ci-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-pch-ci-main { grid-area: main; min-width: 0; }
.tk-pch-ci-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.tk-pch-wrap code.tk-pch-ci-code {
    padding: 4px 12px; border-radius: 8px; border: 1.5px dashed #a5b4fc; background: #eef2ff;
    color: #4338ca; font: 800 13px/1.3 monospace; letter-spacing: 2px;
}
.tk-pch-ci-title { font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pch-ci-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: #475569; }
.tk-pch-ci-prod { font-weight: 600; color: #334155; }
.tk-pch-ci-cat { padding: 1px 10px; border-radius: 50px; background: #f5f3ff; color: #6d28d9; font-weight: 700; font-size: 12px; }
.tk-pch-ci-date { color: #92400e; font-weight: 600; }
.tk-pch-ci-warn { padding: 8px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; font-weight: 600; }
.tk-pch-wrap .tk-pch-ci-warn a { color: #b45309; font-weight: 800; text-decoration: underline; }

.tk-pch-ci-side { grid-area: side; text-align: right; align-self: start; min-width: 110px; }
.tk-pch-ci-off {
    font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -1px;
    background: var(--tkw-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tk-pch-ci.is-paused .tk-pch-ci-off, .tk-pch-ci.is-draft .tk-pch-ci-off, .tk-pch-ci.is-noprod .tk-pch-ci-off { background: none; color: #94a3b8; -webkit-text-fill-color: #94a3b8; }
.tk-pch-ci-use { margin-top: 8px; font-size: 12px; font-weight: 600; color: #64748b; }
.tk-pch-ci-use i { display: block; height: 6px; margin-top: 5px; border-radius: 50px; background: #e2e8f0; overflow: hidden; }
.tk-pch-ci-use b { display: block; height: 100%; border-radius: 50px; background: var(--tkw-grad); }

.tk-pch-ci-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.tk-pch-wrap a.tk-pch-ci-btn {
    display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 50px; text-decoration: none;
    background: #f1f5f9; color: #334155 !important; font-size: 13px; font-weight: 700; transition: var(--tk-transition);
}
.tk-pch-wrap a.tk-pch-ci-btn:hover { background: #e0e7ff; color: #4338ca !important; }
.tk-pch-wrap a.tk-pch-ci-btn.is-primary { background: var(--tkw-grad); color: #fff !important; box-shadow: 0 6px 16px rgba(99, 102, 241, .3); }
.tk-pch-wrap a.tk-pch-ci-btn.is-primary:hover { transform: translateY(-1px); color: #fff !important; }
.tk-pch-wrap a.tk-pch-ci-btn.is-danger { margin-left: auto; background: transparent; color: #dc2626 !important; }
.tk-pch-wrap a.tk-pch-ci-btn.is-danger:hover { background: #fee2e2; color: #b91c1c !important; }

.tk-pch-cl-empty { padding: 44px 24px; text-align: center; background: #fff; border: 2px dashed #c7d2fe; border-radius: 18px; }
.tk-pch-cl-empty-ico { font-size: 48px; }
.tk-pch-wrap .tk-pch-cl-empty h3 { margin: 10px 0 6px; font-size: 20px; font-weight: 800; color: #0f172a; }
.tk-pch-wrap .tk-pch-cl-empty p { margin: 0 auto 20px; max-width: 420px; color: #64748b; }
.tk-pch-wrap .tk-pch-cl-empty a.tk-pch-cl-new { display: inline-block; background: var(--tkw-grad); color: #fff !important; box-shadow: var(--tkw-glow); }

@media (max-width: 782px) {
    .tk-pch-cl-head { flex-direction: column; align-items: stretch; border-radius: 0; }
    .tk-pch-wrap a.tk-pch-cl-new { text-align: center; }
    .tk-pch-ci { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "img main" "side side" "actions actions"; border-radius: 0; padding: 16px; }
    .tk-pch-ci-img { width: 60px; height: 60px; }
    .tk-pch-ci-side { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .tk-pch-ci-use { margin-top: 0; min-width: 120px; }
    .tk-pch-ci-title { white-space: normal; }
}


/* ===== Analizza codice sconto ===== */
.tk-pch-an { --tkw-grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #06b6d4 100%); --tkw-glow: 0 10px 30px rgba(99, 102, 241, .28); }
.tk-pch-wrap a.tk-pch-an-back { display: inline-block; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; color: #4f46e5 !important; text-decoration: none; }
.tk-pch-wrap a.tk-pch-an-back:hover { text-decoration: underline; }
.tk-pch-an-head {
    display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 16px; border-radius: 20px; color: #fff; overflow: hidden;
    background: radial-gradient(circle at 92% -20%, rgba(6, 182, 212, .6), transparent 55%), linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #4338ca 100%);
    box-shadow: var(--tkw-glow);
}
.tk-pch-an-img { width: 84px; height: 84px; flex-shrink: 0; border-radius: 18px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.tk-pch-an-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-pch-an-txt { flex: 1; min-width: 0; }
.tk-pch-an-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #a5f3fc; }
.tk-pch-an-code { margin: 2px 0 4px; font: 900 26px/1.1 monospace; letter-spacing: 3px; }
.tk-pch-an-sub { font-size: 14px; color: #c7d2fe; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pch-an-off { flex-shrink: 0; text-align: right; font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.tk-pch-an-off small { display: block; margin-top: 8px; }

.tk-pch-an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tk-pch-an-kpi { position: relative; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; overflow: hidden; }
.tk-pch-an-kpi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.tk-pch-an-kpi.k1::after { background: linear-gradient(90deg, #7c3aed, #6366f1); }
.tk-pch-an-kpi.k2::after { background: linear-gradient(90deg, #6366f1, #06b6d4); }
.tk-pch-an-kpi.k3::after { background: linear-gradient(90deg, #ec4899, #f59e0b); }
.tk-pch-an-kpi.k4::after { background: linear-gradient(90deg, #10b981, #06b6d4); }
.tk-pch-an-kpi-ico { font-size: 20px; }
.tk-pch-an-kpi strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 900; color: #0f172a; line-height: 1.1; }
.tk-pch-an-kpi small { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: #64748b; }

.tk-pch-an-box { padding: 20px 22px; margin-bottom: 16px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
.tk-pch-wrap .tk-pch-an-box h3 { margin: 0 0 16px; font-size: 16px; font-weight: 800; color: #0f172a; }
.tk-pch-an-shops { display: grid; gap: 14px; }
.tk-pch-an-shop { display: flex; align-items: center; gap: 14px; }
.tk-pch-an-rank { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; font-weight: 900; }
.tk-pch-an-shop:first-child .tk-pch-an-rank { background: var(--tkw-grad); color: #fff; }
.tk-pch-an-shop-main { flex: 1; min-width: 0; }
.tk-pch-an-shop-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tk-pch-an-shop-top strong { color: #0f172a; }
.tk-pch-an-shop-top span { font-weight: 800; color: #4f46e5; white-space: nowrap; }
.tk-pch-an-bar { display: block; height: 10px; margin: 6px 0 5px; border-radius: 50px; background: #eef2ff; overflow: hidden; }
.tk-pch-an-bar b { display: block; height: 100%; border-radius: 50px; background: var(--tkw-grad); }
.tk-pch-an-shop-meta { font-size: 12px; color: #64748b; }
.tk-pch-an-feed { display: grid; }
.tk-pch-an-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.tk-pch-an-row:last-child { border-bottom: 0; }
.tk-pch-an-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--tkw-grad); box-shadow: 0 0 0 4px #eef2ff; }
.tk-pch-an-row-main { flex: 1; min-width: 0; }
.tk-pch-an-row-main strong, .tk-pch-an-row-num strong { display: block; font-size: 14px; color: #0f172a; }
.tk-pch-an-row-main small, .tk-pch-an-row-num small { display: block; font-size: 12px; color: #64748b; }
.tk-pch-an-row-num { text-align: right; }
.tk-pch-an-row-num strong { color: #db2777; }
.tk-pch-an-empty { padding: 40px 24px; text-align: center; border-radius: 18px; background: #fff; border: 2px dashed #c7d2fe; }
.tk-pch-an-empty > div { font-size: 46px; }
.tk-pch-wrap .tk-pch-an-empty h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 800; color: #0f172a; }
.tk-pch-wrap .tk-pch-an-empty p { margin: 0 auto; max-width: 460px; color: #64748b; }

@media (max-width: 1100px) { .tk-pch-an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 782px) {
    .tk-pch-an-head { flex-wrap: wrap; border-radius: 0; }
    .tk-pch-an-off { text-align: left; }
    .tk-pch-an-box, .tk-pch-an-kpi, .tk-pch-an-empty { border-radius: 0; }
}

/* Mobile ≤782px */
@media (max-width: 782px) {
    .tk-pch-az-hero { flex-wrap: wrap; border-radius: 0; padding: 22px 18px; }
    .tk-pch-wrap a.tk-pch-az-back { order: -1; }
    .tk-pch-az-sec { border-radius: 0; padding: 18px 16px; }
    .tk-pch-az-fields, .tk-pch-az-fields-sede { grid-template-columns: 1fr; }
    .tk-pch-az-savebar { position: static; flex-direction: column; align-items: stretch; border-radius: 0; }
    .tk-pch-wrap button.tk-pch-az-save { width: 100%; }
    .tk-pch-az-count { margin-left: 0; }
    .tk-pch-wrap a.tk-pch-az-new { width: 100%; text-align: center; }
    .tk-pch-az-kpis { gap: 10px; }
    .tk-pch-az-kpi { border-radius: 0; }
    .tk-pch-az-search { max-width: none; }
    .tk-pch-az-filter { width: 100%; justify-content: space-between; }
    .tk-pch-az-table th:first-child, .tk-pch-az-table td:first-child { padding-left: 14px; }
    .tk-pch-login { margin: 20px 0; border-radius: 0; padding: 0; }
    .tk-pch-login-head { padding: 24px 20px 20px; }
    .tk-pch-login-body { padding: 22px 20px 20px; }
    .tk-pch-logo-box { flex-direction: column; }
    .tk-pch-logo-preview { width: 100%; height: 180px; }
    .tk-pch-company-switch { flex: 1 1 100%; margin-top: 12px; margin-left: 60px; }
    .tk-pch-wrap .tk-pch-company-switch .tk-pch-select { width: 100%; }
    .tk-pch-brand-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .tk-pch-brands--solo .tkms-cc-track { grid-template-columns: 1fr; }
    .tk-pch-brands .tkms-cc-card-bg { height: 90px; }
    .tk-pch-coupon-grid { grid-template-columns: 1fr; }
    .tk-pch-header-bar, .tk-pch-card, .tk-pch-stat { border-radius: 0; }
    /* Pill sotto il nome su mobile (allineato oltre l'icona 44px + gap 16px). */
    .tk-pch-header-bar { flex-wrap: wrap; }
    .tk-pch-header-left { flex: 1 1 100%; }
    .tk-pch-pill { align-self: flex-start; margin-top: 12px; margin-left: 60px; }
    .tk-pch-body { flex-direction: column; padding: 12px; }
    .tk-pch-sidebar { width: 100%; order: 99; }
    .tk-pch-stats { grid-template-columns: 1fr 1fr; }
    .tk-pch-grid-2 { grid-template-columns: 1fr; }
    .tk-pch-notice { margin: 12px; }

    /* Tabella → card */
    .tk-pch-table thead { display: none; }
    .tk-pch-table, .tk-pch-table tbody, .tk-pch-table tr, .tk-pch-table td { display: block; width: 100%; }
    .tk-pch-table tr { border: 1px solid var(--tk-gray-200); border-radius: 12px; box-shadow: var(--tk-shadow); margin-bottom: 12px; padding: 8px 4px; background: #fff; }
    .tk-pch-table td { border-bottom: 1px solid var(--tk-gray-100); padding: 10px 14px; }
    .tk-pch-table tr:hover td, .tk-pch-table tr:nth-child(even) td { background: #fff; }
    .tk-pch-table td:last-child { border-bottom: 0; }
    .tk-pch-table td::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--tk-gray-500); margin-bottom: 4px; }
    /* Su mobile la riga diventa card: tutto può tornare ad andare a capo. */
    .tk-pch-table td, .tk-pch-table td:last-child { white-space: normal; }
    .tk-pch-actions { flex-wrap: wrap; }
}


/* ===== Testata: angoli sempre arrotondati nel pannello account ===== */
.tk-pch-embed .tk-pch-header-bar {
    border-radius: 18px; padding: 20px 24px;
    background: radial-gradient(circle at 100% 0, rgba(99, 102, 241, .35), transparent 50%), linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}
.tk-pch-embed .tk-pch-header-logo { width: 52px; height: 52px; border-radius: 14px; }
.tk-pch-embed .tk-pch-pill { background: linear-gradient(135deg, #7c3aed, #6366f1 55%, #06b6d4); padding: 5px 14px; box-shadow: 0 6px 16px rgba(99, 102, 241, .35); }

/* ===== Bacheca azienda ===== */
.tk-pch-db, .tk-pch-pf {
    --tkw-grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #06b6d4 100%);
    --tkw-glow: 0 10px 30px rgba(99, 102, 241, .28);
}
.tk-pch-db-warn {
    display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed); border: 1px solid #fde68a; color: #92400e; font-size: 13.5px;
}
.tk-pch-db-warn-ico { flex: 0 0 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(135deg, #f59e0b, #f97316); }
.tk-pch-db-warn > span:nth-child(2) { flex: 1; min-width: 0; }
.tk-pch-db-warn b { display: block; color: #78350f; font-size: 14.5px; }
.tk-pch-wrap .tk-pch-db-warn a { flex-shrink: 0; padding: 9px 16px; border-radius: 50px; background: #fff; color: #b45309 !important; font-weight: 800; text-decoration: none; box-shadow: 0 4px 12px rgba(245, 158, 11, .25); }

.tk-pch-db-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 26px 28px; margin-bottom: 16px; border-radius: 20px; color: #fff;
    background: radial-gradient(circle at 92% -20%, rgba(6, 182, 212, .6), transparent 55%), radial-gradient(circle at 0 120%, rgba(236, 72, 153, .35), transparent 45%), linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #4338ca 100%);
    box-shadow: var(--tkw-glow);
}
.tk-pch-db-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #a5f3fc; }
.tk-pch-wrap h2.tk-pch-db-title { margin: 4px 0 6px !important; padding: 0 !important; border: 0 !important; font-size: 26px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #fff !important; }
.tk-pch-wrap .tk-pch-db-hero-txt p { margin: 0 0 16px !important; color: #e0e7ff !important; font-size: 14px !important; }
.tk-pch-db-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-pch-wrap a.tk-pch-db-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 12px; font-size: 14px; font-weight: 800; text-decoration: none; transition: var(--tk-transition); }
.tk-pch-wrap a.tk-pch-db-btn.is-white { background: #fff; color: #4f46e5 !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.tk-pch-wrap a.tk-pch-db-btn.is-ghost { background: rgba(255, 255, 255, .12); color: #fff !important; border: 1px solid rgba(255, 255, 255, .3); }
.tk-pch-wrap a.tk-pch-db-btn.is-grad { background: var(--tkw-grad); color: #fff !important; box-shadow: var(--tkw-glow); }
.tk-pch-wrap a.tk-pch-db-btn:hover { transform: translateY(-2px); }
.tk-pch-db-hero-num {
    flex-shrink: 0; min-width: 190px; padding: 18px 22px; border-radius: 18px; text-align: right;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
}
.tk-pch-db-hero-num small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #c7d2fe; }
.tk-pch-db-hero-num strong { display: block; margin: 4px 0 2px; font-size: 32px; font-weight: 900; line-height: 1.1; letter-spacing: -.5px; color: #fff; }
.tk-pch-db-hero-num span { font-size: 12.5px; color: #e0e7ff; }

.tk-pch-db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tk-pch-db-kpi {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 16px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); transition: var(--tk-transition);
}
.tk-pch-db-kpi:hover { transform: translateY(-2px); box-shadow: var(--tkw-glow); border-color: transparent; }
.tk-pch-db-kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.tk-pch-db-kpi-ico { flex: 0 0 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.tk-pch-db-kpi > div { min-width: 0; }
.tk-pch-db-kpi strong { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; color: #0f172a; white-space: nowrap; }
.tk-pch-db-kpi small { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; line-height: 1.3; color: #64748b; }
.tk-pch-db-kpi.k1 .tk-pch-db-kpi-ico { background: linear-gradient(135deg, #ede9fe, #e0e7ff); }
.tk-pch-db-kpi.k1::after { background: linear-gradient(90deg, #7c3aed, #6366f1); }
.tk-pch-db-kpi.k2 .tk-pch-db-kpi-ico { background: linear-gradient(135deg, #d1fae5, #cffafe); }
.tk-pch-db-kpi.k2::after { background: linear-gradient(90deg, #10b981, #06b6d4); }
.tk-pch-db-kpi.k3 .tk-pch-db-kpi-ico { background: linear-gradient(135deg, #fce7f3, #fef3c7); }
.tk-pch-db-kpi.k3::after { background: linear-gradient(90deg, #ec4899, #f59e0b); }
.tk-pch-db-kpi.k4 .tk-pch-db-kpi-ico { background: linear-gradient(135deg, #e0f2fe, #e0e7ff); }
.tk-pch-db-kpi.k4::after { background: linear-gradient(90deg, #06b6d4, #6366f1); }

.tk-pch-db-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.tk-pch-db-panel { padding: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.tk-pch-db-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tk-pch-wrap .tk-pch-db-panel-head h3 { margin: 0 !important; padding: 0 !important; font-size: 16px !important; font-weight: 800 !important; color: #0f172a !important; }
.tk-pch-wrap .tk-pch-db-panel-head a { font-size: 13px; font-weight: 800; color: #6366f1 !important; text-decoration: none; }
.tk-pch-wrap a.tk-pch-db-row {
    display: flex; align-items: center; gap: 14px; padding: 12px; margin: 0 -8px; border-radius: 14px; text-decoration: none; color: inherit; transition: var(--tk-transition);
}
.tk-pch-wrap a.tk-pch-db-row + a.tk-pch-db-row { margin-top: 2px; }
.tk-pch-wrap a.tk-pch-db-row:hover { background: linear-gradient(135deg, #faf5ff, #eef2ff 60%, #ecfeff); }
.tk-pch-db-off { flex: 0 0 64px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--tkw-grad); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 6px 14px rgba(99, 102, 241, .3); }
.tk-pch-db-row.is-paused .tk-pch-db-off, .tk-pch-db-row.is-draft .tk-pch-db-off { background: #cbd5e1; box-shadow: none; }
.tk-pch-db-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-pch-db-row-main code { align-self: flex-start; padding: 1px 8px; border-radius: 6px; border: 1.5px dashed #a5b4fc; background: #eef2ff; color: #4338ca; font: 800 11.5px/1.4 monospace; letter-spacing: 1.5px; }
.tk-pch-db-row-main b { font-size: 14px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pch-db-row-main i { display: block; height: 5px; border-radius: 50px; background: #eef2f7; overflow: hidden; }
.tk-pch-db-row-main em { display: block; height: 100%; border-radius: 50px; background: var(--tkw-grad); }
.tk-pch-db-row-use { flex-shrink: 0; text-align: right; font-size: 11.5px; font-weight: 600; color: #64748b; }
.tk-pch-db-row-use strong { display: block; font-size: 20px; font-weight: 900; line-height: 1; color: #0f172a; }
.tk-pch-db-row-use small { font-size: 12px; color: #94a3b8; font-weight: 700; }
.tk-pch-db-empty { padding: 20px 10px; text-align: center; }
.tk-pch-db-empty span { font-size: 34px; }
.tk-pch-db-empty p { margin: 6px 0 14px; color: #64748b; }

.tk-pch-db-how ol { list-style: none; counter-reset: tkhow; margin: 0; padding: 0; }
.tk-pch-db-how li { counter-increment: tkhow; position: relative; margin: 0; padding: 0 0 16px 48px; }
.tk-pch-db-how li:last-child { padding-bottom: 0; }
.tk-pch-db-how li::before {
    content: counter(tkhow); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--tkw-grad); color: #fff; font-weight: 900; box-shadow: 0 6px 14px rgba(99, 102, 241, .3);
}
.tk-pch-db-how li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: #e0e7ff; }
.tk-pch-db-how li b { display: block; font-size: 14px; color: #0f172a; }
.tk-pch-db-how li span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #64748b; }

/* ===== La mia azienda ===== */
.tk-pch-pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.tk-pch-pf-main, .tk-pch-pf-side { display: grid; gap: 16px; min-width: 0; align-items: start; }
.tk-pch-pf-sec { padding: 22px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.tk-pch-pf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tk-pch-pf-ico { flex: 0 0 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--tkw-grad); box-shadow: var(--tkw-glow); }
.tk-pch-wrap .tk-pch-pf-head h3 { margin: 0 !important; padding: 0 !important; font-size: 17px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #0f172a !important; }
.tk-pch-pf-head p { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.tk-pch-pf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tk-pch-pf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.tk-pch-pf-field.is-wide, .tk-pch-pf-trio.is-wide { grid-column: 1 / -1; }
.tk-pch-pf-trio { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px; gap: 14px; }
.tk-pch-pf-duo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.tk-pch-pf-duo.is-wide { grid-column: 1 / -1; }
.tk-pch-pf-field > span { font-size: 12.5px; font-weight: 700; color: #334155; }
.tk-pch-pf-field small { font-size: 12px; color: #94a3b8; line-height: 1.4; }
.tk-pch-wrap .tk-pch-pf input.tk-pch-input {
    width: 100%; height: 46px; margin: 0; padding: 0 14px; border-radius: 12px !important; border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important; color: #0f172a !important; font-size: 14.5px; box-shadow: none !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-pf input.tk-pch-input:hover { border-color: #cbd5e1 !important; }
.tk-pch-wrap .tk-pch-pf input.tk-pch-input:focus { outline: 0; background: #fff !important; border-color: #6366f1 !important; box-shadow: 0 0 0 4px #e0e7ff !important; }

.tk-pch-pf-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 18px; cursor: pointer; text-align: center;
    border: 2px dashed #c7d2fe; border-radius: 18px; background: linear-gradient(135deg, #faf5ff, #eef2ff 60%, #ecfeff); transition: var(--tk-transition);
}
.tk-pch-pf-drop:hover { border-color: #6366f1; box-shadow: var(--tkw-glow); }
.tk-pch-pf-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tk-pch-pf-prev { width: 150px; height: 150px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.tk-pch-pf-prev img { max-width: 88%; max-height: 88%; object-fit: contain; }
.tk-pch-pf-prev em { font-style: normal; font-size: 40px; }
.tk-pch-pf-drop-txt b { display: inline-block; padding: 8px 18px; border-radius: 50px; background: var(--tkw-grad); color: #fff; font-size: 13px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 6px 14px rgba(99, 102, 241, .3); }
.tk-pch-pf-drop-txt small { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: #64748b; }
.tk-pch-pf-rm { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; font-weight: 600; color: #b91c1c; cursor: pointer; }
.tk-pch-pf-rm input { width: 16px; height: 16px; accent-color: #ef4444; }

.tk-pch-pf-kv { list-style: none; margin: 0; padding: 0; }
.tk-pch-pf-kv li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; font-size: 13.5px; }
.tk-pch-pf-kv li:last-child { border-bottom: 0; }
.tk-pch-pf-kv li span { color: #64748b; }
.tk-pch-pf-kv li b { color: #0f172a; font-weight: 800; }
.tk-pch-pf-kv b.tk-pch-pf-chip { padding: 3px 12px; border-radius: 50px; font-size: 12px; }
.tk-pch-pf-kv b.tk-pch-pf-chip.is-on { background: #d1fae5; color: #047857; }
.tk-pch-pf-kv b.tk-pch-pf-chip.is-off { background: #fee2e2; color: #b91c1c; }
.tk-pch-pf-note { margin: 10px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }
.tk-pch-wrap .tk-pch-pf-note a { color: #6366f1; font-weight: 700; }

.tk-pch-pf-bar {
    position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 16px; padding: 12px 12px 12px 20px; border-radius: 18px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid #e0e7ff; box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}
.tk-pch-pf-bar span { font-size: 13px; color: #64748b; }
.tk-pch-wrap .tk-pch-pf button.tk-pch-pf-save {
    flex-shrink: 0; height: auto; margin: 0; padding: 13px 26px; border: 0; border-radius: 12px !important; cursor: pointer;
    background: var(--tkw-grad) !important; color: #fff !important; font-size: 15px; font-weight: 800; line-height: 1.2; text-transform: none;
    box-shadow: var(--tkw-glow) !important; transition: var(--tk-transition);
}
.tk-pch-wrap .tk-pch-pf button.tk-pch-pf-save:hover { transform: translateY(-2px); }

@media (max-width: 1200px) {
    .tk-pch-db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tk-pch-db-grid, .tk-pch-pf-grid { grid-template-columns: minmax(0, 1fr); }
    .tk-pch-pf-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
    .tk-pch-embed .tk-pch-header-bar { border-radius: 16px; }
    .tk-pch-db-hero { flex-direction: column; align-items: stretch; padding: 22px 18px; }
    .tk-pch-db-hero-num { text-align: left; }
    .tk-pch-db-warn { flex-wrap: wrap; }
    .tk-pch-pf-side, .tk-pch-pf-fields, .tk-pch-pf-duo { grid-template-columns: minmax(0, 1fr); }
    .tk-pch-pf-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tk-pch-pf-trio .tk-pch-pf-field:nth-child(2) { grid-column: 1 / -1; order: -1; }
    .tk-pch-pf-sec { padding: 18px 14px; }
    .tk-pch-pf-bar { flex-direction: column; align-items: stretch; text-align: center; padding: 12px; }
}
@media (max-width: 480px) {
    .tk-pch-db-kpis { grid-template-columns: minmax(0, 1fr); }
}
