html.no-tooltip .noti-tooltip {
    display: none !important;
}

.noti-bar-wrapper {
    width: 100%;
    max-width: 400px;
    position: fixed;
    z-index: 999;
    background: #FFF;
    top: 0;
    right: 0;
    transform: translateX(100%);    
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);    
    will-change: transform;
    border-left: 1px solid #000;
    height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
    margin-top: var(--wp-admin--admin-bar--height, 0);
}

.noti-open-btn,
.noti-close-btn {
    cursor: pointer;
    position: relative;
    width: 24px;
    height: 24px;
}

.noti-open-btn:hover,
.noti-close-btn:hover {
    transform: scale(1.2);
}

.noti-tooltip {
    position: absolute;
    top: calc(100% + 12px); 
    right: -5px;
    background-color: var(--wp--preset--color--secundario);
    border: 1px solid #000;
    border-radius: 8px;
    padding: .5rem .75rem;
    color: #000;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    z-index: 10;
}

.noti-tooltip::before {
    content: "";
    position: absolute;
    top: -6px; /* Sube para sobresalir del borde superior */
    right: 12px; /* Alineado exacto con la campana */
    width: 10px;
    height: 10px;
    background-color: var(--wp--preset--color--secundario);
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    transform: rotate(45deg);
    z-index: 11; /* Queda sobre el borde del tooltip ocultándolo */
}


.has-unread::before {
    content:"";
    width: .75rem;
    height: .75rem;
    background-color: var(--wp--preset--color--secundario);
    border: 1px solid #000;
    border-radius: 3rem;
    position: absolute;
    right: 0;
}

.noti-bar-wrapper p,
.noti-bar-wrapper span {
    font-size: .8rem;
}

.noti-bar-wrapper header {
    padding: .5rem 1rem;
    display: flex;
    justify-content: space-between;
    background: var(--wp--preset--color--secundario);
}

.noti-bar-wrapper .noti-bar-container {
    padding: 1.5rem;
}

.noti-bar-container ul li {
    border-bottom: 1px solid #e1e1e1;
    padding: 1rem 1.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.noti-bar-wrapper.is-open {
    transform: translateX(0);
}

.unread {
    font-weight: 600;
}

.unread::before {
    content:"";
    width: .75rem;
    height: .75rem;
    background-color: var(--wp--preset--color--secundario);
    border: 1px solid #000;
    border-radius: 3rem;
    position: absolute;
    left: 0;
    top: 2.5rem;
}
