/**
 * Toasts — Global toast + email-pending styles
 *
 * @package    BUZEECI
 * @subpackage core/toasts
 * @version    1.0.0
 * @since      04-04-2026
 */


/* ── Hide BB default feedback asides ──────────────────────────────────────── */
/* Our template override + JS handles these. Selector includes bp-template-notice
   to spare AJAX-injected asides (activity posting, group join, etc.) which BB
   builds without that class. */

aside.bp-feedback.bp-messages.bp-template-notice {
    display: none !important;
}


/* ── Toast ────────────────────────────────────────────────────────────────── */

.bzc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 9999;
    background: transparent !important;
    transform: translate(-50%, 80px);
    opacity: 0;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
    pointer-events: none;
}

.bzc-toast--visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.bzc-toast--out {
    transform: translate(-50%, 80px);
    opacity: 0;
    transition: transform 200ms ease-in, opacity 150ms ease-in;
}

.bzc-toast__pill {
    background: #1d9bf0;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(29, 155, 240, 0.3);
}


/* ── Email pending state ──────────────────────────────────────────────────── */
/* Amber border overrides focus blue on the email field when a change is pending. */

.bzc-settings-account .bzc-drill__detail-body .bzc-email-pending {
    border: 1px solid #ffad1f !important;
}

.bzc-settings-account .bzc-drill__detail-body .bzc-email-pending:focus-within {
    border: 1px solid #ffad1f !important;
}

.bzc-settings-account .bzc-email-pending .float-field__label {
    color: #ffad1f !important;
}

.bzc-email-pending-note {
    font-size: 12px;
    color: #8899a6;
    line-height: 1.5;
    margin-top: -14px;
    margin-bottom: 20px;
    padding: 0 2px;
}

.bzc-email-pending-note strong {
    color: #0f1419;
    font-weight: 600;
}

.bzc-email-pending-note a {
    color: #1d9bf0;
    text-decoration: none;
}

.bzc-email-pending-note a:hover {
    text-decoration: underline;
}
