.chatbot-wrapper {
}

.chatbot-launcher {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #7270F7;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chatbot-launcher:hover {
    background-color: #5c5aff;
    transform: scale(1.1);
}

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

.chatbot-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.chatbot-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chatbot-header {
    padding: 16px;
    background-color: #7270F7;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    font-size: 18px;
}

.chatbot-header-controls {
    display: flex;
    gap: 10px;
}

.chatbot-close-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.chatbot-feedback {
    padding: 16px;
    overflow-y: auto;
    background-color: #f5f5f5;
    flex: 1;
    border-radius: 0 0 24px 24px;
}

.chatbot-feedback h3 {
    margin-top: 0;
    color: #6200EA;
}

.chatbot-feedback p {
    color: #666;
}

.chatbot-feedback-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.chatbot-feedback-option, .chatbot-feedback-option-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: #fff;
    color: #000;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    gap: 8px;
}

.chatbot-feedback-option-selected {
    background-color: #7270F7 !important;
    color: #fff !important;
}

.chatbot-feedback-option img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.chatbot-feedback-textarea {
    width: 100%;
    height: 100px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 16px;
    resize: none;
    font-family: Arial, sans-serif;
}

.chatbot-submit-button {
    width: 100%;
    background-color: #7270F7;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.chatbot-submit-button:hover {
    background-color: #5c5aff;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    /* background-color: #f5f5f5; */
}

.chatbot-message {
    margin: 8px 16px;
    padding: 10px 16px;
    border-radius: 20px;
    max-width: 100%;
    word-wrap: break-word;
}

.chatbot-message-user {
    background: #7270F7;
    color: #fff;
    align-self: flex-end;
}

.chatbot-message-bot {
    background-color: #e0e0e0;
    color: #000;
    align-self: flex-start;
}

.chatbot-input-form {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 16px 16px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.chatbot-input-wrapper {
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.chatbot-message-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    border-radius: 24px 0 0 24px;
}

.chatbot-send-button {
    padding: 12px 16px;
    background-color: #7270F7;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0 24px 24px 0;
    transition: background-color 0.3s;
}

.chatbot-send-button:hover {
    background-color: #5c5aff;
}

.chatbot-feedback-confirmation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 20px;
}

.chatbot-close-confirmation {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #7270F7;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.chatbot-close-confirmation:hover {
    background-color: #5c5aff;
}

/* links in bot messages */
.chatbot-message-bot a {
    color: #FF4A00 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.chatbot-message-bot a:hover {
    opacity: 0.8;
}

/* visited link */
.chatbot-message-bot a:visited {
    color: #FF4A00 !important;
    opacity: 0.8;
}

.chatbot-message-bot a:hover {
    text-decoration-thickness: 2px;
    color: rgba(255, 74, 0, 0.5) !important;
}

/* non logged in */
.chatbot-registration-form {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 16px 16px;
}

.chatbot-registration-input {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

.chatbot-registration-input:focus {
    border-color: #7270F7;
    box-shadow: 0 0 0 2px rgba(114, 112, 247, 0.2);
}
