
#nok-widget {
    font-family: Arial, sans-serif;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    color: #292929;
}

#nok-launcher {
    width: 76px;
    height: 76px;
    border: none;
    border-radius: 50%;
    background: #fa8099;
    color: white;
    font-size: 36px;
    cursor: pointer;
    box-shadow: 0 5px 20px #0002;
}

#nok-window {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 115px;
    width: 430px;
    height: min(680px, calc(100vh - 140px));
    background: white;
    border-radius: 30px;
    box-shadow: 0 5px 35px #0003;
    overflow: hidden;
    flex-direction: column;
}

#nok-window.nok-open {
    display: flex;
}

.nok-header {
    height: 90px;
    min-height: 90px;
    background: #fa8099;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 25px;
    gap: 18px;
}

.nok-header-title {
    font-size: 29px;
    flex: 1;
}

.nok-header button {
    border: none;
    background: transparent;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.nok-messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nok-message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.nok-message-row.nok-user {
    justify-content: flex-end;
}

.nok-avatar {
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 50%;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.nok-bubble {
    max-width: 82%;
    padding: 17px 20px;
    border-radius: 18px;
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.nok-assistant .nok-bubble {
    background: #fa8099;
    color: white;
    border-bottom-left-radius: 5px;
}

.nok-user .nok-bubble {
    background: #f3f3f3;
    color: #333;
    border-bottom-right-radius: 5px;
}

.nok-quick-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding: 8px 0;
}

.nok-quick-actions button {
    border: 1.5px solid #fa8099;
    border-radius: 19px;
    background: white;
    color: #fa8099;
    padding: 15px 20px;
    font-size: 19px;
    cursor: pointer;
    max-width: 100%;
    transition: .2s;
}

.nok-quick-actions button:hover,
.nok-quick-actions button:first-child {
    background: #fa8099;
    color: white;
}

.nok-input-area {
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    gap: 10px;
    border-top: 1px solid #eee;
    background: white;
}

#nok-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 17px;
    padding: 12px 5px;
    background: transparent;
}

#nok-send {
    border: none;
    background: #fa8099;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

#nok-send:disabled {
    opacity: .5;
    cursor: wait;
}

.nok-typing {
    color: #888;
    font-size: 14px;
    padding: 5px 12px;
}

@media(max-width: 600px) {
    #nok-widget {
        right: 12px;
        bottom: 12px;
    }

    #nok-window {
        width: auto;
        height: auto;
        right: 10px;
        left: 10px;
        top: 10px;
        bottom: 90px;
        border-radius: 25px;
    }

    .nok-header {
        height: 75px;
        min-height: 75px;
    }

    .nok-bubble {
        font-size: 16px;
    }

    .nok-quick-actions button {
        font-size: 16px;
    }
}
