.bscam-push-widget {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: max(12px, calc((100vw - 430px) / 2 + 12px));
    z-index: 18;
}

.bscam-push-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 7px 8px 7px 12px;
    color: #fff;
    background: rgba(4, 30, 43, .68);
    box-shadow: 0 14px 34px rgba(6, 41, 55, .28);
    backdrop-filter: blur(18px);
    font: inherit;
}

.bscam-push-copy {
    display: block;
    text-align: left;
}

.bscam-push-copy strong,
.bscam-push-copy em {
    display: block;
    font-style: normal;
    line-height: 1.05;
}

.bscam-push-copy strong {
    color: rgba(255, 255, 255, .92);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 0;
}

.bscam-push-copy em {
    margin-top: 4px;
    color: #20d6cf;
    font-size: .68rem;
    font-weight: 900;
}

.bscam-push-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
    border: 1px solid rgba(32, 214, 207, .45);
    border-radius: 999px;
    background: rgba(32, 214, 207, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.bscam-push-switch i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #20d6cf;
    box-shadow: 0 0 18px rgba(32, 214, 207, .68);
    transition: transform .22s ease, background .22s ease;
}

.bscam-push-widget:not(.is-on):not(.is-blocked) .bscam-push-toggle {
    animation: bscam-push-pulse 2.4s ease-in-out infinite;
}

.bscam-push-widget.is-on .bscam-push-toggle {
    background: rgba(6, 41, 55, .78);
}

.bscam-push-widget.is-on .bscam-push-copy em {
    color: #ffffff;
}

.bscam-push-widget.is-on .bscam-push-switch {
    background: rgba(32, 214, 207, .95);
}

.bscam-push-widget.is-on .bscam-push-switch i {
    transform: translateX(18px);
    background: #062937;
    box-shadow: 0 4px 12px rgba(6, 41, 55, .3);
}

.bscam-push-widget.is-blocked .bscam-push-toggle {
    opacity: .72;
}

.bscam-push-widget.is-blocked .bscam-push-copy em {
    color: #fecaca;
}

.bscam-push-widget button:disabled {
    color: rgba(255, 255, 255, .72);
    background: rgba(4, 30, 43, .52);
}

@keyframes bscam-push-pulse {
    0%,
    100% {
        box-shadow: 0 14px 34px rgba(6, 41, 55, .28);
    }

    50% {
        box-shadow: 0 14px 34px rgba(6, 41, 55, .28), 0 0 0 5px rgba(32, 214, 207, .12);
    }
}

@media (min-width: 720px) {
    .bscam-push-widget {
        top: calc(42px + env(safe-area-inset-top));
    }
}

@media (max-width: 374px) {
    .bscam-push-widget {
        right: 8px;
    }

    .bscam-push-toggle {
        padding-left: 10px;
        gap: 7px;
    }
}
