/* Rentplan Chatbot widget */

.rentplan-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    font-size: 14px;
}

.rentplan-chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #0ea5e9;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rentplan-chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.rentplan-chatbot-toggle:focus {
    outline:none;
}

.rentplan-chatbot-icon {
    font-size: 24px;
    line-height: 1;
}

.rentplan-chatbot-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rentplan-chatbot-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #0ea5e9;
    color: #fff;
}

.rentplan-chatbot-panel-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.rentplan-chatbot-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.9;
}

.rentplan-chatbot-close:hover {
    color: rgba(255, 255, 255, 0.8);
    background: none;
    opacity: 1;
}

.rentplan-chatbot-close:focus {
    outline: none;
}

.rentplan-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rentplan-chatbot-msg {
    max-width: 85%;
}

.rentplan-chatbot-msg-user {
    align-self: flex-end;
}

.rentplan-chatbot-msg-user .rentplan-chatbot-msg-content {
    background: #0ea5e9;
    color: #fff;
    border-radius: 14px 14px 4px 14px;
}

.rentplan-chatbot-msg-bot .rentplan-chatbot-msg-content {
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 14px 14px 14px 4px;
}

.rentplan-chatbot-msg-content {
    padding: 10px 14px;
    line-height: 1.45;
    word-wrap: break-word;
}

.rentplan-chatbot-input-area {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.rentplan-chatbot-input {
    flex: 1;
    resize: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    min-height: 44px;
}

.rentplan-chatbot-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.rentplan-chatbot-send {
    padding:10px;
    background: #0ea5e9;
    display:flex;
    align-items: center;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.rentplan-chatbot-send:hover:not(:disabled) {
    background: #0284c7;
    color:#fff;
}

.rentplan-chatbot-send:focus {
    outline: none;
}

.rentplan-chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
