.vr60-chat-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color, #2a2a72);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vr60-chat-launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vr60-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #e11d48;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.vr60-chat-badge[hidden] {
    display: none !important;
}

.vr60-chat-launcher:hover {
    background: var(--secondary-color, #009ffd);
}

.vr60-chat-panel {
    position: fixed;
    right: 18px;
    bottom: 84px;
    z-index: 80;
    width: min(380px, calc(100vw - 24px));
    height: min(520px, 78vh);
    display: none;
    flex-direction: column;
    background: #fff;
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    overflow: hidden;
}

.vr60-chat-panel.is-open {
    display: flex;
}

.vr60-chat-head {
    padding: 14px 16px 12px;
    background: var(--primary-color, #2a2a72);
    color: #fff;
}

.vr60-chat-head strong {
    display: block;
    font-size: 15px;
}

.vr60-chat-head span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.85;
}

.vr60-chat-login {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 12px;
}

.vr60-chat-thread {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.vr60-chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f6f7fb;
}

.vr60-chat-jump {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 2;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color, #2a2a72);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.vr60-chat-jump[hidden] {
    display: none !important;
}

.vr60-chat-bubble {
    max-width: 85%;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.vr60-chat-bubble.is-client {
    margin-left: auto;
    background: var(--primary-color, #2a2a72);
    color: #fff;
}

.vr60-chat-bubble.is-operator {
    background: #fff;
    border: 1px solid #e4e6ee;
}

.vr60-chat-who {
    font-size: 11px;
    font-weight: 600;
    color: #5a5d72;
    margin-bottom: 3px;
}

.vr60-chat-bubble.is-system {
    margin: 8px auto;
    background: #fff3cd;
    color: #6b5300;
    font-size: 12px;
    text-align: center;
}

.vr60-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #ececf2;
    background: #fff;
}

.vr60-chat-form input[type="text"],
.vr60-chat-form input[type="tel"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #d7d9e2;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
}

.vr60-chat-form button {
    border: 0;
    border-radius: 10px;
    background: var(--primary-color, #2a2a72);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
}

.vr60-chat-form button:disabled {
    opacity: 0.5;
    cursor: default;
}

.vr60-chat-extra {
    padding: 0 10px 10px;
    background: #fff;
}

.vr60-chat-extra input {
    width: 100%;
    border: 1px solid #d7d9e2;
    border-radius: 10px;
    padding: 7px 10px;
    font: inherit;
}

.vr60-chat-empty {
    color: #667;
    font-size: 13px;
    padding: 8px 4px;
}

.vr60-chat-extra[hidden],
.vr60-chat-login[hidden],
.vr60-chat-panel[hidden] {
    display: none !important;
}
