/* 2HEX Live — online presence + chat */

.hex-live-pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34bfa3;
    margin-right: 8px;
    animation: hex-live-pulse 1.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes hex-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

#hex-live-visitor-root {
    position: fixed;
    right: 76px;
    bottom: 16px;
    z-index: 99989;
}

.hex-live-chat-panel {
    width: 300px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.hex-live-chat-panel__header {
    background: #2c2c2c;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
}

.hex-live-chat-messages {
    height: 220px;
    overflow-y: auto;
    padding: 12px;
    background: #f9f9f9;
    font-size: 13px;
}

.hex-live-chat-msg {
    margin-bottom: 8px;
    max-width: 85%;
    padding: 8px 10px;
    border-radius: 10px;
    line-height: 1.4;
    word-break: break-word;
}

.hex-live-chat-msg--admin {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-right: auto;
}

.hex-live-chat-msg--visitor {
    background: #EB5A4A;
    color: #fff;
    margin-left: auto;
}

.hex-live-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

.hex-live-chat-form input[type="text"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
}

.hex-live-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 110px;
}

.hex-live-btn--accept { background: #0abb87; color: #fff; }

.hex-live-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-live-modal[hidden] { display: none !important; }

.hex-live-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hex-live-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 400px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    overflow: hidden;
}

.hex-live-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2c2c2c;
    color: #fff;
}

.hex-live-modal__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.hex-live-action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hex-live-action-btns .btn { font-size: 11px; padding: 4px 10px; }
