#pcz-chat-root {
    position: fixed;
    z-index: 999999;
    bottom: 20px;
    right: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pcz-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5);
    transition: transform 0.15s ease;
}
.pcz-bubble:hover {
    transform: scale(1.06);
}

.pcz-window {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 420px;
    max-height: 70vh;
    background: #15121c;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pcz-header {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pcz-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    opacity: 0.85;
}
.pcz-close:hover {
    opacity: 1;
}

.pcz-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #15121c;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pcz-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.pcz-msg-visitor {
    align-self: flex-end;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.pcz-msg-agent {
    align-self: flex-start;
    background: #262130;
    color: #eee;
    border-bottom-left-radius: 4px;
}

.pcz-form {
    display: flex;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding: 8px;
    gap: 6px;
    background: #15121c;
}

.pcz-form input {
    flex: 1;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: #1f1a29;
    color: #fff;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
}
.pcz-form input::placeholder {
    color: #9c94ab;
}
.pcz-form input:focus {
    border-color: #a855f7;
}

.pcz-form button {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}
.pcz-form button:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .pcz-window {
        width: calc(100vw - 24px);
        right: -8px;
    }
}
