.nl-support-chat {
    position: fixed;
    right: 16px;
    bottom: calc(16px + var(--nl-support-chat-cookie-offset, 0px));
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: calc(100vw - 32px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.nl-support-chat * {
    box-sizing: border-box;
    letter-spacing: 0;
    text-transform: none;
}

.nl-support-chat.nl-support-chat--cookie-visible {
    z-index: 9998;
}

.nl-support-chat.nl-support-chat--cookie-dialog-visible {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

body.nl-cookie-banner-visible .floating-reviews-badge {
    bottom: calc(25px + var(--nl-cookie-banner-offset, 0px));
    z-index: 9998;
}

body.nl-cookie-dialog-visible .floating-reviews-badge {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.nl-support-chat__panel {
    width: min(380px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 112px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #102016;
    border: 1px solid #dfe8df;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(16, 32, 22, 0.24);
}

.nl-support-chat__panel[hidden] {
    display: none;
}

.nl-support-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #dfe8df;
    background: #ffffff;
}

.nl-support-chat__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    color: #102016;
}

.nl-support-chat__status,
.nl-support-chat__launcher-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 0;
    padding: 4px 8px;
    border: 1px solid #dfe8df;
    border-radius: 999px;
    background: #f7faf7;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    color: #5f6f63;
}

.nl-support-chat__status--online {
    border-color: rgba(31, 138, 76, 0.28);
    background: rgba(31, 138, 76, 0.1);
    color: #1f8a4c;
}

.nl-support-chat__status--offline {
    border-color: rgba(183, 121, 31, 0.28);
    background: rgba(183, 121, 31, 0.1);
    color: #9a5c12;
}

.nl-support-chat__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #b7791f;
}

.nl-support-chat__dot--online {
    background: #1f8a4c;
}

.nl-support-chat__dot--offline {
    background: #b7791f;
}

.nl-support-chat__icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5f6f63;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.nl-support-chat__icon-button:hover,
.nl-support-chat__icon-button:focus-visible {
    background: #eef5ef;
    color: #102016;
    outline: none;
}

.nl-support-chat__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: #fbfdfb;
}

.nl-support-chat__intro {
    border-radius: 8px;
    background: #eef5ef;
    padding: 10px 12px;
    color: #102016;
    font-size: 14px;
    line-height: 1.55;
}

.nl-support-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.nl-support-chat__message {
    max-width: 86%;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.nl-support-chat__message--customer {
    align-self: flex-end;
    background: #1f8a4c;
    color: #ffffff;
}

.nl-support-chat__message--support {
    align-self: flex-start;
    border: 1px solid #dfe8df;
    background: #ffffff;
    color: #102016;
}

.nl-support-chat__footer {
    border-top: 1px solid #dfe8df;
    background: #ffffff;
    padding: 14px 16px 16px;
}

.nl-support-chat__form {
    display: grid;
    gap: 10px;
    margin: 0;
}

.nl-support-chat__form[hidden],
.nl-support-chat__honeypot {
    display: none;
}

.nl-support-chat__input,
.nl-support-chat__textarea {
    width: 100%;
    border: 1px solid #cddacd;
    border-radius: 8px;
    background: #ffffff;
    color: #102016;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.nl-support-chat__input {
    height: 40px;
    padding: 0 12px;
}

.nl-support-chat__textarea {
    min-height: 84px;
    resize: none;
    padding: 9px 12px;
    line-height: 1.5;
}

.nl-support-chat__input:focus,
.nl-support-chat__textarea:focus {
    border-color: #1f8a4c;
    box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.15);
}

.nl-support-chat__mail-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    border: 1px solid #cddacd;
    border-radius: 8px;
    background: #ffffff;
    padding: 9px 11px;
    color: #102016;
    font-size: 14px;
    line-height: 1.35;
}

.nl-support-chat__mail-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: #1f8a4c;
}

.nl-support-chat__mail-option strong {
    display: block;
    font-weight: 700;
}

.nl-support-chat__mail-option small {
    display: block;
    margin-top: 2px;
    color: #5f6f63;
    font-size: 12px;
    line-height: 1.45;
}

.nl-support-chat__submit,
.nl-support-chat__launcher {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.nl-support-chat__submit {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    background: #1f8a4c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.nl-support-chat__submit:hover,
.nl-support-chat__submit:focus-visible {
    background: #176b3b;
    outline: none;
}

.nl-support-chat__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.nl-support-chat__error {
    margin: 10px 0 0;
    border: 1px solid rgba(176, 0, 32, 0.28);
    border-radius: 8px;
    padding: 8px 10px;
    color: #b00020;
    font-size: 13px;
    line-height: 1.45;
}

.nl-support-chat__error[hidden] {
    display: none;
}

.nl-support-chat__launcher {
    position: relative;
    display: inline-flex;
    min-height: 70px;
    max-width: min(360px, calc(100vw - 32px));
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    border: 1px solid #dfe8df;
    background: #ffffff;
    color: #102016;
    box-shadow: 0 18px 38px rgba(16, 32, 22, 0.18);
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nl-support-chat__unread {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    min-width: 24px;
    min-height: 24px;
    place-items: center;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.nl-support-chat__unread[hidden] {
    display: none;
}

.nl-support-chat__launcher:hover,
.nl-support-chat__launcher:focus-visible {
    border-color: #1f8a4c;
    box-shadow: 0 22px 46px rgba(31, 138, 76, 0.2);
    outline: none;
}

.nl-support-chat__launcher-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: #1f8a4c;
    color: #ffffff;
}

.nl-support-chat__launcher-svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nl-support-chat__launcher-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.nl-support-chat__launcher-status {
    margin-top: 4px;
}

.nl-support-chat.nl-support-chat--compact .nl-support-chat__launcher {
    width: 56px;
    min-height: 56px;
    max-width: 56px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 999px;
}

.nl-support-chat.nl-support-chat--compact .nl-support-chat__launcher > span:not(.nl-support-chat__launcher-icon):not(.nl-support-chat__unread) {
    display: none;
}

.nl-support-chat.nl-support-chat--compact .nl-support-chat__launcher-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
}

.nl-support-chat.nl-support-chat--cookie-visible .nl-support-chat__panel {
    height: min(620px, max(320px, calc(100vh - 112px - var(--nl-support-chat-cookie-offset, 0px))));
    height: min(620px, max(320px, calc(100dvh - 112px - var(--nl-support-chat-cookie-offset, 0px))));
}

@media (prefers-reduced-motion: no-preference) {
    .nl-support-chat {
        transition: bottom 220ms ease, opacity 160ms ease;
    }

    .nl-support-chat__launcher {
        animation: naturalibre-support-chat-pulse 3.4s ease-in-out infinite;
        transform-origin: center;
    }

    .nl-support-chat__launcher:hover,
    .nl-support-chat__launcher:focus-visible,
    .nl-support-chat__launcher[aria-expanded="true"] {
        animation-play-state: paused;
    }
}

@keyframes naturalibre-support-chat-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 18px 38px rgba(16, 32, 22, 0.18);
    }

    50% {
        transform: scale(1.025);
        box-shadow: 0 22px 46px rgba(31, 138, 76, 0.22);
    }
}

@media (max-width: 480px) {
    .nl-support-chat {
        right: 12px;
        bottom: calc(12px + var(--nl-support-chat-cookie-offset, 0px));
        max-width: calc(100vw - 24px);
    }

    .nl-support-chat__panel {
        width: calc(100vw - 24px);
        height: min(620px, calc(100vh - 96px));
    }


    .nl-support-chat.nl-support-chat--cookie-visible .nl-support-chat__launcher {
        width: 56px;
        min-height: 56px;
        max-width: 56px;
        justify-content: center;
        gap: 0;
        padding: 0;
        border-radius: 999px;
    }

    .nl-support-chat.nl-support-chat--cookie-visible .nl-support-chat__launcher > span:not(.nl-support-chat__launcher-icon):not(.nl-support-chat__unread) {
        display: none;
    }

    .nl-support-chat.nl-support-chat--cookie-visible .nl-support-chat__launcher-icon {
        width: 44px;
        height: 44px;
        border-radius: 999px;
    }

    .nl-support-chat.nl-support-chat--cookie-visible .nl-support-chat__panel {
        height: min(620px, max(320px, calc(100vh - 96px - var(--nl-support-chat-cookie-offset, 0px))));
        height: min(620px, max(320px, calc(100dvh - 96px - var(--nl-support-chat-cookie-offset, 0px))));
    }
}
