/* Nonmodal campaign window in the existing Neumaerker brand colours. */
.nm-survey {
    box-sizing: border-box;
    position: fixed;
    top: auto;
    left: auto;
    right: 16px;
    right: max(16px, env(safe-area-inset-right));
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 6000;
    display: flex;
    flex-direction: column;
    width: 420px;
    max-width: calc(100% - 32px);
    max-width: calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)));
    height: 640px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 3px solid #e30026;
    border-radius: 8px;
    background: #fff;
    color: #292929;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
}
.nm-survey[hidden] { display: none !important; }
.nm-survey .nm-survey__header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 12px 12px 4px;
    background: #fff;
}
.nm-survey .nm-survey__eyebrow {
    margin: 0 0 3px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
}
.nm-survey .nm-survey__title {
    margin: 0;
    color: #292929;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}
.nm-survey .nm-survey__description {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 12px 10px;
    color: #555;
    font-size: 12px;
}
.nm-survey .nm-survey__close,
.nm-survey .nm-survey__dismiss {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #e30026;
    border-radius: 4px;
    background: #e30026;
    color: #fff;
    box-shadow: none;
    font: inherit;
    cursor: pointer;
}
.nm-survey .nm-survey__close {
    flex: 0 0 44px;
    padding: 0;
    border-color: transparent;
    background: #fff;
    color: #e30026;
    font-size: 30px;
    line-height: 1;
}
.nm-survey .nm-survey__close:hover { background: #fff0f3; color: #cc0023; }
.nm-survey .nm-survey__dismiss:hover { background: #cc0023; border-color: #cc0023; }
.nm-survey button:focus-visible,
.nm-survey a:focus-visible { outline: 2px solid #292929; outline-offset: 2px; }
.nm-survey .nm-survey__frame {
    display: block;
    flex: 1 1 480px;
    width: 100%;
    height: 480px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fafafa;
}
.nm-survey .nm-survey__footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}
.nm-survey .nm-survey__external { color: #555; font-size: 12px; text-decoration: underline; }
@media (max-width: 480px) {
    .nm-survey {
        right: 8px;
        right: max(8px, env(safe-area-inset-right));
        bottom: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        max-width: calc(100% - 16px);
        max-width: calc(100% - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right)));
        height: 600px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        max-height: calc(100dvh - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
    }
    .nm-survey .nm-survey__title { font-size: 18px; }
}
@media (max-height: 420px) {
    .nm-survey .nm-survey__eyebrow,
    .nm-survey .nm-survey__description { display: none; }
    .nm-survey .nm-survey__header { padding-top: 4px; }
    .nm-survey .nm-survey__footer { padding-top: 4px; padding-bottom: 4px; }
}
