.wt-support-widget {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 999999;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wt-support-fab {
    border: 0;
    min-height: 56px;
    padding: 0 18px 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #00d084, #3b82f6);
    box-shadow: 0 18px 42px rgba(59, 130, 246, .34);
    cursor: pointer;
    font-weight: 900;
    font-size: 15px;
}

.wt-support-fab-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 20px;
}

.wt-support-box {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(380px, calc(100vw - 28px));
    height: 540px;
    max-height: calc(100vh - 120px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: #102033;
    border: 1px solid #dbe7f3;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.wt-support-box.active {
    display: flex;
}

.wt-support-head {
    padding: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #07111f, #102033);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wt-support-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.wt-support-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #07111f;
    background: linear-gradient(135deg, #00d084, #3b82f6);
    font-weight: 1000;
}

.wt-support-title strong {
    display: block;
    font-size: 15px;
}

.wt-support-title span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
}

.wt-support-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
}

.wt-support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f6f9ff;
}

.wt-support-note {
    padding: 12px;
    border-radius: 16px;
    background: #edf5ff;
    color: #34516f;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.wt-support-bubble {
    max-width: 84%;
    width: fit-content;
    padding: 10px 12px;
    border-radius: 16px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #dbe7f3;
    color: #102033;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.wt-support-bubble.admin {
    margin-left: auto;
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, #00d084, #3b82f6);
}

.wt-support-status {
    padding: 9px 12px;
    border-top: 1px solid #dbe7f3;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.wt-support-status.success {
    background: #ecfdf5;
    color: #047857;
}

.wt-support-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #dbe7f3;
}

.wt-support-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 110px;
    resize: none;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    padding: 12px;
    outline: none;
    font: inherit;
    font-size: 14px;
}

.wt-support-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}

.wt-support-form button {
    width: 48px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: #102033;
    cursor: pointer;
    font-weight: 900;
}

@media (max-width: 640px) {
    .wt-support-widget {
        right: 14px;
        bottom: 88px;
    }

    .wt-support-fab {
        min-height: 54px;
        padding-right: 14px;
    }

    .wt-support-box {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 154px;
        width: auto;
        height: min(560px, calc(100vh - 190px));
    }
}