.s2-chatbot {
    --s2-chat-open-shift: 292px;
    --s2-chat-open-lift: 18px;
    --s2-chat-open-scale: 0.94;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000001;
    pointer-events: none;
    transform-origin: 100% 100%;
    will-change: transform;
}

.s2-bot-hitarea {
    --s2-bot-size: clamp(86px, 8.3vw, 119px);
    position: relative;
    width: var(--s2-bot-size);
    height: var(--s2-bot-size);
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.s2-bot-hitarea:focus-visible {
    outline: 2px solid rgba(246, 147, 32, 0.9);
    outline-offset: 6px;
}

.s2-bot-ambient {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.34), transparent 44%),
        radial-gradient(circle at 50% 60%, rgba(246, 147, 32, 0.3), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(7, 18, 43, 0.52), rgba(7, 18, 43, 0));
    filter: blur(8px);
    opacity: 0.84;
    transform: scale(0.94);
}

.s2-bot-svg-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 22px 40px rgba(3, 10, 26, 0.34));
}

.s2-bot-svg-wrap svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.s2-chatbot[data-state="fallback"] .s2-bot-svg-wrap,
.s2-chatbot[data-state="ready"] .s2-bot-svg-wrap,
.s2-chatbot[data-state="enter"] .s2-bot-svg-wrap,
.s2-chatbot[data-state="idle"] .s2-bot-svg-wrap,
.s2-chatbot[data-state="tap"] .s2-bot-svg-wrap,
.s2-chatbot[data-state="thinking"] .s2-bot-svg-wrap {
    opacity: 1;
}

.s2-bot-fallback {
    width: 78%;
    height: 78%;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(7, 20, 44, 0.96), rgba(19, 53, 84, 0.92));
    color: #f69320;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    box-shadow:
        0 18px 38px rgba(2, 9, 24, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.s2-chatbot.is-chat-open .s2-bot-hitarea {
    pointer-events: none;
}

.s2-chatbot-ready .cbai-chat-bubble {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 1024px) {
    .s2-chatbot {
        --s2-chat-open-shift: 236px;
        --s2-chat-open-lift: 22px;
        --s2-chat-open-scale: 0.88;
        right: 18px;
        bottom: 18px;
    }

    .s2-bot-hitarea {
        --s2-bot-size: clamp(74px, 9vw, 96px);
    }
}

@media (max-width: 767px) {
    .s2-chatbot {
        --s2-chat-open-shift: 154px;
        --s2-chat-open-lift: 26px;
        --s2-chat-open-scale: 0.82;
        right: 12px;
        bottom: 12px;
    }

    .s2-bot-hitarea {
        --s2-bot-size: clamp(58px, 17vw, 76px);
    }
}

@media (max-width: 480px) {
    .s2-chatbot {
        --s2-chat-open-shift: 126px;
        --s2-chat-open-lift: 30px;
        --s2-chat-open-scale: 0.76;
        right: 10px;
        bottom: 10px;
    }

    .s2-bot-hitarea {
        --s2-bot-size: clamp(50px, 15vw, 62px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .s2-bot-ambient,
    .s2-bot-svg-wrap {
        transition: none !important;
        animation: none !important;
    }
}