/* Hypermedia Influencers — usa fontes, cores e botões do tema. Tudo com :where() (peso zero) para o tema mandar. */
.hmi{--hmi-accent:var(--wp--preset--color--primary,var(--wp--preset--color--contrast,#222));--hmi-line:color-mix(in srgb,currentColor 14%,transparent);--hmi-soft:color-mix(in srgb,var(--hmi-accent) 8%,transparent);
  font:inherit;color:inherit;max-width:1100px;margin:0 auto;box-sizing:border-box}
:where(.hmi) *,:where(.hmi) *::before,:where(.hmi) *::after{box-sizing:border-box}
:where(.hmi) h2,:where(.hmi) h3,:where(.hmi) h4{margin:0 0 .6em;line-height:1.2}
:where(.hmi) h3{font-size:1.2em}
:where(.hmi) p{margin:0 0 .8em}
:where(.hmi .hmi-muted){opacity:.72;font-size:.92em}
:where(.hmi .hmi-small){font-size:.9em}
:where(.hmi .hmi-card){border:1px solid var(--hmi-line);border-radius:16px;padding:clamp(16px,3vw,26px);margin:0 0 18px;background:color-mix(in srgb,var(--wp--preset--color--base,#fff) 92%,transparent)}
:where(.hmi .hmi-center){text-align:center}
:where(.hmi .hmi-alert){padding:12px 16px;border-radius:12px;margin:0 0 16px;font-weight:600}
:where(.hmi .hmi-alert--ok){background:#e8f7ee;color:#14532d}
:where(.hmi .hmi-alert--err){background:#fdecec;color:#7f1d1d}
/* botões: só se o tema não estilizar */
:where(.hmi .hmi-btn){display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--hmi-accent);color:#fff;border:0;border-radius:999px;padding:.75em 1.4em;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;line-height:1.2}
:where(.hmi .hmi-btn:hover){filter:brightness(1.07)}
:where(.hmi .hmi-link){background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;opacity:.8}
/* formulários */
:where(.hmi .hmi-form){display:flex;flex-direction:column;gap:14px}
:where(.hmi .hmi-grid){display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
:where(.hmi .hmi-full){grid-column:1/-1}
:where(.hmi label){display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95em}
:where(.hmi input:not([type=checkbox]):not([type=radio]),.hmi select,.hmi textarea){width:100%;padding:.7em .9em;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:10px;font:inherit;font-weight:400;background:transparent;color:inherit}
:where(.hmi select) option{color:#222}
:where(.hmi .hmi-check){flex-direction:row;align-items:center;gap:10px;font-weight:500}
:where(.hmi .hmi-hp){position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
:where(.hmi .hmi-terms) summary{cursor:pointer;font-weight:600}
:where(.hmi .hmi-terms) div{padding:8px 0 0;opacity:.85;font-size:.92em}
/* topo e abas */
:where(.hmi .hmi-hero){text-align:center;margin:0 0 22px}
:where(.hmi .hmi-benefits){list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;text-align:left}
:where(.hmi .hmi-benefits li){border:1px solid var(--hmi-line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px;background:var(--hmi-soft)}
:where(.hmi .hmi-benefits strong){color:var(--hmi-accent)}
:where(.hmi .hmi-tabs){display:flex;gap:8px;justify-content:center;margin:0 0 16px;flex-wrap:wrap}
:where(.hmi .hmi-tab){border:1px solid var(--hmi-line);background:transparent;color:inherit;border-radius:999px;padding:.6em 1.2em;font:inherit;font-weight:600;cursor:pointer}
:where(.hmi .hmi-tab.is-on){background:var(--hmi-accent);border-color:var(--hmi-accent);color:#fff}
:where(.hmi .hmi-top){display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 12px}
:where(.hmi .hmi-eyebrow){font-size:.8em;text-transform:uppercase;letter-spacing:.1em;color:var(--hmi-accent);font-weight:700}
:where(.hmi .hmi-nav){display:flex;gap:6px;overflow-x:auto;padding:4px 0 10px;margin:0 0 18px;border-bottom:1px solid var(--hmi-line);scrollbar-width:thin}
:where(.hmi .hmi-nav a){white-space:nowrap;padding:.55em 1em;border-radius:999px;text-decoration:none;color:inherit;font-weight:600;font-size:.95em}
:where(.hmi .hmi-nav a.is-on){background:var(--hmi-accent);color:#fff}
/* números */
:where(.hmi .hmi-kpis){display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 12px}
:where(.hmi .hmi-kpi){border:1px solid var(--hmi-line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
:where(.hmi .hmi-kpi span){font-size:.85em;opacity:.7}
:where(.hmi .hmi-kpi strong){font-size:1.45em;line-height:1.1}
:where(.hmi .hmi-kpi--hi){background:var(--hmi-accent);color:#fff;border-color:var(--hmi-accent)}
:where(.hmi .hmi-kpi--hi span){opacity:.9}
:where(.hmi .hmi-rank){background:var(--hmi-soft)}
/* copiar */
:where(.hmi .hmi-copy){display:flex;gap:8px;margin:0 0 10px}
:where(.hmi .hmi-copy input){flex:1;min-width:0}
:where(.hmi .hmi-copy--sm) .hmi-btn{padding:.6em 1em;font-size:.9em}
:where(.hmi .hmi-code){display:inline-block;padding:.25em .6em;border-radius:8px;background:var(--hmi-soft);border:1px dashed var(--hmi-accent);font-weight:700;cursor:copy;letter-spacing:.04em}
:where(.hmi .hmi-qrbox){display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
:where(.hmi .hmi-qr) svg,:where(.hmi .hmi-qr) img{width:150px;height:150px;display:block;background:#fff;padding:8px;border-radius:10px}
/* ofertas / materiais */
:where(.hmi .hmi-offers){display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
:where(.hmi .hmi-offer){border:1px solid var(--hmi-line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
:where(.hmi .hmi-offer img){width:100%;height:170px;object-fit:cover;display:block}
:where(.hmi .hmi-offer__b){padding:14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
:where(.hmi .hmi-offer h4){margin:0;font-size:1.05em}
:where(.hmi .hmi-earn){margin:0}
:where(.hmi .hmi-earn strong){color:var(--hmi-accent)}
/* tabelas */
:where(.hmi .hmi-table){width:100%;border-collapse:collapse;margin:0 0 18px;font-size:.95em}
:where(.hmi .hmi-table th,.hmi .hmi-table td){text-align:left;padding:10px 8px;border-bottom:1px solid var(--hmi-line);vertical-align:top}
:where(.hmi .hmi-table th){font-size:.85em;opacity:.7;font-weight:600}
:where(.hmi .hmi-pill){display:inline-block;padding:.2em .7em;border-radius:999px;font-size:.82em;font-weight:700;background:color-mix(in srgb,currentColor 10%,transparent)}
:where(.hmi .hmi-pill--aprovada){background:#e0f2fe;color:#075985}
:where(.hmi .hmi-pill--paga){background:#dcfce7;color:#166534}
:where(.hmi .hmi-pill--cancelada,.hmi .hmi-pill--recusada){background:#fee2e2;color:#991b1b}
:where(.hmi .hmi-inline){display:flex;gap:8px;flex-wrap:wrap}
:where(.hmi .hmi-inline input){flex:1;min-width:160px}
:where(.hmi .hmi-prefix){display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:400}
:where(.hmi .hmi-prefix span){opacity:.7;font-size:.9em}
:where(.hmi .hmi-prefix input){flex:1;min-width:140px}
:where(.hmi .hmi-ai-out){margin-top:14px;display:flex;flex-direction:column;gap:10px}
:where(.hmi .hmi-ai-out textarea){font-family:inherit;line-height:1.5}
:where(.hmi [hidden]){display:none!important}
:where(.hmi .is-loading){opacity:.6;pointer-events:none}
@media (max-width:640px){
  :where(.hmi .hmi-grid){grid-template-columns:1fr}
  :where(.hmi .hmi-qrbox){grid-template-columns:1fr;justify-items:center;text-align:center}
  :where(.hmi .hmi-table thead){display:none}
  :where(.hmi .hmi-table tr){display:block;border:1px solid var(--hmi-line);border-radius:12px;padding:6px 10px;margin:0 0 10px}
  :where(.hmi .hmi-table td){display:flex;justify-content:space-between;gap:10px;border:0;padding:6px 0}
  :where(.hmi .hmi-table td[data-l])::before{content:attr(data-l);font-weight:600;opacity:.7}
  :where(.hmi .hmi-copy){flex-direction:column}
}
