.labelgo-support{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:2147483000;
    display:block;
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    font-family:inherit
}

.labelgo-support-launcher{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:52px;
    padding:0 18px 0 12px;
    border:0;
    border-radius:999px;
    background:#ff596b;
    color:#fff;
    box-shadow:0 14px 42px rgba(0,0,0,.28);
    font:inherit;
    font-weight:850;
    cursor:pointer;
    transition:transform .16s ease,box-shadow .16s ease
}

.labelgo-support-launcher:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 48px rgba(0,0,0,.34)
}

.labelgo-support-launcher-icon{
    display:grid;
    width:30px;
    height:30px;
    place-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.17);
    font-size:1rem
}

/* По умолчанию окно ВСЕГДА закрыто */
.labelgo-support-panel{
    position:absolute;
    right:0;
    bottom:66px;
    width:min(390px,calc(100vw - 24px));
    height:min(600px,calc(100vh - 110px));
    flex-direction:column;
    overflow:hidden;
    border:1px solid #283444;
    border-radius:22px;
    background:#0e141c;
    color:#e7edf5;
    box-shadow:0 24px 80px rgba(0,0,0,.42)
}

#labelgo-support[data-open="0"] .labelgo-support-panel{
    display:none !important;
}

#labelgo-support[data-open="1"] .labelgo-support-panel{
    display:flex !important;
}

#labelgo-support [hidden]{
    display:none !important;
}

.labelgo-support-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:17px 18px;
    border-bottom:1px solid #273140;
    background:#121a24
}

.labelgo-support-header strong{
    display:block
}

.labelgo-support-header span{
    display:block;
    margin-top:3px;
    color:#8e9aaa;
    font-size:.75rem
}

.labelgo-support-close{
    display:grid;
    width:34px;
    height:34px;
    flex:0 0 34px;
    place-items:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:#1d2733;
    color:#cbd5e1;
    font:inherit;
    font-size:1.35rem;
    line-height:1;
    cursor:pointer
}

.labelgo-support-close:hover{
    background:#283544;
    color:#fff
}

.labelgo-support-chat{
    display:flex;
    min-height:0;
    flex:1;
    flex-direction:column
}

.labelgo-support-messages{
    flex:1;
    overflow:auto;
    padding:18px;
    scrollbar-width:thin
}

.labelgo-support-welcome{
    margin:4px 0 20px;
    padding:14px 15px;
    border:1px solid #263240;
    border-radius:15px;
    background:#121a24
}

.labelgo-support-welcome p{
    margin:6px 0 0;
    color:#9aa6b4;
    font-size:.88rem;
    line-height:1.5
}

.labelgo-support-message{
    display:flex;
    margin:11px 0;
    flex-direction:column
}

.labelgo-support-message.is-user{
    align-items:flex-end
}

.labelgo-support-message.is-support{
    align-items:flex-start
}

.labelgo-support-bubble{
    max-width:82%;
    padding:11px 13px;
    border-radius:15px;
    line-height:1.45;
    overflow-wrap:anywhere
}

.is-user .labelgo-support-bubble{
    background:#ff596b;
    color:#fff;
    border-bottom-right-radius:5px
}

.is-support .labelgo-support-bubble{
    background:#1a2531;
    color:#e8eef6;
    border-bottom-left-radius:5px
}

.labelgo-support-message small{
    margin-top:4px;
    color:#778391;
    font-size:.68rem
}

.labelgo-support-form{
    padding:13px;
    border-top:1px solid #26303d;
    background:#111820
}

.labelgo-support-form textarea{
    width:100%;
    min-height:76px;
    box-sizing:border-box;
    resize:none;
    padding:11px 12px;
    border:1px solid #303c4b;
    border-radius:12px;
    outline:none;
    background:#0b1118;
    color:#e7edf5;
    font:inherit
}

.labelgo-support-form textarea:focus{
    border-color:#ff596b
}

.labelgo-support-compose-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:9px
}

.labelgo-support-status{
    flex:1;
    color:#8f9baa;
    font-size:.7rem;
    line-height:1.25
}

.labelgo-support-status.is-error{
    color:#ff7f8d
}

.labelgo-support-form button,
.labelgo-support-email-form button{
    padding:9px 14px;
    border:0;
    border-radius:10px;
    background:#ff596b;
    color:#fff;
    font:inherit;
    font-weight:800;
    cursor:pointer
}

.labelgo-support-form button:disabled{
    cursor:not-allowed;
    opacity:.55
}

.labelgo-support-enter-hint{
    display:block;
    margin-top:7px;
    color:#647181;
    font-size:.66rem
}

.labelgo-support-email-step{
    padding:24px
}

.labelgo-support-email-step h3{
    margin:0 0 7px
}

.labelgo-support-email-step p{
    margin:0 0 18px;
    color:#98a4b2;
    line-height:1.5
}

.labelgo-support-email-form{
    display:grid;
    gap:10px
}

.labelgo-support-email-form input{
    min-height:46px;
    padding:10px 12px;
    border:1px solid #303c4b;
    border-radius:10px;
    background:#0b1118;
    color:#fff;
    font:inherit
}

@media(max-width:600px){
    .labelgo-support{
        right:12px;
        bottom:12px
    }

    .labelgo-support-panel{
        position:fixed;
        inset:12px;
        width:auto;
        height:auto;
        max-height:none;
        border-radius:18px
    }

    .labelgo-support-launcher-text{
        display:none
    }

    .labelgo-support-launcher{
        width:54px;
        padding:0;
        justify-content:center
    }
}


/* v1.0.6 — новые ответы поддержки */
.labelgo-support-unread-badge{
    display:grid;
    min-width:22px;
    height:22px;
    padding:0 6px;
    place-items:center;
    border:2px solid #ff596b;
    border-radius:999px;
    background:#fff;
    color:#c53043;
    font-size:.7rem;
    font-weight:900;
    line-height:1;
    box-sizing:border-box
}

.labelgo-support-unread-badge[hidden]{
    display:none !important
}

#labelgo-support.has-unread[data-open="0"] .labelgo-support-launcher{
    animation:labelgoSupportPulse 1.25s ease-in-out infinite;
}

#labelgo-support.has-unread[data-open="0"] .labelgo-support-launcher-icon{
    animation:labelgoSupportIconPulse .8s ease-in-out infinite alternate;
}

@keyframes labelgoSupportPulse{
    0%,100%{
        box-shadow:0 14px 42px rgba(0,0,0,.28);
        transform:translateY(0) scale(1)
    }
    50%{
        box-shadow:
            0 14px 42px rgba(0,0,0,.28),
            0 0 0 8px rgba(255,89,107,.13);
        transform:translateY(-1px) scale(1.03)
    }
}

@keyframes labelgoSupportIconPulse{
    from{opacity:.72}
    to{opacity:1}
}

@media (prefers-reduced-motion: reduce){
    #labelgo-support.has-unread[data-open="0"] .labelgo-support-launcher,
    #labelgo-support.has-unread[data-open="0"] .labelgo-support-launcher-icon{
        animation:none
    }
}
