.telegram-rich-text-field {
    min-width: 0;
}

.telegram-rich-text-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
}

.telegram-rich-text-paste {
    align-items: center;
    background: #edf2f6;
    border: 1px solid #d5dee7;
    border-radius: 4px;
    color: #314256;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
}

.telegram-rich-text-paste:disabled {
    cursor: wait;
    opacity: .55;
}

.telegram-rich-text-paste:focus-visible {
    outline: 3px solid rgba(47, 64, 82, .25);
    outline-offset: 2px;
}

.telegram-rich-text-status {
    color: #64748b;
    flex: 1 1 260px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.telegram-rich-text-status.is-error {
    color: #a43b3b;
}

@media (max-width: 640px) {
    .telegram-rich-text-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .telegram-rich-text-paste {
        width: 100%;
    }

    .telegram-rich-text-status {
        flex-basis: auto;
    }
}
