/**
 * LEGAL SMART Chat Widget Styles
 */

/* Accessibility - Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus {
    position: absolute;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Chat Widget Container */
#chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

/* Chat Widget Header */
#chat-widget-header {
    background: #72c02c;
    color: white;
    padding: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

/* Chat Widget Body */
#chat-widget-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Message Spacing */
#chat-widget-body p {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    word-wrap: break-word;
}

/* Chat Widget Footer */
#chat-widget-footer {
    padding: 12px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

/* Chat Input */
#chat-widget-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

/* Send Button */
#chat-widget-send {
    background: #72c02c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

#chat-widget-send:hover {
    background: #5fa724;
}

/* Chat Button (Bubble) */
#chat-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #72c02c;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

#chat-widget-button:hover {
    transform: scale(1.1);
    background: #5fa724;
}

/* Mobile Optimierung */
@media (max-width: 576px) {
    #chat-widget-container {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        height: calc(100vh - 80px);
    }

    #chat-widget-button {
        right: 10px;
        bottom: 10px;
    }

    #chat-widget-header {
        padding: 15px;
        font-size: 16px;
    }

    #chat-widget-body {
        padding: 15px;
    }
}
