.botmagic-ai-widget,
.botmagic-ai-widget.portal {
    left: auto !important;
    right: 18px;
}

.botmagic-ai-panel {
    left: auto !important;
    right: 0;
}

.ai-mic {
    display: grid;
    place-items: center;
    font-size: 0 !important;
}

.ai-mic::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V6c0-1.66-1.34-3-3-3S9 4.34 9 6v5c0 1.66 1.34 3 3 3Zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.49 6-3.31 6-6.72h-1.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V6c0-1.66-1.34-3-3-3S9 4.34 9 6v5c0 1.66 1.34 3 3 3Zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.49 6-3.31 6-6.72h-1.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ai-mic.listening::before {
    animation: micListening 1s ease-in-out infinite;
}

@keyframes micListening {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.14);
    }
}

.demo-registration-popup {
    position: fixed;
    left: 50%;
    top: 18px;
    z-index: 2050;
    width: min(390px, calc(100vw - 36px));
    display: grid;
    grid-template-columns: 58px 1fr 38px;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(0, 216, 255, .48);
    border-radius: 13px;
    background: radial-gradient(circle at 82% 0, rgba(255, 196, 68, .2), transparent 34%),
        linear-gradient(145deg, rgba(8, 23, 42, .98), rgba(3, 8, 17, .98));
    box-shadow: 0 24px 72px rgba(0, 0, 0, .5), 0 0 30px rgba(0, 216, 255, .14);
    padding: 13px;
    opacity: 0;
    transform: translate(-50%, -18px) scale(.96);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease;
}

.demo-registration-popup.active {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.demo-reg-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--amber);
    border-radius: 14px;
    background: radial-gradient(circle at 70% 0, rgba(255, 196, 68, .24), transparent 42%), #020711;
    color: var(--amber);
    font: 900 16px 'Space Grotesk', sans-serif;
    box-shadow: 0 0 22px rgba(255, 196, 68, .16);
}

.demo-reg-body {
    min-width: 0;
}

.demo-reg-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.demo-reg-top span {
    color: var(--blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.demo-reg-top b {
    color: var(--green);
    font-size: 9px;
    text-transform: uppercase;
}

.demo-reg-body strong {
    display: block;
    color: #eef7ff;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-reg-body small {
    display: block;
    margin-top: 3px;
    color: #a8bbcf;
    font-size: 11px;
    line-height: 1.35;
}

.demo-reg-body small b {
    color: var(--amber);
}

.demo-reg-signal {
    height: 42px;
    display: flex;
    align-items: end;
    gap: 4px;
}

.demo-reg-signal i {
    width: 8px;
    height: var(--h, 22px);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--green), var(--blue));
    animation: demoRegBars 1.1s ease-in-out infinite;
}

.demo-reg-signal i:nth-child(1) {
    --h: 18px;
}

.demo-reg-signal i:nth-child(2) {
    --h: 34px;
    animation-delay: -.22s;
}

.demo-reg-signal i:nth-child(3) {
    --h: 25px;
    animation-delay: -.44s;
}

.business-hero-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 18px;
}

.business-hero-summary div {
    border: 1px solid rgba(0, 216, 255, .34);
    border-radius: 10px;
    background: radial-gradient(circle at 82% 0, rgba(255, 196, 68, .12), transparent 36%), #06111f;
    padding: 16px;
    min-height: 112px;
}

.business-hero-summary small {
    display: block;
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.business-hero-summary b {
    display: block;
    margin: 8px 0 5px;
    color: var(--amber);
    font: 900 28px 'Space Grotesk', sans-serif;
}

.business-hero-summary span {
    display: block;
    color: #b7c8da;
    font-size: 12px;
    line-height: 1.35;
}

@keyframes demoRegBars {
    0%,
    100% {
        transform: scaleY(.72);
        opacity: .65;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .botmagic-ai-widget.portal {
        left: auto !important;
        right: 18px;
    }
}

@media (max-width: 520px) {
    .botmagic-ai-widget,
    .botmagic-ai-widget.portal {
        left: auto !important;
        right: 10px;
    }

    .botmagic-ai-panel {
        left: auto !important;
        right: 0;
    }

    .demo-registration-popup {
        left: 50%;
        top: 10px;
        width: calc(100vw - 20px);
        grid-template-columns: 48px 1fr 30px;
    }

    .demo-reg-avatar {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 13px;
    }

    .demo-reg-body strong {
        font-size: 13px;
    }

    .business-hero-summary {
        grid-template-columns: 1fr;
    }
}
