/**
 * The Wealth Events v1.22.95
 * Final brand interaction guard.
 *
 * This file intentionally loads after the shared theme, platform polish,
 * launch hardening and compact-workspace CSS. It prevents the active
 * WordPress theme from re-introducing blue button hover/focus states and
 * keeps success/readiness styling from turning large areas of the product
 * green. Facebook/LinkedIn brand icons are intentionally not recolored.
 */

body.twe-site {
    --twe-interaction-plum: #2d143b;
    --twe-interaction-plum-hover: #4a2059;
    --twe-interaction-gold: #d8b56e;
    --twe-interaction-gold-light: #efd99d;
    --twe-interaction-cream: #fff9ee;
    --twe-interaction-ink: #241728;
}

/* -------------------------------------------------------------------------
 * Global branded button interactions.
 * ---------------------------------------------------------------------- */
body.twe-site .twe-btn:hover,
body.twe-site .twe-btn:focus,
body.twe-site .twe-btn:focus-visible,
body.twe-site .twe-btn:active {
    border-color: var(--twe-interaction-gold) !important;
    box-shadow: 0 12px 28px rgba(45,20,59,.18) !important;
}

body.twe-site .twe-btn-dark:hover,
body.twe-site .twe-btn-dark:focus,
body.twe-site .twe-btn-dark:focus-visible,
body.twe-site .twe-btn-dark:active,
body.twe-site .twe-btn:not(.twe-btn-gold):not(.twe-btn-outline):not(.twe-btn-outline-light):hover,
body.twe-site .twe-btn:not(.twe-btn-gold):not(.twe-btn-outline):not(.twe-btn-outline-light):focus-visible {
    background: var(--twe-interaction-plum-hover) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.twe-site .twe-btn-gold:hover,
body.twe-site .twe-btn-gold:focus,
body.twe-site .twe-btn-gold:focus-visible,
body.twe-site .twe-btn-gold:active {
    background: linear-gradient(135deg,var(--twe-interaction-gold-light),var(--twe-interaction-gold)) !important;
    border-color: #b68e3e !important;
    color: #171019 !important;
    -webkit-text-fill-color: #171019 !important;
}

body.twe-site .twe-btn-outline:hover,
body.twe-site .twe-btn-outline:focus,
body.twe-site .twe-btn-outline:focus-visible,
body.twe-site .twe-btn-outline-light:hover,
body.twe-site .twe-btn-outline-light:focus,
body.twe-site .twe-btn-outline-light:focus-visible {
    background: rgba(216,181,110,.14) !important;
    border-color: var(--twe-interaction-gold) !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

/* The floating help control was still inheriting Astra/WordPress blue hover. */
body.twe-site .twe-context-help-trigger,
body.twe-site .twe-context-help-trigger:link,
body.twe-site .twe-context-help-trigger:visited {
    background: var(--twe-interaction-plum) !important;
    border: 1px solid rgba(216,181,110,.58) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body.twe-site .twe-context-help-trigger:hover,
body.twe-site .twe-context-help-trigger:focus,
body.twe-site .twe-context-help-trigger:focus-visible,
body.twe-site .twe-context-help-trigger:active {
    background: var(--twe-interaction-plum-hover) !important;
    border-color: var(--twe-interaction-gold) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 15px 34px rgba(45,20,59,.28) !important;
}
body.twe-site .twe-context-help-trigger > span,
body.twe-site .twe-context-help-trigger:hover > span,
body.twe-site .twe-context-help-trigger:focus > span,
body.twe-site .twe-context-help-trigger:focus-visible > span {
    background: var(--twe-interaction-gold) !important;
    color: var(--twe-interaction-plum) !important;
    -webkit-text-fill-color: var(--twe-interaction-plum) !important;
}

/* Native submit controls that are not rendered through .twe-btn. */
body.twe-site button[type="submit"]:not(.twe-btn):hover,
body.twe-site button[type="submit"]:not(.twe-btn):focus-visible,
body.twe-site input[type="submit"]:hover,
body.twe-site input[type="submit"]:focus-visible,
body.twe-site input[type="button"]:hover,
body.twe-site input[type="button"]:focus-visible {
    background: var(--twe-interaction-plum-hover) !important;
    border-color: var(--twe-interaction-gold) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Common workspace buttons that are raw <button> elements rather than .twe-btn. */
body.twe-site :is(
    .twe-command-panel-heading > button,
    .twe-checkin-member-events button,
    .twe-checkin-resend button,
    .twe-ticket-resend-actions button,
    .twe-host-manage-menu > summary,
    .twe-people-menu > summary
):hover,
body.twe-site :is(
    .twe-command-panel-heading > button,
    .twe-checkin-member-events button,
    .twe-checkin-resend button,
    .twe-ticket-resend-actions button,
    .twe-host-manage-menu > summary,
    .twe-people-menu > summary
):focus-visible {
    background: var(--twe-interaction-plum-hover) !important;
    border-color: var(--twe-interaction-gold) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Text/navigation hover should be gold/plum, never WordPress blue. */
body.twe-site :is(
    .twe-nav-links,
    .twe-host-manage-dropdown,
    .twe-people-dropdown,
    .twe-footer,
    .twe-workspace-tabs,
    .twe-command-picker
) a:hover,
body.twe-site :is(
    .twe-nav-links,
    .twe-host-manage-dropdown,
    .twe-people-dropdown,
    .twe-footer,
    .twe-workspace-tabs,
    .twe-command-picker
) a:focus-visible {
    color: var(--twe-interaction-gold-light) !important;
    -webkit-text-fill-color: var(--twe-interaction-gold-light) !important;
}

/* -------------------------------------------------------------------------
 * Reduce the amount of green. Success remains understandable, but large
 * surfaces use the Wealth Events cream/gold/plum palette. Tiny provider/social
 * status marks may remain green where that semantic signal is useful.
 * ---------------------------------------------------------------------- */
body.twe-site :is(
    .twe-command-notice:not(.is-warning),
    .twe-checkin-notice-success,
    .twe-checkin-live.is-success,
    .twe-checkin-team-message-success,
    .twe-membership-notice.is-success,
    .twe-account-success
) {
    background: var(--twe-interaction-cream) !important;
    border-color: rgba(184,140,49,.48) !important;
    color: #51391c !important;
    -webkit-text-fill-color: #51391c !important;
}

body.twe-site .twe-command-stats article.is-green {
    border-color: rgba(184,140,49,.42) !important;
}
body.twe-site .twe-command-stats article.is-green::after {
    background: #fbf3df !important;
}
body.twe-site .twe-command-status.is-live,
body.twe-site .twe-command-status.is-preflight {
    background: #fbf3df !important;
    color: #674715 !important;
    -webkit-text-fill-color: #674715 !important;
}
body.twe-site .twe-command-status.is-live i,
body.twe-site .twe-command-status.is-preflight i {
    background: var(--twe-interaction-gold) !important;
    box-shadow: 0 0 0 5px rgba(216,181,110,.18) !important;
}
body.twe-site :is(
    .twe-payment-status.is-ready,
    .twe-status-pill.is-ready,
    .twe-platform-status-pill.is-ready
) {
    background: #fbf3df !important;
    border-color: rgba(184,140,49,.42) !important;
    color: #674715 !important;
    -webkit-text-fill-color: #674715 !important;
}

/* Retain a small green semantic check instead of a green card/background. */
body.twe-site :is(
    .twe-command-notice:not(.is-warning),
    .twe-checkin-notice-success,
    .twe-checkin-live.is-success,
    .twe-checkin-team-message-success
) :is(svg,.dashicons,[aria-hidden="true"]),
body.twe-site .twe-provider-result.is-success > :first-child {
    color: #2f7048 !important;
}

/* Preserve intentional social network brand colors. */
body.twe-site .twe-social-platform-tabs button[data-social-platform="facebook"] .twe-social-icon {
    background: #1877f2 !important;
}
body.twe-site .twe-social-platform-tabs button[data-social-platform="linkedin"] .twe-social-icon {
    background: #0a66c2 !important;
}

/* v1.22.96 — production workspace raw controls must never inherit theme blue. */
body.twe-production-site :is(
  .twe-production-task-toggle,
  .twe-production-add,
  .twe-production-remove,
  .twe-production-reset-link button
):hover,
body.twe-production-site :is(
  .twe-production-task-toggle,
  .twe-production-add,
  .twe-production-remove,
  .twe-production-reset-link button
):focus,
body.twe-production-site :is(
  .twe-production-task-toggle,
  .twe-production-add,
  .twe-production-remove,
  .twe-production-reset-link button
):focus-visible{
  background:#3f1b4d!important;
  border-color:#d7b567!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
