/* RV_SOCIAL_MESSAGES_BADGE_DROPDOWN_V84A_20260612 */

.rv84a-message-root{
    position:relative;
    z-index:12000;
    display:inline-flex;
    align-items:center;
    margin-left:6px;
}

.rv84a-message-root.rv84a-fixed{
    position:fixed;
    top:14px;
    right:72px;
    z-index:30000;
    margin:0;
}

.rv84a-message-btn{
    position:relative;
    width:44px;
    height:44px;
    border:1px solid rgba(15,23,42,.10);
    border-radius:999px;
    display:grid;
    place-items:center;
    background:#fff;
    color:#111827;
    box-shadow:0 10px 30px rgba(15,23,42,.10);
    cursor:pointer;
    transition:transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.rv84a-message-btn:hover,
.rv84a-message-btn[aria-expanded="true"]{
    transform:translateY(-1px);
    border-color:rgba(225,6,0,.28);
    box-shadow:0 16px 36px rgba(225,6,0,.14);
    color:#e10600;
}

.rv84a-message-btn svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.25;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.rv84a-message-badge{
    position:absolute;
    top:-4px;
    right:-5px;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    display:none;
    align-items:center;
    justify-content:center;
    background:#e10600;
    color:#fff;
    border:2px solid #fff;
    font-size:11px;
    font-weight:950;
    line-height:1;
    box-shadow:0 10px 22px rgba(225,6,0,.28);
}

.rv84a-message-badge.is-visible{
    display:flex;
}

.rv84a-message-panel{
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    width:min(380px, calc(100vw - 22px));
    max-height:min(610px, calc(100vh - 96px));
    overflow:hidden;
    display:none;
    border:1px solid rgba(15,23,42,.10);
    border-radius:24px;
    background:#fff;
    box-shadow:0 28px 80px rgba(15,23,42,.22);
    color:#101828;
}

.rv84a-message-open .rv84a-message-panel{
    display:block;
}

.rv84a-message-head{
    padding:16px 16px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid #edf0f5;
}

.rv84a-message-head strong{
    font-size:17px;
    letter-spacing:-.03em;
    font-weight:950;
}

.rv84a-message-head a{
    color:#e10600;
    text-decoration:none;
    font-size:12px;
    font-weight:950;
}

.rv84a-message-list{
    max-height:440px;
    overflow:auto;
    padding:8px;
}

.rv84a-message-item{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:10px;
    padding:10px;
    border-radius:16px;
    color:#101828;
    text-decoration:none;
    transition:background .13s ease, transform .13s ease;
}

.rv84a-message-item:hover{
    background:#fff4f4;
    transform:translateY(-1px);
}

.rv84a-message-item.is-unread{
    background:#fffafa;
}

.rv84a-message-avatar{
    width:42px;
    height:42px;
    border-radius:15px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#ff342c,#780200);
    color:#fff;
    font-weight:950;
    overflow:hidden;
}

.rv84a-message-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.rv84a-message-title{
    margin:0;
    color:#101828;
    font-size:13px;
    font-weight:950;
    line-height:1.25;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.rv84a-message-body{
    margin:3px 0 0;
    color:#667085;
    font-size:12px;
    font-weight:750;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.rv84a-message-empty,
.rv84a-message-loading{
    padding:28px 18px;
    color:#667085;
    text-align:center;
    font-size:13px;
    font-weight:850;
}

.rv84a-message-foot{
    padding:10px;
    border-top:1px solid #edf0f5;
    display:flex;
    gap:8px;
}

.rv84a-message-foot a{
    flex:1;
    min-height:40px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
    color:#101828;
    text-decoration:none;
    font-size:12px;
    font-weight:950;
}

.rv84a-message-foot a.primary{
    background:linear-gradient(135deg,#ff342c,#780200);
    color:#fff;
}

@media(max-width:720px){
    .rv84a-message-root.rv84a-fixed{
        top:10px;
        right:62px;
    }

    .rv84a-message-panel{
        position:fixed;
        top:64px;
        right:10px;
        left:10px;
        width:auto;
    }
}
