.tor-convo-bot {
    width: 100%;
    margin: 0;
    padding: 0;
}

.tor-convo-bot__screen {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
    min-height: 0;
    background: transparent;
}

.tor-convo-bot__messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    overflow: visible;
}

.tor-convo-bot__messages:empty {
    display: none;
}

.tor-convo-bot__composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.tor-convo-bot__launcher:empty {
    display: none;
}

.tor-convo-bot__launcher-button {
    position: relative;
    display: inline-block;
    background: #3a97d3;
    color: #fff;
    border: none;
    padding: 22px 40px;
    font-size: 44px;
    border-radius: 30px;
    cursor: pointer;
    min-width: 420px;
    text-align: center;
    transition: background 0.25s ease;
}

.tor-convo-bot__launcher-button::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 18px;
    width: 0;
    height: 0;
    border-right: 18px solid transparent;
    border-bottom: 18px solid #3a97d3;
    transition: border-bottom-color 0.25s ease;
}

.tor-convo-bot__launcher-button:hover {
    background: var(--dark_blue);
}

.tor-convo-bot__launcher-button:hover::before {
    border-bottom-color: var(--dark_blue);
}

.tor-convo-bot__launcher-button--image {
    padding: 0;
    background: transparent;
    min-width: 0;
}

.tor-convo-bot__launcher-image {
    display: block;
    max-width: min(100%, 520px);
    height: auto;
    border-radius: 18px;
}

.tor-convo-bot__bubble {
    position: relative;
    display: inline-block;
    background: #3a97d3;
    color: #fff;
    border: none;
    padding: 28px 50px;
    font-size: 44px;
    border-radius: 22px;
    min-width: 420px;
    text-align: center;
    line-height: 1.45;
    word-break: break-word;
}

.tor-convo-bot__bubble::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 18px;
    width: 0;
    height: 0;
    border-right: 18px solid transparent;
    border-bottom: 18px solid #3a97d3;
}

.tor-convo-bot__bubble.is-puffing {
    animation: tor-convo-bot-puff 280ms ease-out both;
}

.tor-convo-bot__bubble--bot {
    display: inline-block;
    margin: 0;
    margin-right: auto;
    background: #e9e9eb;
    color: #000;
}

.tor-convo-bot__bubble--bot::before {
    border-bottom-color: #e9e9eb;
}

.tor-convo-bot__bubble--user {
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: auto;
}

.tor-convo-bot__bubble--user::before {
    top: auto;
    bottom: -12px;
    left: auto;
    right: 18px;
    border-right: none;
    border-bottom: none;
    border-left: 18px solid transparent;
    border-top: 18px solid #3a97d3;
}

.tor-convo-bot__bubble--system {
    margin: 0;
    text-align: left;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tor-convo-bot__typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tor-convo-bot__typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.3;
    animation: tor-convo-bot-typing 900ms ease-in-out infinite;
}

.tor-convo-bot__typing-dot:nth-child(2) {
    animation-delay: 150ms;
}

.tor-convo-bot__typing-dot:nth-child(3) {
    animation-delay: 300ms;
}

.tor-convo-bot__input-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.tor-convo-bot__input,
.tor-convo-bot__textarea {
    flex: 1;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 22px;
    background: #fff;
    font-size: 44px;
}

.tor-convo-bot__textarea {
    min-height: 120px;
    border-radius: 22px;
    resize: vertical;
}

.tor-convo-bot__send {
    border: 0;
    border-radius: 30px;
    padding: 15px 40px;
    color: #fff;
    background: #21b6d7;
    font-size: 44px;
    cursor: pointer;
}

.tor-convo-bot__options {
    display: grid;
    gap: 8px;
}

.tor-convo-bot__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.tor-convo-bot__status {
    margin-top: 4px;
    font-size: 13px;
    color: #b91c1c;
}

html .tor-convo-bot__composer {
    width: 100%;
    min-width: min(600px, 100%);
    max-width: 100%;
    margin: 50px auto;
}

html .tor-convo-bot {
    width: 100%;
}

@keyframes tor-convo-bot-puff {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tor-convo-bot-typing {
    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 600px) {
    .tor-convo-bot__launcher-button,
    .tor-convo-bot__bubble,
    .tor-convo-bot__input,
    .tor-convo-bot__textarea,
    .tor-convo-bot__send {
        font-size: 28px;
    }

    .tor-convo-bot__input-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .tor-convo-bot__bubble {
        max-width: 100%;
    }

    .tor-convo-bot__send {
        width: 100%;
    }
}
