/* Public CSS for Your AI Chatbot */
:root {
    --yourai-primary: #1F2437;
    /* Default fallback */
    --yourai-gold: #AA8A61;
    --yourai-dark: #3B3B45;
    --yourai-gray: #595945;
    --yourai-bg: #F7F8FA;
    --yourai-white: #FFFFFF;
}

.yourai-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.yourai-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--yourai-primary) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.yourai-chatbot-toggle:hover {
    transform: scale(1.05);
}

.yourai-chatbot-toggle svg {
    width: 32px;
    height: 32px;
}

.yourai-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--yourai-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.yourai-hidden {
    display: none !important;
}

.yourai-chatbot-header {
    background: var(--yourai-primary) !important;
    color: var(--yourai-white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yourai-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--yourai-white);
}

.yourai-chatbot-header button {
    background: none;
    border: none;
    color: var(--yourai-white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.yourai-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--yourai-bg);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yourai-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.yourai-bot {
    background: var(--yourai-white);
    color: var(--yourai-dark);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.yourai-user {
    background: var(--yourai-primary) !important;
    color: var(--yourai-white) !important;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.yourai-fallback-form {
    padding: 20px;
    background: var(--yourai-white);
    border-top: 1px solid #eee;
}

.yourai-fallback-form input,
.yourai-fallback-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    box-sizing: border-box;
}

.yourai-fallback-form button {
    width: 100%;
    padding: 10px;
    background: var(--yourai-gold);
    color: var(--yourai-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.yourai-chatbot-input-area {
    padding: 15px;
    background: var(--yourai-white);
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.yourai-chatbot-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.yourai-chatbot-input-area button {
    background: var(--yourai-primary) !important;
    color: var(--yourai-white) !important;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 480px) {
    .yourai-chatbot-window {
        width: calc(100vw - 40px);
        height: 80vh;
    }
}