.otb-task__actions-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .otb-task__actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .otb-task__collapsible-toggle {
        align-self: flex-start;
        order: 1;
    }

    .otb-task__body-ai {
        order: 2;
        width: 100%;
        margin-left: 0;
    }

    .otb-task__ai-hint-btn.fx-btn {
        width: 100%;
    }
}

.otb-task__collapsible-toggle[hidden] {
    display: none;
}

.otb-task__body-ai {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.otb-task__ai-hint-btn.fx-btn {
    flex-grow: 0;
    height: auto;
    min-height: 40px;
    padding: 6px 14px 6px 8px;
    gap: 8px;
    border-radius: 8px;
    align-items: center;
    font: var(--fw-extrabold) var(--fs-12)/var(--lh-16) var(--font-gilroy);
}

.otb-task__ai-hint-btn .otb-task__ai-hint-btn-icon,
.otb-task__ai-hint-btn-icon {
    flex: 0 0 auto;
    display: block;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.otb-task__ai-hint-btn-icon[hidden] {
    display: none;
}

.otb-task__ai-hint-btn-emoji {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 22px;
    line-height: 1;
}

.otb-task__ai-hint-btn-emoji[hidden] {
    display: none;
}

.otb-task__ai-hint-btn-label {
    flex: 0 1 auto;
    min-width: 0;
}

.otb-task__ai-hint-btn.otb-task__ai-hint-btn_cooldown,
.otb-task__ai-hint-btn.otb-task__ai-hint-btn_unavailable {
    background: var(--color-bg-medium-grey);
    color: var(--color-white);
    filter: none;
    transform: none;
    box-shadow: none;
    pointer-events: none;
    cursor: not-allowed;
}

.otb-task__ai-hint-btn.otb-task__ai-hint-btn_received {
    background: var(--color-bg-medium-grey);
    color: var(--color-white);
    filter: none;
    transform: none;
    box-shadow: none;
    pointer-events: none;
    cursor: default;
    opacity: 0.92;
}

.otb-task__ai-hint-btn_received .otb-task__ai-hint-btn-icon {
    display: none;
}

.otb-task__ai-hint-btn_received .otb-task__ai-hint-btn-emoji {
    display: flex;
}

.otb-task__ai-hint-btn.otb-task__ai-hint-btn_loading {
    cursor: wait;
    pointer-events: none;
    transform: none;
}

.otb-task__ai-hint-title {
    margin-bottom: 8px;
    font: var(--fw-extrabold) var(--fs-14)/var(--lh-20) var(--font-gilroy);
    color: #281b38;
}

.otb-task__ai-hint-text {
    white-space: pre-wrap;
}
