/* Ações recebidas no chat cliente. Layout e controladores permanecem nativos. */
body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button) {
    --chat-button-fill:#55d6be;
    --chat-button-hover:#80e6d2;
    --chat-button-pressed:#36b89f;
    --chat-button-ink:#07382f;
    --chat-button-edge:#176b5c;
    background:var(--chat-button-fill);
    color:var(--chat-button-ink);
    border:1px solid var(--chat-button-edge);
    border-radius:10px;
    box-shadow:inset 0 1px 0 #ffffff70,0 3px 0 #05182480;
    font-weight:750;
    cursor:pointer;
    text-decoration:none;
    transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease;
}
body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button):not(.menu-item) { min-height:44px; }
/* Secundárias têm superfície própria; Sim/Não continuam distinguíveis. */
body[data-access="client"] #clientMessages :is(
    [data-assistant-answer="Não"],[data-assistant-retry],
    .chat-license-history .ghost-button[type],
    [data-change-payment-plan]
) {
    --chat-button-fill:#234d70;
    --chat-button-hover:#2d618b;
    --chat-button-pressed:#183c5b;
    --chat-button-ink:#ffffff;
    --chat-button-edge:#91bbdf;
}
/* Menus automáticos mantêm ícones, descrições e grades existentes. */
body[data-access="client"] #clientMessages .menu-grid .menu-item[data-menu-action] {
    --chat-button-fill:#194953;
    --chat-button-hover:#225d68;
    --chat-button-pressed:#123c45;
    --chat-button-ink:#f1fffb;
    --chat-button-edge:#78d9c7;
}
body[data-access="client"] #clientMessages .menu-item :is(strong,small,.menu-icon,.menu-chevron) { color:#f1fffb; }
/* O amarelo aprovado continua reservado ao próximo passo de ativação. */
body[data-access="client"] #clientMessages .chat-license-history .license-activation-button[type] {
    --chat-button-fill:#ffdf4d;
    --chat-button-hover:#ffe875;
    --chat-button-pressed:#efc72e;
    --chat-button-ink:#123523;
    --chat-button-edge:#9f7d10;
}
body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button):not(:disabled):not([aria-disabled="true"]):hover {
    background:var(--chat-button-hover);
    filter:none;
    transform:none;
}
body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button):not(:disabled):not([aria-disabled="true"]):active {
    background:var(--chat-button-pressed);
    box-shadow:inset 0 2px 3px #00000030;
    transform:none;
}
body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button):focus-visible {
    outline:3px solid #ffffff;
    outline-offset:2px;
    box-shadow:0 0 0 6px #082c3b,inset 0 1px 0 #ffffff70;
}
body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button):is(:disabled,[aria-disabled="true"]) {
    background:#d2dbe2;
    color:#334655;
    border-color:#657a8c;
    box-shadow:none;
    opacity:1;
    filter:none;
    cursor:not-allowed;
}
body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button)[aria-busy="true"] { cursor:progress; }
@media(prefers-reduced-motion:reduce) {
    body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button) { transition:none; }
}
@media(forced-colors:active) {
    body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button) { border-color:ButtonText; box-shadow:none; }
    body[data-access="client"] #clientMessages :is(.menu-grid .menu-item[data-menu-action],
    .chat-payment-actions > button[data-menu-action],
    [data-dashboard-message],
    [data-chat-renew],
    [data-assistant-answer],
    [data-assistant-retry],
    .pix-card [data-copy-pix],
    .chat-payment-history .iptv-payment-card button,
    .chat-license-history button):focus-visible { outline-color:Highlight; }
}

/* A tinta dos rótulos acompanha o estado desabilitado do menu. */
body[data-access="client"] #clientMessages .menu-item:is(:disabled,[aria-disabled="true"]) :is(strong,small,.menu-icon,.menu-chevron) { color:#334655; }
