#gc-chat-toggle {
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    z-index: 2000;
    cursor: pointer;
}

.gc-chat-unread {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.gc-chat-unread.show {
    display: flex;
}

#gc-chat-panel {
    position: fixed;
    right: 18px;
    bottom: 86px;
    width: min(360px, calc(100vw - 24px));
    height: 460px;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
    z-index: 2000;
    display: none;
    overflow: hidden;
}

#gc-chat-panel.open {
    display: flex;
    flex-direction: column;
}

.gc-chat-head {
    padding: 10px 12px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.gc-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-msg {
    max-width: 86%;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.gc-msg.guest {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
}

.gc-msg.admin {
    align-self: flex-start;
    background: #e2e8f0;
    color: #0f172a;
}

.gc-chat-form {
    border-top: 1px solid #e2e8f0;
    padding: 8px;
    display: grid;
    gap: 6px;
    background: #fff;
}

.gc-chat-form input,
.gc-chat-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    padding: 7px 8px;
    width: 100%;
    box-sizing: border-box;
}

.gc-chat-form textarea {
    resize: none;
    min-height: 64px;
}

.gc-chat-send {
    border: none;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    padding: 8px 10px;
    cursor: pointer;
}

.gc-chat-meta {
    font-size: 11px;
    color: #64748b;
}

#gc-chat-toast-container {
    position: fixed;
    right: 18px;
    bottom: 154px;
    z-index: 2100;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 24px));
}

.gc-chat-toast {
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.28);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gc-chat-toast.hide {
    opacity: 0;
    transform: translateY(8px);
}

.gc-chat-toast-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gc-chat-toast-text {
    font-size: 12px;
    line-height: 1.4;
    color: #e2e8f0;
    word-break: break-word;
}
