/* Frontend and Editor Styles for Telegram Bot Introducer Box */
.telegram-bot-introducer-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    direction: rtl; /* Right-to-left for Persian */
    text-align: right;
}

.telegram-bot-introducer-box .bot-image {
    flex-shrink: 0;
    margin-left: 20px; /* For RTL, use margin-left */
}

.telegram-bot-introducer-box .bot-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0088cc;
    object-fit: cover;
}

.telegram-bot-introducer-box .bot-info {
    flex-grow: 1;
}

.telegram-bot-introducer-box .bot-id {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.telegram-bot-introducer-box .bot-id a {
    color: #0088cc;
    text-decoration: none;
    font-weight: bold;
}

.telegram-bot-introducer-box .bot-id a:hover {
    text-decoration: underline;
}

.telegram-bot-introducer-box .bot-description {
    margin: 0;
    padding: 10px;
    background-color: #fff;
    border: 1px dashed #ccc;
    border-radius: 5px;
    min-height: 40px;
}

/* Make description editable only in the editor */
body.post-type-post .bot-description,
body.post-type-page .bot-description {
    cursor: text;
}