.sacb-chat-widget {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 380px;
    max-width: 95vw;
    height: 480px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    z-index: 99998;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.sacb-chat-widget.sacb-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sacb-chat-widget.sacb-hidden {
    display: block;
    opacity: 0;
    pointer-events: none;
}

.sacb-chat-header {
    background: #000;
    color: #fff;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.sacb-chat-header .sacb-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
	padding: 8px;
}

.sacb-chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
}

.sacb-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sacb-msg {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
	text-align: left;
}

.sacb-user {
    align-self: flex-end;
    background: #0073aa;
    color: #fff;
	text-align: left;
}

.sacb-bot {
    align-self: flex-start;
    background: #fff;
    color: #000;
	border: 1px solid #e4e4e4;
	text-align: left;
}

.sacb-input-area {
    display: flex;
    border-top: 1px solid #ddd;
	position: relative;
}

.sacb-input {
    flex: 1;
    border: none;
    padding: 8px;
    resize: none;
    font-size: 14px;
	padding-right: 95px;
	line-height:1.5;
}

.sacb-input:focus {
    outline: none;
}

.sacb-send {
	position: absolute;
	top:7px;
	right:2px;
    border: none;
    background: #000;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    font-size: 14px;
	text-transform: none;
}

/* Floating bubble */
.sacb-floating-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 99999;
}

.sacb-floating-button .sacb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sacb-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
    padding: 1px 5px;
    line-height: 1.4;
}

.sacb-hidden {
    display: none !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .sacb-chat-widget {
        bottom: 145px;
        right: 10px;
        left: 10px;
        width: auto;
        height: 70vh;
    }
    .sacb-floating-button {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 16px;
    }
}
