.ncwa {
    --ncwa-green: #20c85a;
    position: fixed;
    z-index: 9999;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    font-family: Arial, Helvetica, sans-serif;
}

.ncwa--launch-none { animation: ncwa-launch-none .01s linear both; animation-delay: var(--ncwa-launch-delay, 0s); }
.ncwa--launch-fade { animation: ncwa-launch-fade .32s ease-out both; animation-delay: var(--ncwa-launch-delay, 0s); }
.ncwa--launch-slide { animation: ncwa-launch-slide .36s ease-out both; animation-delay: var(--ncwa-launch-delay, 0s); }
.ncwa--launch-scale { animation: ncwa-launch-scale .36s ease-out both; animation-delay: var(--ncwa-launch-delay, 0s); }
@keyframes ncwa-launch-none { from { visibility: hidden; opacity: 0; } to { visibility: visible; opacity: 1; } }
@keyframes ncwa-launch-fade { from { visibility: hidden; opacity: 0; } to { visibility: visible; opacity: 1; } }
@keyframes ncwa-launch-slide { from { visibility: hidden; opacity: 0; transform: translateY(14px); } to { visibility: visible; opacity: 1; transform: translateY(0); } }
@keyframes ncwa-launch-scale { from { visibility: hidden; opacity: 0; transform: scale(.82); } to { visibility: visible; opacity: 1; transform: scale(1); } }

.ncwa *, .ncwa *::before, .ncwa *::after { box-sizing: border-box; }

.ncwa__launcher {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    background: var(--ncwa-green);
    color: #fff;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .33), 0 0 0 5px rgba(32, 200, 90, .12);
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.ncwa__launcher:hover,
.ncwa__launcher:focus-visible {
    transform: translateY(-2px);
    background: #14ae49;
    color: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .4), 0 0 0 6px rgba(32, 200, 90, .2);
}

.ncwa__launcher img { width: 31px; height: 31px; display: block; }
.ncwa :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ncwa__panel[hidden] { display: none !important; }
.ncwa__prompt[hidden] { display: none !important; }

.ncwa__prompt {
    position: absolute;
    right: calc(100% + 12px);
    bottom: 5px;
    width: max-content;
    max-width: calc(100vw - 102px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 8px 9px 14px;
    border: 1px solid rgba(96, 224, 161, .58);
    border-radius: 13px;
    background: #08213a;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .34);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
.ncwa__prompt::after {
    content: '';
    position: absolute;
    left: 100%;
    bottom: 19px;
    border: 7px solid transparent;
    border-left-color: #08213a;
}
.ncwa__prompt span {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ncwa__prompt-close {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font: 17px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.ncwa__prompt-close:hover { background: rgba(255, 255, 255, .26); }
.ncwa__prompt--show-fade { animation: ncwa-prompt-fade-in .24s ease-out both; }
.ncwa__prompt--show-slide { animation: ncwa-prompt-slide-in .24s ease-out both; }
.ncwa__prompt--show-scale { animation: ncwa-prompt-scale-in .24s ease-out both; }
.ncwa__prompt--hide-fade { animation: ncwa-prompt-fade-out .24s ease-in both; pointer-events: none; }
.ncwa__prompt--hide-slide { animation: ncwa-prompt-slide-out .24s ease-in both; pointer-events: none; }
.ncwa__prompt--hide-scale { animation: ncwa-prompt-scale-out .24s ease-in both; pointer-events: none; }
@keyframes ncwa-prompt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ncwa-prompt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ncwa-prompt-slide-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ncwa-prompt-slide-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(10px); } }
@keyframes ncwa-prompt-scale-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
@keyframes ncwa-prompt-scale-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.88); } }

.ncwa__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 15px);
    width: min(330px, calc(100vw - 30px));
    max-height: min(65dvh, 440px);
    overflow: auto;
    border: 1px solid rgba(83, 221, 143, .43);
    border-radius: 17px;
    background: #08213a;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
}

.ncwa__panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 13px 11px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    font-size: 15px;
    line-height: 1.25;
}

.ncwa__close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: 24px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.ncwa__list { list-style: none; margin: 0; padding: 7px; }
.ncwa__list li { margin: 0; padding: 0; }
.ncwa__contact {
    display: block;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}
.ncwa__contact:hover, .ncwa__contact:focus-visible {
    background: rgba(32, 200, 90, .16);
    color: #fff;
}
.ncwa__contact-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.ncwa__contact-subtitle { display: block; margin-top: 3px; color: #c8d8e4; font-size: 11.5px; line-height: 1.35; }

@media (max-width: 780px) {
    .ncwa {
        right: calc(17px + env(safe-area-inset-right, 0px));
        bottom: calc(var(--ncwa-mobile-offset, 20px) + env(safe-area-inset-bottom, 0px));
    }
    .ncwa__launcher { width: 54px; height: 54px; }
    .ncwa__launcher img { width: 29px; height: 29px; }
    .ncwa__prompt {
        bottom: 3px;
        max-width: min(280px, calc(100vw - 95px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ncwa__launcher { transition: none; }
    .ncwa--launch-none,
    .ncwa--launch-fade,
    .ncwa--launch-slide,
    .ncwa--launch-scale { animation: ncwa-launch-none .01s linear both; animation-delay: var(--ncwa-launch-delay, 0s); }
    .ncwa__prompt { animation: none; }
}
