.support-chat {
    position: fixed;
    right: max(15px, env(safe-area-inset-right));
    bottom: max(15px, env(safe-area-inset-bottom));
    z-index: 99999;
}
.support-chat__launcher {
    width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 13px;
    border: 0;
    border-radius: 999px;
    background: var(--cg-color-accent);
    color: #fff;
    box-shadow: 0 16px 38px rgba(0, 52, 63, 0.28);
    font-weight: 700;
    overflow: hidden;
    transition:
        width 0.28s ease,
        gap 0.28s ease,
        padding 0.28s ease;
}
.support-chat__launcher span {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition:
        max-width 0.28s ease,
        opacity 0.2s ease;
}
.support-chat__launcher:hover,
.support-chat__launcher:focus-visible {
    width: 200px;
    gap: 10px;
    padding-inline: 18px;
}
.support-chat__launcher:hover span,
.support-chat__launcher:focus-visible span {
    max-width: 200px;
    opacity: 1;
}
.support-chat.is-open .support-chat__launcher {
    visibility: hidden;
}
.support-chat__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(390px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid rgba(0, 70, 85, 0.16);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 40, 50, 0.24);
}
.support-chat__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #005464;
    color: #fff;
}
.support-chat__header strong,
.support-chat__header span {
    display: block;
}
.support-chat__header span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}
.support-chat__close {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    padding: 0 !important;
    border: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
}
.support-chat__welcome {
    padding: 20px 18px;
    background: #f7fafb;
}
.support-chat__welcome h2 {
    color: #005464;
    font-size: 1.15rem;
}
.support-chat__profile-form {
    display: grid;
    gap: 7px;
}
.support-chat__profile-form label {
    font-size: 0.78rem;
    font-weight: 700;
}
.support-chat__profile-form input,
.support-chat__form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfdadd;
    border-radius: 11px;
    font: inherit;
}
.support-chat__profile-form button {
    margin-top: 9px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: #f4b400;
    color: #263e45;
    font-weight: 750;
}
.support-chat__consent {
    font-size: 0.7rem !important;
    color: #718087;
}
.support-chat__conversation[hidden],
.support-chat__welcome[hidden] {
    display: none !important;
}
.support-chat__messages {
    height: 290px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: #f5f8f9;
}
.support-chat__message {
    max-width: 88%;
    padding: 10px 13px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 52, 63, 0.07);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}
.support-chat__message--visitor {
    align-self: flex-end;
    background: #005464;
    color: #fff;
}
.support-chat__message--system {
    max-width: 100%;
    background: #fff6d8;
    color: #5d4a00;
}
.support-chat__message small {
    display: block;
    margin-top: 5px;
    color: #7d8b90;
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.82;
}
.support-chat__message--visitor small {
    color: rgba(255, 255, 255, 0.72);
}
.support-chat__activity {
    min-height: 28px;
    display: flex;
    justify-content: space-between;
    padding: 6px 15px;
    color: #718087;
    background: #fff;
    font-size: 0.7rem;
}
.support-chat__form {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 9px;
    padding: 8px 14px;
    border-top: 1px solid #e3eaec;
}
.support-chat__form button {
    width: 44px;
    border: 0;
    border-radius: 12px;
    background: #f4b400;
}
.support-chat__privacy {
    padding: 0 15px 12px;
    color: #73858a;
    font-size: 0.7rem;
}
.support-chat__closed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #fff6d8;
    color: #5d4a00;
    font-size: 0.78rem;
}
.support-chat__closed[hidden] {
    display: none;
}
.support-chat__closed button {
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: #005464;
    color: #fff;
    font-weight: 700;
}
@media (max-width: 575px) {
    .support-chat {
        right: 10px;
        bottom: 10px;
    }
    .support-chat__launcher span {
        display: none;
    }
    .support-chat__launcher {
        width: 54px;
        padding: 0;
        justify-content: center;
    }
    .support-chat__panel {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
    }
    .support-chat__messages {
        height: min(48dvh, 340px);
    }
}
