.sjc-widget {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9999;
    font-family: inherit;
}

.sjc-launcher {
    border: 0;
    border-radius: 999px;
    background: #0eb801;
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    animation: sjcPulse 3.6s ease-in-out infinite;
}

.sjc-launcher:hover,
.sjc-launcher:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.sjc-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(420px, calc(100vw - 24px));
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    transform-origin: bottom right;
    animation: sjcPanelIn 180ms ease-out;
}

.sjc-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    color: #fff;
    background: #2f5bb7;
}

.sjc-header p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.35;
}

.sjc-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.sjc-messages {
    max-height: 380px;
    overflow-y: auto;
    padding: 16px;
    background: #f7f9fc;
}

@keyframes sjcPulse {
    0%,
    78%,
    100% {
        transform: translateY(0);
    }
    84% {
        transform: translateY(-4px);
    }
    90% {
        transform: translateY(0);
    }
}

@keyframes sjcPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sjc-message {
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 8px;
    line-height: 1.4;
}

.sjc-message.bot {
    color: #17324d;
    background: #e8eefb;
}

.sjc-message.user {
    color: #fff;
    background: #2f5bb7;
}

.sjc-actions {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fff;
}

.sjc-button,
.sjc-input,
.sjc-textarea {
    width: 100%;
    border-radius: 6px;
}

.sjc-button {
    border: 1px solid #2f5bb7;
    background: #fff;
    color: #2f5bb7;
    padding: 10px 12px;
    text-align: left;
}

.sjc-button:hover,
.sjc-button:focus {
    background: #eef3ff;
}

.sjc-input,
.sjc-textarea {
    border: 1px solid #c8d2e3;
    padding: 10px 12px;
}

.sjc-textarea {
    min-height: 78px;
    resize: vertical;
}

.sjc-submit {
    border: 0;
    background: #0eb801;
    color: #fff;
    padding: 11px 12px;
    font-weight: 600;
}

.sjc-faq {
    margin-top: 42px;
}

.sjc-faq h2 {
    margin-bottom: 18px;
}

.sjc-faq-grid {
    display: grid;
    gap: 16px;
}

.sjc-faq-item {
    padding: 18px;
    border: 1px solid #d9e1f2;
    border-radius: 8px;
    background: #fff;
}

.sjc-faq-item h3 {
    margin-top: 0;
    color: #2f5bb7;
    font-size: 20px;
}

.sjc-faq-item p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .sjc-widget {
        right: 12px;
        bottom: 88px;
    }

    .sjc-panel {
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100vh - 128px);
    }
}
