/* MF Social Proof popups (brand gold #B4975E).
   Selectors are #id-scoped and key properties hardened with !important because
   the theme (BuddyBoss/Elementor) styles bare `button` and `a` elements globally. */
#mfsp-stack {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99998;
    pointer-events: none;
}

#mfsp-stack,
#mfsp-stack * {
    box-sizing: border-box;
    font-family: inherit;
}

#mfsp-stack .mfsp-card {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 330px;
    padding: 12px 36px 12px 12px;
    background: #fff;
    border-left: 3px solid #B4975E;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    /* Enters by fading in while sliding up from below the viewport edge. */
    transform: translateY(48px);
    transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#mfsp-stack .mfsp-card.mfsp-in {
    opacity: 1;
    transform: none;
}

#mfsp-stack .mfsp-card.mfsp-clickable {
    cursor: pointer;
}

#mfsp-stack .mfsp-ava {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #B4975E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
}

#mfsp-stack .mfsp-txt {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #222;
}

/* Small CTA link at the bottom of the popup (theme link styling neutralized). */
#mfsp-stack a.mfsp-cta,
#mfsp-stack a.mfsp-cta:visited {
    display: inline-block;
    margin-top: 5px;
    color: #B4975E !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

#mfsp-stack a.mfsp-cta:hover,
#mfsp-stack a.mfsp-cta:focus {
    color: #997e4c !important;
    text-decoration: underline !important;
}

#mfsp-stack .mfsp-txt strong {
    font-weight: 600;
}

#mfsp-stack .mfsp-time {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #888;
}

/* Close button: full reset first, the theme styles bare <button> as a gold pill. */
#mfsp-stack button.mfsp-x {
    all: unset;
    position: absolute !important;
    top: 4px !important;
    right: 8px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 2px 6px !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #999 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
}

#mfsp-stack button.mfsp-x:hover {
    color: #444 !important;
}

#mfsp-stack button.mfsp-x:focus-visible {
    outline: 2px solid #B4975E !important;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    #mfsp-stack {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    #mfsp-stack .mfsp-card {
        max-width: none;
    }
}

#mfsp-stack.mfsp-no-anim .mfsp-card {
    transition: none;
    transform: none;
}
