/* style for pro chat form */
#Prochat-chat-widget-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
display: flex;
flex-direction: column;
align-items: flex-end;
}

#Prochat-start-chat-btn {
margin-top: 10px;
padding: 12px 20px;
background-color: #0084ff;
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

#Prochat-chat-window {
width: 350px;
height: 500px;
border: 1px solid #ddd;
border-radius: 15px;
display: flex;
flex-direction: column;
background: #fff;
box-shadow: 0 10px 15px rgba(0,0,0,0.5);
font-family: sans-serif;
}

#Prochat-chat-window.Prochat-hidden {
display: none;
}

#Prochat-chat-body {
flex: 1;
padding: 15px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
scroll-behavior: smooth;
}

.Prochat-hidden {
display: none;
}

/* Chat Bubbles */
.Prochat-bubble {
max-width: 80%;
padding: 10px 14px;
border-radius: 18px;
font-size: 14px;
line-height: 1.4;
}

.Prochat-bubble-secondary {
max-width: 80%;
padding-right: 3px;
font-size: 14px;
line-height: 1.4;
}

.Prochat-bubble-email-form {
max-width: 80%;
min-width: 250px;
padding: 10px 14px;
border-radius: 18px;
font-size: 14px;
line-height: 1.4;
}

.Prochat-org-msg {
align-self: flex-start;
background-color: #f1f0f0;
color: #000;
border-bottom-left-radius: 4px;
}

.Prochat-msgTitle {
align-self: flex-start;
background-color: #f1f0f0;
color: #888888;
font-size: 10px;
}

.Prochat-user-choice {
align-self: flex-end;
background-color: #0084ff;
color: white;
border-bottom-right-radius: 4px;
cursor: pointer;
transition: opacity 0.2s;
}

.Prochat-user-choice:hover {
opacity: 0.8;
}

/* Styling for the user's selection AFTER they click it */
.Prochat-user-choice-static {
align-self: flex-end;
background-color: #aa23ec;
color: white;
border-radius: 18px;
border-bottom-right-radius: 4px;
padding: 10px 14px;
margin-bottom: 10px;
opacity: 0.8; /* Slightly faded to show it's "locked in" */
}

.Prochat-user-choice-secondary {
align-self: flex-end;
color: #0084ff;
border-bottom-right-radius: 4px;
cursor: pointer;
transition: opacity 0.2s;
}

.Prochat-user-choice-secondary:hover {
opacity: 0.8;
}

/* Styling for the user's selection AFTER they click it */
.Prochat-user-choice-secondary-static {
align-self: flex-end;
background-color: #aa23ec;
color: white;
border-radius: 18px;
border-bottom-right-radius: 4px;
padding: 10px 14px;
margin-bottom: 10px;
opacity: 0.8; /* Slightly faded to show it's "locked in" */
}

/* Form Styling */
.Prochat-email-form input, .Prochat-email-form textarea {
width: 100%;
margin-top: 5px;
padding: 8px;
border-radius: 5px;
border: 1px solid #ccc;
transition: border 0.3s ease;
outline: none;
}
.Prochat-email-form button{
font-size: 14px;
background-color: #0084ff;
color: white;
border-radius: 10px;
padding: 10px;
cursor: pointer;
transition: opacity 0.2s;
}
/* Styling for validation errors */
.Prochat-error-field {
border: 2px solid #ff4d4d !important;
background-color: #fff6f6;
animation: shake 0.2s ease-in-out 0s 2;
}

@keyframes shake {
0% { margin-left: 0rem; }
25% { margin-left: 0.5rem; }
75% { margin-left: -0.5rem; }
100% { margin-left: 0rem; }
}

/* Typing Indicator Styles */
.Prochat-typing-indicator {
display: flex;
gap: 4px;
padding: 12px;
background: #f1f0f0;
width: fit-content;
border-radius: 18px;
margin-bottom: 10px;
}

.Prochat-typing-indicator span {
width: 6px;
height: 6px;
background: #999;
border-radius: 50%;
animation: blink 1.4s infinite both;
}

.Prochat-typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}

.Prochat-typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}

@keyframes blink {
0%, 80%, 100% { opacity: 0.2; }
40% { opacity: 1; }
}
#Prochat-chat-footer {
padding: 10px;
max-width: 45px;
display: flex;
justify-content: flex-start; /* Aligns button to the left */
background: #f9f9f9;
border-radius: 0px 10px 0px 10px;
}

#Prochat-back-btn {
background: none;
border: none;
color: #888;
cursor: pointer;
display: flex;
align-items: center;
transition: color 0.2s, transform 0.2s;
}

#Prochat-back-btn:hover {
color: #0084ff;
transform: scale(1.1);
}

/* Hide the back button initially if you prefer */
.Prochat-hidden-btn {
visibility: hidden;
opacity: 0;
}