.nc-wb-shadow {
    position: fixed;
    inset: 0;
    z-index: 10100;
    visibility: hidden;
    opacity: 0;
    background: rgba(33, 33, 33, .3);
    transition: opacity .25s ease, visibility .25s ease;
}

.nc-wb-shadow.nc-wb-is-visible {
    visibility: visible;
    opacity: 1;
}

.nc-wb-panel {
    position: fixed;
    z-index: 10150;
    display: flex;
    flex-direction: column;
    visibility: visible;
}

.nc-wb-position-bottom-right {
    right: var(--nc-wb-offset-x, 50px);
    bottom: var(--nc-wb-offset-y, 50px);
    align-items: center;
}

.nc-wb-position-bottom-left {
    left: var(--nc-wb-offset-x, 50px);
    bottom: var(--nc-wb-offset-y, 50px);
    align-items: center;
}

.nc-wb-position-top-right {
    right: var(--nc-wb-offset-x, 50px);
    top: var(--nc-wb-offset-y, 50px);
    align-items: center;
}

.nc-wb-position-top-left {
    left: var(--nc-wb-offset-x, 50px);
    top: var(--nc-wb-offset-y, 50px);
    align-items: center;
}

.nc-wb-main-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
}

.nc-wb-main {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--nc-wb-main-color, #214d75);
    cursor: pointer;
    overflow: hidden;
}

.nc-wb-main img,
.nc-wb-main svg {
    display: block;
    width: 30px;
    height: 30px;
}

.nc-wb-icon-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.nc-wb-icon-layer.nc-wb-is-active {
    opacity: 1;
}

.nc-wb-close {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.nc-wb-is-open .nc-wb-close {
    display: flex;
}

.nc-wb-is-open .nc-wb-icon-layer {
    opacity: 0;
}

.nc-wb-pulse,
.nc-wb-pulse-secondary {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid var(--nc-wb-accent-color, #214d75);
    animation: nc-wb-pulse 1.7s infinite;
}

.nc-wb-pulse-secondary {
    animation-delay: .85s;
}

@keyframes nc-wb-pulse {
    0% { transform: scale(1); opacity: .9; }
    60% { transform: scale(1.8); opacity: .45; }
    100% { transform: scale(2.5); opacity: 0; }
}

.nc-wb-list {
    display: none;
    flex-direction: column-reverse;
    align-items: center;
    width: 66px;
    gap: 10px;
    margin-bottom: 10px;
}

.nc-wb-is-open .nc-wb-list {
    display: flex;
}

.nc-wb-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--nc-wb-item-color, #4670ce) center/60% auto no-repeat;
    box-shadow: 0 8px 6px -6px rgba(33, 33, 33, .2);
    text-decoration: none;
}

.nc-wb-item:hover {
    box-shadow: 0 0 6px rgba(0,0,0,.16), 0 6px 12px rgba(0,0,0,.32);
}

.nc-wb-item img {
    width: 28px;
    height: 28px;
}

.nc-wb-tooltip {
    position: absolute;
    top: 50%;
    display: block;
    padding: 5px 10px;
    max-width: 260px;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font: 13px/15px Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.nc-wb-position-bottom-right .nc-wb-tooltip,
.nc-wb-position-top-right .nc-wb-tooltip {
    right: 56px;
}

.nc-wb-position-bottom-left .nc-wb-tooltip,
.nc-wb-position-top-left .nc-wb-tooltip {
    left: 56px;
}

.nc-wb-item:hover .nc-wb-tooltip {
    opacity: 1;
}

.nc-wb-popup {
    position: absolute;
    bottom: 0;
    display: none;
    width: 312px;
    padding: 12px 16px;
    border: 2px solid var(--nc-wb-accent-color, #214d75);
    border-radius: 15px;
    background: #fff;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.nc-wb-position-bottom-right .nc-wb-popup,
.nc-wb-position-top-right .nc-wb-popup {
    right: 80px;
}

.nc-wb-position-bottom-left .nc-wb-popup,
.nc-wb-position-top-left .nc-wb-popup {
    left: 80px;
}

.nc-wb-main-wrap:hover .nc-wb-popup {
    display: block;
}

.nc-wb-popup-title {
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.nc-wb-popup-text {
    margin-top: 4px;
    font-size: 13px;
    color: #424956;
}

@media (max-width: 640px) {
    .nc-wb-panel {
        right: 20px;
        bottom: 20px;
        left: auto;
        top: auto;
        align-items: center;
    }

    .nc-wb-popup,
    .nc-wb-tooltip {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nc-wb-pulse,
    .nc-wb-pulse-secondary {
        animation: none;
        display: none;
    }
}

/* 1.0.11: точное вертикальное центрирование иконок */
.nc-wb-main,
.nc-wb-icon-layer,
.nc-wb-item {
    line-height: 0;
}

.nc-wb-main img,
.nc-wb-main svg,
.nc-wb-item img,
.nc-wb-item svg {
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

.nc-wb-close {
    font-size: 0;
    line-height: 0;
}

.nc-wb-close::before,
.nc-wb-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 4px;
    border-radius: 3px;
    background: #fff;
    transform-origin: center;
}

.nc-wb-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nc-wb-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 1.0.14: список и основная кнопка стоят на одной вертикальной оси */
.nc-wb-list,
.nc-wb-main-wrap {
    flex-shrink: 0;
}

.nc-wb-list .nc-wb-item {
    margin-left: auto;
    margin-right: auto;
}
