#csc-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#csc-chat-toggle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: drop-shadow(0 4px 12px rgba(108,71,255,0.5));
    transition: transform 0.2s;
}
#csc-chat-toggle img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 3px solid #6c47ff;
    background: #000;
}
#csc-chat-toggle:hover { transform: scale(1.08); }

#csc-chat-box {
    width: 340px;
    height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
}

#csc-chat-header {
    background: #6c47ff;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
#csc-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

#csc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.csc-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.csc-msg.user {
    background: #6c47ff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.csc-msg.bot {
    background: #f1f0f5;
    color: #222;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.csc-msg.typing { color: #999; font-style: italic; }

#csc-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    gap: 8px;
}
#csc-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
}
#csc-input:focus { border-color: #6c47ff; }
#csc-send {
    background: #6c47ff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
#csc-send:hover { background: #5535e0; }

/* Email gate */
#csc-email-gate {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
#csc-email-gate p {
    font-size: 14px;
    color: #444;
    margin: 0;
    line-height: 1.5;
}
#csc-email-input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
#csc-email-input:focus { border-color: #6c47ff; }
#csc-email-submit {
    background: #6c47ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
}
#csc-email-submit:hover { background: #5535e0; }
