/* =========================
   RESET
========================= */
#wpsaas-box * {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* =========================
   TOGGLE BUTTON
========================= */
#wpsaas-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #16a34a;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    cursor: pointer;
    z-index: 9999;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

#wpsaas-toggle:hover {
    transform: scale(1.1);
}

/* =========================
   CHAT BOX
========================= */
#wpsaas-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =========================
   HEADER
========================= */
.wpsaas-header {
    background: #16a34a;
    color: #fff;
    padding: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpsaas-header span{
	font-size: 14px;
}

#wpsaas-close {
    cursor: pointer;
    font-size: 18px;
}

/* =========================
   MESSAGES
========================= */
#wpsaas-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}

/* =========================
   CHAT BUBBLES (FIXED)
========================= */
.wpsaas-user,
.wpsaas-bot {
    margin: 6px 0;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 14px;
}

/* USER */
.wpsaas-user {
    align-self: flex-end;
    background: #dcfce7;
}

/* BOT */
.wpsaas-bot {
    align-self: flex-start;
    background: #e5e7eb;
}

/* =========================
   TYPING
========================= */
.wpsaas-typing {
    font-style: italic;
    opacity: 0.7;
}

/* =========================
   INPUT AREA
========================= */
.wpsaas-input-area {
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
}

#wpsaas-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

#wpsaas-send {
    width: 50px;
    background: #16a34a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* =========================
   LEAD FORM
========================= */
.wpsaas-lead-form {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.wpsaas-lead-form input {
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.wpsaas-lead-form button {
    width: 100%;
    padding: 8px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================
   SUCCESS
========================= */
.wpsaas-success {
    color: green;
    font-weight: bold;
    text-align: center;
}

#wpsaas-wa-float {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 9999;
}

#wpsaas-wa-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: pulse 1.8s infinite;
}

#wpsaas-end-chat{
	background:#ef4444;
	color:#fff;
	border:none;
	padding:4px 8px;
	border-radius:4px;
	cursor:pointer;
	font-size:12px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

