/* comment-notify.css  --  "X replied to your comment" toasts, anchored on the
   RIGHT EDGE, vertically centred (bottom-right collides with the floating
   buttons on the homepage). Toasts stay until dismissed. TEST: 1v1-lol only. */

.cmt-notif-stack {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: min(340px, calc(100vw - 36px));
    max-height: 96vh;
    pointer-events: none;
    /* NO horizontal overflow / transforms anywhere below -> the page can
       never get a sideways scrollbar from a toast animating. */
}

.cmt-notif {
    pointer-events: auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #14161f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    color: #e9eaf2;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 13.5px;
    line-height: 1.4;
    /* enter/leave with vertical + fade + collapse only -- never sideways */
    max-height: 200px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.22s ease,
        transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.cmt-notif.is-in {
    opacity: 1;
    transform: translateY(0);
}
.cmt-notif.is-out {
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0 !important;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        max-height 0.22s ease 0.08s,
        border-width 0.22s ease 0.08s,
        margin-bottom 0.22s ease 0.08s,
        padding-top 0.22s ease 0.08s,
        padding-bottom 0.22s ease 0.08s;
}

.cmt-notif.is-link { cursor: pointer; }
.cmt-notif.is-link:hover { border-color: rgba(0, 242, 254, 0.45); }

.cmt-notif-icon {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.3;
}

.cmt-notif-msg {
    flex: 1;
    min-width: 0;
}
.cmt-notif-msg strong { color: #fff; }

.cmt-notif-close {
    flex: 0 0 auto;
    margin: -4px -4px 0 0;
    padding: 2px 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.cmt-notif-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 575px) {
    .cmt-notif-stack {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 12px;
        transform: none;
        width: auto;
    }
}
