/* General Chatbot Container */
#your-chatbot-widget-container {
    position: fixed;
    z-index: 9999;
    font-family: 'Inter', sans-serif; /* Recommended: Use a modern, clean font like Inter, Poppins, Roboto */
    transition: all 0.3s ease-in-out;
}

/* Positioning for Floating/Fixed Widgets */
.your-chatbot-bottom-right { bottom: 20px; right: 20px; }
.your-chatbot-bottom-left { bottom: 20px; left: 20px; }
.your-chatbot-top-right { top: 20px; right: 20px; }
.your-chatbot-top-left { top: 20px; left: 20px; }


/* Floating Bubble Style */
.your-chatbot-floating-bubble .your-chatbot-toggle-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0073aa, #005680); /* Gradient for a richer look */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Softer, deeper shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.your-chatbot-floating-bubble .your-chatbot-toggle-button:hover {
    transform: translateY(-3px); /* Subtle hover lift effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.your-chatbot-floating-bubble .chatbot-icon {
    width: 32px; /* Slightly larger */
    height: 32px;
    filter: invert(1); /* Makes icons white */
    opacity: 0.9; /* Slight transparency for softness */
}

.your-chatbot-floating-bubble .dashicons {
    font-size: 32px;
    color: #fff;
    opacity: 0.9;
}

.your-chatbot-floating-bubble .your-chatbot-chat-window {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: 80px; /* Adjust based on button size */
    right: 0;
    width: 350px; /* Slightly wider */
    max-height: 450px; /* Taller */
    background-color: #fff;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Deeper shadow for window */
    overflow: hidden;
    flex-direction: column;
    transform-origin: bottom right; /* For scaling animation */
    animation: scaleIn 0.3s ease-out forwards; /* Entry animation */
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Fixed Widget Style */
.your-chatbot-fixed-widget .your-chatbot-toggle-button {
    display: none; /* No separate toggle button */
}
.your-chatbot-fixed-widget .your-chatbot-chat-window {
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex; /* Always visible */
    flex-direction: column;
    overflow: hidden;
}

/* Full Screen Overlay Style */
.your-chatbot-full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.your-chatbot-full-screen-overlay .your-chatbot-toggle-button {
    display: none; /* Toggle button is assumed to be triggered from elsewhere for this style */
}
.your-chatbot-full-screen-overlay .your-chatbot-chat-window {
    width: 90%;
    max-width: 500px; /* Max width for larger screens */
    height: 80%;
    max-height: 600px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInScale 0.4s ease-out forwards;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Embedded Style (no specific fixed positioning or toggle button) */
.your-chatbot-embedded {
    position: relative; /* Allow flow within content */
    display: inline-block; /* Or block, depending on desired layout */
    z-index: auto; /* No fixed z-index */
    background: none; /* No background for container */
    box-shadow: none; /* No shadow for container */
}
.your-chatbot-embedded .your-chatbot-toggle-button {
    display: none; /* No toggle button in embedded mode */
}
.your-chatbot-embedded .your-chatbot-chat-window {
    display: flex; /* Always visible in embedded mode */
    position: static; /* Not absolutely positioned */
    width: 100%; /* Take full width of parent container */
    max-width: 100%; /* Or set a specific max-width as desired */
    height: auto; /* Or set a fixed height */
    max-height: 100%; /* Or set a specific max-height */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Lighter shadow for embedded */
    border: 1px solid #e0e0e0; /* Subtle border */
    flex-direction: column;
    overflow: hidden;
}


/* Shared Chat Window Styles */
.your-chatbot-chat-window {
    border: none; /* No outer border, let shadow do the work */
}

.your-chatbot-header {
    background: linear-gradient(90deg, #007bff, #0056b3); /* Primary blue gradient */
    color: #fff;
    padding: 18px 20px; /* More padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.your-chatbot-header h3 {
    margin: 0;
    font-size: 20px; /* Larger title */
    font-weight: 600; /* Slightly bolder */
}

.your-chatbot-header .close-chatbot {
    font-size: 28px; /* Larger close icon */
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease-in-out;
}
.your-chatbot-header .close-chatbot:hover {
    transform: rotate(90deg); /* Spin on hover */
}
/* Hide close button for embedded style if desired */
.your-chatbot-embedded .close-chatbot {
    display: none;
}


.your-chatbot-body {
    padding: 20px; /* More padding */
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f8f9fa; /* Light background for body */
}

.your-chatbot-body p {
    color: #343a40;
    line-height: 1.6;
    margin-bottom: 20px;
}

.your-chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 12px; /* More space between buttons */
    margin-top: 0;
}

.your-chatbot-option-button {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Lighter border */
    padding: 12px 18px; /* More padding */
    border-radius: 8px; /* More rounded */
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    transition: all 0.2s ease-in-out;
    display: flex; /* For icon and text alignment */
    align-items: center;
    color: #343a40;
    font-weight: 500;
    text-decoration: none; /* Ensure no underline on links */
}

.your-chatbot-option-button:hover {
    background-color: #e9ecef;
    border-color: #d1d1d1;
    transform: translateY(-2px); /* Subtle lift */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.your-chatbot-option-button .icon {
    margin-right: 12px; /* Space between icon and text */
    font-size: 20px; /* Icon size */
    color: #007bff; /* Default icon color */
    width: 20px; /* Ensure consistent width for icons */
    text-align: center; /* Center icon within its space */
}
/* Specific icon colors */
.your-chatbot-option-button[data-type="whatsapp"] .icon { color: #25D366; } /* WhatsApp green */
.your-chatbot-option-button[data-type="phone"] .icon { color: #28a745; } /* Phone green */
.your-chatbot-option-button[data-type="email"] .icon { color: #dc3545; } /* Email red */
.your-chatbot-option-button[data-type="custom_link"] .icon { color: #6c757d; } /* Grey for link */
.your-chatbot-option-button[data-type="messenger"] .icon { color: #0078FF; } /* Facebook Messenger blue */


/* Email Form */
.your-chatbot-email-form {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6; /* Lighter separator */
}

.your-chatbot-email-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
    font-size: 18px;
}

.your-chatbot-email-form input[type="text"],
.your-chatbot-email-form input[type="email"],
.your-chatbot-email-form textarea {
    width: calc(100% - 24px); /* Adjust for padding/border */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    color: #495057;
}
.your-chatbot-email-form input:focus,
.your-chatbot-email-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.your-chatbot-email-form button {
    background-color: #007bff; /* Primary button color */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.your-chatbot-email-form button:hover {
    background-color: #0056b3;
}
.your-chatbot-email-form button:disabled {
    background-color: #a0cdeb;
    cursor: not-allowed;
}

.your-chatbot-form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
}

.your-chatbot-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.your-chatbot-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .your-chatbot-floating-bubble.your-chatbot-bottom-right,
    .your-chatbot-fixed-widget.your-chatbot-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    .your-chatbot-floating-bubble .your-chatbot-chat-window,
    .your-chatbot-fixed-widget .your-chatbot-chat-window {
        width: calc(100vw - 30px);
        max-width: 350px;
        height: auto;
        bottom: 75px;
        right: 15px;
    }
    .your-chatbot-full-screen-overlay .your-chatbot-chat-window {
        width: 95%;
        height: 90%;
    }
}