/* nebenkosten-machen.de Widget */

.nkm-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

.nkm-open-button {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 3px solid #009b47;
    background: #aef5c2;
    color: #063b18;
    border-radius: 18px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.nkm-open-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.nkm-open-text {
    font-size: 16px;
}

.nkm-chat-popup {
    display: none;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 520px;
    max-height: calc(100vh - 90px);
    background: #ffffff;
    border: 3px solid #009b47;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.28);
    overflow: hidden;
    flex-direction: column;
    margin-bottom: 10px;
}

.nkm-chat-popup.nkm-open {
    display: flex;
}

.nkm-chat-header {
    background: #aef5c2;
    color: #063b18;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #84d994;
}

.nkm-chat-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nkm-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.nkm-chat-header strong {
    display: block;
    font-size: 18px;
}

.nkm-chat-header span {
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.nkm-close-button {
    border: 0;
    background: #ffffff;
    color: #333333;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.nkm-chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #f8f8f8;
}

.nkm-message {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-wrap;
}

.nkm-message-user {
    background: #e8f0ff;
    margin-left: 30px;
    border: 1px solid #bdd1ff;
}

.nkm-message-bot {
    background: #ffffff;
    margin-right: 30px;
    border: 1px solid #dddddd;
}

.nkm-message-error {
    background: #ffecec;
    border: 1px solid #e04141;
    color: #8a0000;
}

.nkm-chat-form {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #dddddd;
    display: flex;
    gap: 8px;
}

.nkm-chat-form textarea {
    flex: 1;
    resize: none;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 9px;
    font-size: 14px;
}

.nkm-chat-form button {
    border: 0;
    border-radius: 10px;
    background: #009b47;
    color: #ffffff;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 700;
}

.nkm-chat-form button:disabled {
    background: #999999;
    cursor: not-allowed;
}

.nkm-small-note {
    padding: 8px 12px 12px 12px;
    font-size: 11px;
    color: #666666;
    background: #ffffff;
}

@media (max-width: 480px) {
    .nkm-widget {
        right: 10px;
        bottom: 10px;
    }

    .nkm-chat-popup {
        width: calc(100vw - 20px);
        height: calc(100vh - 80px);
    }

    .nkm-open-text {
        display: none;
    }
}
