/* Shared interaction contrast. Loaded after custom.css so links styled as
   buttons retain their button foreground in both color modes. */
body.fused-whmcs .btn,
body.fused-whmcs .btn:hover,
body.fused-whmcs .btn:focus,
body.fused-whmcs .btn:active {
    text-decoration: none;
}

body.fused-whmcs .btn-primary,
body.fused-whmcs .btn-info {
    border-color: #00a7ad;
    background-color: #22d3ee;
    color: #042f32 !important;
}

body.fused-whmcs .btn-primary:hover,
body.fused-whmcs .btn-primary:focus,
body.fused-whmcs .btn-primary:active,
body.fused-whmcs .btn-info:hover,
body.fused-whmcs .btn-info:focus,
body.fused-whmcs .btn-info:active {
    border-color: #0891a5;
    background-color: #67e8f9;
    color: #042f32 !important;
}

body.fused-whmcs .btn-success {
    border-color: #047857;
    background-color: #10b981;
    color: #022c22 !important;
}

body.fused-whmcs .btn-success:hover,
body.fused-whmcs .btn-success:focus,
body.fused-whmcs .btn-success:active {
    border-color: #065f46;
    background-color: #34d399;
    color: #022c22 !important;
}

body.fused-whmcs .btn-warning {
    border-color: #b45309;
    background-color: #f59e0b;
    color: #451a03 !important;
}

body.fused-whmcs .btn-warning:hover,
body.fused-whmcs .btn-warning:focus,
body.fused-whmcs .btn-warning:active {
    border-color: #92400e;
    background-color: #fbbf24;
    color: #451a03 !important;
}

body.fused-whmcs .btn-danger {
    border-color: #991b1b;
    background-color: #dc2626;
    color: #fff !important;
}

body.fused-whmcs .btn-danger:hover,
body.fused-whmcs .btn-danger:focus,
body.fused-whmcs .btn-danger:active {
    border-color: #7f1d1d;
    background-color: #b91c1c;
    color: #fff !important;
}

body.fused-whmcs .btn-default,
body.fused-whmcs .btn-secondary,
body.fused-whmcs .btn-outline-primary {
    border-color: var(--fused-border-strong);
    background-color: var(--fused-surface);
    color: var(--fused-text) !important;
}

body.fused-whmcs .btn-default:hover,
body.fused-whmcs .btn-default:focus,
body.fused-whmcs .btn-default:active,
body.fused-whmcs .btn-secondary:hover,
body.fused-whmcs .btn-secondary:focus,
body.fused-whmcs .btn-secondary:active,
body.fused-whmcs .btn-outline-primary:hover,
body.fused-whmcs .btn-outline-primary:focus,
body.fused-whmcs .btn-outline-primary:active {
    border-color: var(--fused-cyan);
    background-color: var(--fused-surface-soft);
    color: var(--fused-text) !important;
}

body.fused-whmcs .btn-link {
    background-color: transparent;
    color: var(--fused-cyan) !important;
}

body.fused-whmcs .btn-link:hover,
body.fused-whmcs .btn-link:focus {
    background-color: var(--fused-surface-soft);
    color: #67e8f9 !important;
}

html[data-fused-theme="light"] body.fused-whmcs .btn-link {
    color: #6d28d9 !important;
}

html[data-fused-theme="light"] body.fused-whmcs .btn-link:hover,
html[data-fused-theme="light"] body.fused-whmcs .btn-link:focus {
    color: #581c87 !important;
}

body.fused-whmcs .btn > i,
body.fused-whmcs .btn > span,
body.fused-whmcs .btn > svg {
    color: inherit !important;
}

body.fused-whmcs .btn:focus-visible,
body.fused-whmcs button:focus-visible,
body.fused-whmcs [role="button"]:focus-visible {
    outline: 3px solid var(--fused-purple);
    outline-offset: 2px;
}

body.fused-whmcs .btn.disabled,
body.fused-whmcs .btn:disabled,
body.fused-whmcs .btn[disabled] {
    border-color: var(--fused-border);
    background-color: var(--fused-surface-soft);
    color: var(--fused-muted) !important;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

body.fused-whmcs.fused-domain-inactive [menuItemName="Domain Details Management"] .list-group-item.disabled {
    border-color: var(--fused-border);
    background-color: transparent;
    color: var(--fused-muted) !important;
    cursor: not-allowed;
    opacity: .62;
    pointer-events: none;
}

body.fused-whmcs.fused-domain-inactive [menuItemName="Domain Details Management"] .list-group-item.disabled * {
    color: inherit !important;
}

/* Message attachment links live on colored conversation bubbles. The global
   page-link palette must not replace their inherited high-contrast text. */
body.fused-whmcs .fused-ticket-chat-message.is-client .fused-ticket-chat-attachments a,
body.fused-whmcs .fused-ticket-chat-message.is-client .fused-ticket-chat-attachments a:hover,
body.fused-whmcs .fused-ticket-chat-message.is-client .fused-ticket-chat-attachments a:focus,
body.fused-whmcs .fused-ticket-chat-message.is-third-party .fused-ticket-chat-attachments a,
body.fused-whmcs .fused-ticket-chat-message.is-third-party .fused-ticket-chat-attachments a:hover,
body.fused-whmcs .fused-ticket-chat-message.is-third-party .fused-ticket-chat-attachments a:focus {
    color: #fff !important;
}
