.gc-msg {
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
    display: block;
    font-size: 0.9rem;
    white-space: pre-wrap;
    line-height: 1.4
}

.gc-msg.admin {
    background: #e8e8e8;
    color: #111;
    align-self: flex-start;
    margin-right: auto
}

.gc-msg.guest {
    background: #e6f5ff;
    color: #033;
    align-self: flex-end;
    margin-left: auto
}

.gc-msg.sent {
    background: #e6f5ff;
    color: #033;
    align-self: flex-end;
    margin-left: auto
}

.gc-msg.recv {
    background: #f1f1f3;
    color: #111;
    align-self: flex-start;
    margin-right: auto
}

.gc-msg.error {
    background: #ffe6e6;
    color: #800;
    align-self: flex-start
}

.gc-msg.ai {
    background: #d1ecf1;
    color: #0c5460;
    align-self: flex-start;
    margin-right: auto;
    border-left: 3px solid #0d6efd
}

#geopos-livechat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end
}

#gc-options {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 220px;
    margin-right: -80px
}

.gc-option-btn {
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
    font-size: 14px;
    font-weight: 500
}

.gc-option-btn .gc-icon {
    font-size: 20px;
    flex-shrink: 0
}

.gc-option-btn .gc-text {
    color: #333
}

.gc-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15)
}

.gc-option-admin:hover {
    background: #0d6efd;
    border-color: #0d6efd
}

.gc-option-admin:hover .gc-text {
    color: #fff
}

.gc-option-ai:hover {
    background: #ffc107;
    border-color: #ffc107
}

.gc-option-ai:hover .gc-text {
    color: #333
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Main Chat Button Container */
#gc-chat-button {
    margin-right: -12px;
    border-radius: 999px;
    background: rgba(39, 75, 227, 0.1);
    display: flex;
    align-items: center;
    height: 42px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    border: none;
    width: auto;
    margin-top: 35px;
    box-shadow: none;
    font-weight: 700;
    gap: 8px;
    /* spacing antara SVG dan text */
}

#gc-chat-button:hover {
    background: rgba(39, 75, 227, 0.1);
}

/* SVG Icon Styling - MATCH call-block i */
#gc-chat-button svg {
    font-size: 18px;
    /* visual size match */
    color: var(--blue, #0d6efd);
    padding: 7px;
    /* smaller padding untuk SVG 20x20 */
    background-color: var(--white, #ffffff);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    width: 32px;
    /* consistent visual size */
    height: 32px;
}

/* SVG Path - stroke color */
#gc-chat-button svg path {
    stroke: var(--blue, #0d6efd);
    stroke-width: 1.5;
}

/* Text Styling - MATCH call-block span */
#gc-chat-button span {
    padding-left: 0;
    /* no extra padding - sudah ada gap */
    font-weight: 700;
    line-height: 28px;
    text-transform: capitalize;
    color: #000;
    font-size: 12px;
    white-space: nowrap;
}

#gc-chat-button:active {
    transform: scale(0.98);
}

#gc-chat-panel {
    width: 400px;
    height: 550px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid #eee;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1201
}

#gc-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1200
}

.gc-chat-header {
    background: #0d6efd;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.gc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.gc-clear-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px
}

.gc-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2)
}

.gc-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px
}

.gc-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2)
}

.gc-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px
}

.gc-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg)
}

#gc-messages {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: #fafafa;
    gap: 6px;
    align-content: flex-start
}

#gc-loading {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    gap: 12px;
    z-index: 10
}

.gc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8e8e8;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

#gc-loading p {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    margin: 0
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.gc-input {
    display: flex;
    align-items: flex-end;
    padding: 8px;
    border-top: 1px solid #eee
}

.gc-input textarea {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-right: 8px;
    font-family: inherit;
    resize: none;
    min-height: 38px;
    max-height: 120px;
    line-height: 1.4;
    overflow-y: auto
}

.gc-input textarea:disabled {
    background: #f0f0f0;
    color: #999
}

.gc-input button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-end;
    height: 38px
}

.gc-input button:hover:not(:disabled) {
    background: #0056b3
}

.gc-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed
}

#gc-start-conversation {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    gap: 24px;
    z-index: 5;
    padding: 40px 20px;
    text-align: center
}

.gc-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #e6f5ff;
    border-radius: 50%;
    margin: 0 auto
}

.gc-welcome-icon svg {
    width: 48px;
    height: 48px
}

.gc-welcome-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.3
}

.gc-welcome-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 8px 0 0 0;
    line-height: 1.4
}

.gc-start-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    white-space: nowrap
}

.gc-start-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35)
}

.gc-start-btn:active {
    transform: translateY(0)
}

.gc-start-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0
}

.gc-start-description {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 0;
    line-height: 1.5
}

/* Hide chat button text on mobile */
@media (max-width: 991px) {
    #gc-chat-button span {
        display: none;
    }
}