.fspv-support-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17191f;
}

.fspv-support-widget.is-left {
    right: auto;
    left: 22px;
}

.fspv-support-launcher {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #181b22;
    color: #fff;
    box-shadow: 0 22px 60px rgba(0,0,0,.20);
    cursor: pointer;
    font-size: 24px;
}

.fspv-support-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(390px, calc(100vw - 32px));
    height: min(610px, calc(100vh - 115px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(0,0,0,.20);
}

.fspv-support-widget.is-left .fspv-support-panel {
    right: auto;
    left: 0;
}

.fspv-support-widget.is-open .fspv-support-panel {
    display: flex;
}

.fspv-support-header {
    padding: 18px;
    background: #181b22;
    color: #fff;
}

.fspv-support-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fspv-support-title {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
}

.fspv-support-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
}

.fspv-support-status {
    margin-top: 7px;
    font-size: 12px;
    opacity: .82;
}

.fspv-support-intro {
    margin: 12px 14px 0;
    padding: 12px 14px;
    border-radius: 13px;
    background: #f5f6f8;
    color: #454b55;
    font-size: 13px;
    line-height: 1.45;
}

.fspv-support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px 14px;
}

.fspv-support-message {
    display: flex;
    margin: 8px 0;
}

.fspv-support-message.is-visitor {
    justify-content: flex-end;
}

.fspv-support-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f0f2f5;
    color: #252932;
    font-size: 14px;
    line-height: 1.42;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.fspv-support-message.is-visitor .fspv-support-bubble {
    background: #181b22;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.fspv-support-composer {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

.fspv-support-compose-row {
    display: flex;
    gap: 8px;
}

.fspv-support-input {
    flex: 1;
    min-height: 43px;
    max-height: 115px;
    padding: 10px 11px;
    resize: none;
    border: 1px solid #d9dde4;
    border-radius: 12px;
    outline: none;
    font: inherit;
    font-size: 14px;
}

.fspv-support-send {
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 12px;
    background: #181b22;
    color: #fff;
    cursor: pointer;
}

.fspv-support-error {
    display: none;
    padding-top: 8px;
    color: #b42318;
    font-size: 12px;
}

.fspv-support-error.is-visible {
    display: block;
}

@media (max-width: 640px) {
    .fspv-support-widget {
        right: 14px;
        bottom: 14px;
    }

    .fspv-support-widget.is-left {
        right: auto;
        left: 14px;
    }

    .fspv-support-panel {
        position: fixed;
        left: 10px !important;
        right: 10px !important;
        bottom: 82px;
        width: auto;
        height: min(610px, calc(100vh - 105px));
    }
}


/*
 * ==========================================================
 * FSPV_SUPPORT_V0170E2_CLIENT_UNREAD_CSS
 * ==========================================================
 */

.fspv-support-launcher {
    position: relative;
}

.fspv-support-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fspv-support-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

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



/*
 * ==========================================================
 * FSPV_SUPPORT_V0170G_CLIENT_ATTACHMENTS_CSS
 * ==========================================================
 */

.fspv-support-attach {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.fspv-support-attach:hover {
    background: #f7f7f8;
}

.fspv-support-attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.fspv-support-selected-file {
    margin-top: 7px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 9px;
    background: rgba(0, 0, 0, .045);
    font-size: 12px;
}

.fspv-support-selected-file[hidden] {
    display: none !important;
}

.fspv-support-selected-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fspv-support-selected-file-remove {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.fspv-support-bubble.has-file {
    min-width: min(270px, 80vw);
}

.fspv-support-file-card {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fspv-support-file-image-link {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: block;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(0,0,0,.06);
}

.fspv-support-file-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fspv-support-file-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fspv-support-file-link {
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.fspv-support-file-info span {
    opacity: .68;
    font-size: 11px;
}

.fspv-support-file-caption {
    margin-top: 7px;
    white-space: pre-wrap;
}

@media (max-width: 520px) {
    .fspv-support-bubble.has-file {
        min-width: 0;
    }

    .fspv-support-file-image-link {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }
}


/*
 * ==========================================================
 * FSPV_SUPPORT_V0170H_TYPING_WIDGET_CSS
 * ==========================================================
 */

.fspv-support-typing {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 4px 12px 8px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 12px;
    opacity: .72;
}

.fspv-support-typing[hidden] {
    display: none !important;
}

.fspv-support-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.fspv-support-typing-dots i {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    animation:
        fspvSupportWidgetTypingDot
        1.1s
        infinite
        ease-in-out;
}

.fspv-support-typing-dots i:nth-child(2) {
    animation-delay: .14s;
}

.fspv-support-typing-dots i:nth-child(3) {
    animation-delay: .28s;
}

@keyframes fspvSupportWidgetTypingDot {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}
