/* GG_CHAT_EMOJI_SOUND_V2_CSS */

.gg-chat-emoji-host {
    position: relative !important;
    min-width: 0 !important;
}

.gg-chat-emoji-host textarea[name="body"] {
    padding-right: 49px !important;
}

.gg-chat-laugh-button {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 8;

    width: 34px;
    height: 34px;
    min-width: 34px;

    display: grid;
    place-items: center;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: transparent;
    font-size: 1.28rem;
    line-height: 1;
    cursor: pointer;

    transition:
        background-color .16s ease,
        transform .16s ease;
}

.gg-chat-laugh-button:hover,
.gg-chat-laugh-button:focus-visible {
    outline: none;
    background: #e8f2ff;
    transform: scale(1.06);
}

.gg-chat-laugh-button:active {
    transform: scale(.94);
}

.gg-chat-sound-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: inline-grid;
    place-items: center;

    margin-left: auto;
    padding: 0;

    border: 1px solid #cfe0f2;
    border-radius: 13px;

    background: #edf5ff;
    color: #1766c5;

    font-size: 1.16rem;
    line-height: 1;
    cursor: pointer;

    transition:
        background-color .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.gg-chat-sound-toggle:hover,
.gg-chat-sound-toggle:focus-visible {
    outline: none;
    border-color: #95bee9;
    background: #e3f0ff;
    transform: translateY(-1px);
}

.gg-chat-sound-toggle.is-muted {
    border-color: #dfe4ea;
    background: #f3f4f6;
    color: #778397;
}

.gg-chat-sound-toggle.needs-activation {
    animation: gg-chat-sound-pulse 1.2s ease-in-out infinite;
}

@keyframes gg-chat-sound-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 118, 237, 0);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(22, 118, 237, .15);
    }
}

@media (max-width: 650px) {
    .gg-chat-laugh-button {
        right: 5px;
        bottom: 5px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1.18rem;
    }

    .gg-chat-emoji-host textarea[name="body"] {
        padding-right: 45px !important;
    }

    .gg-chat-sound-toggle {
        width: 39px;
        height: 39px;
        min-width: 39px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gg-chat-sound-toggle.needs-activation {
        animation: none;
    }
}
