.dg-messenger-widget {
    position: fixed;
    right: 23px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.dg-messenger-panel {
    position: absolute;
    right: 80px;
    bottom: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 118px);
    min-height: 64px;
    padding: 9px 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(28px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 33px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 3px 12px rgba(0, 10, 30, 0.28);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.dg-messenger-widget.is-open .dg-messenger-panel {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s;
}

.dg-messenger-link {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    text-decoration: none;
}

.dg-messenger-link img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.dg-messenger-toggle {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(50, 60, 90, 0.62);
    box-shadow: 5px 5px 30px rgba(0, 10, 30, 0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.dg-messenger-toggle:hover,
.dg-messenger-toggle:focus {
    background: rgba(50, 60, 90, 0.78);
}

.dg-messenger-toggle:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.dg-messenger-toggle svg {
    display: block;
    width: 50px;
    height: 50px;
    fill: currentColor;
}

.dg-messenger-widget.pc0 {
    display: none;
}

@media screen and (max-width: 960px) {
    .dg-messenger-widget {
        right: 18px;
        bottom: 18px;
    }

    .dg-messenger-widget.pc0 {
        display: flex;
    }

    .dg-messenger-widget.mob0 {
        display: none;
    }

    .dg-messenger-panel {
        right: 72px;
        max-width: calc(100vw - 108px);
        min-height: 58px;
        padding: 7px 10px;
        gap: 10px;
    }

    .dg-messenger-toggle {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .dg-messenger-toggle svg {
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-messenger-panel {
        transition: none;
    }
}
