.firp-box,
.entry-content .firp-box {
    direction: rtl;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 24px 0;
    padding: 15px 16px;
    background: var(--firp-bg, #f3f8ff);
    border-right: 5px solid var(--firp-border, #1d72d8);
    border-left: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    clear: both;
}

.firp-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.12);
}

.firp-content {
    flex: 1 1 auto;
    min-width: 0;
}

.firp-label {
    display: block;
    margin-bottom: 4px;
    color: var(--firp-label, #0b4f9c);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 700;
}

.firp-title {
    display: block;
    color: var(--firp-title, #1f2937) !important;
    text-decoration: none !important;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 800;
}

.firp-title:hover,
.firp-title:focus {
    color: var(--firp-hover, #0f62c8) !important;
    text-decoration: none !important;
}

.firp-meta {
    display: block;
    margin-top: 4px;
    color: rgba(31, 41, 55, .64);
    font-size: 12px;
    line-height: 1.6;
}

.firp-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--firp-border, #1d72d8);
    font-size: 16px;
    font-weight: 900;
}

.firp-thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    text-decoration: none !important;
}

.firp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.firp-template-simple {
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: none;
    border-top: 1px solid rgba(0, 0, 0, .05);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.firp-template-simple .firp-thumb,
.firp-template-simple .firp-meta {
    display: none;
}

.firp-template-compact {
    padding: 10px 12px;
    margin: 18px 0;
    border-radius: 10px;
    box-shadow: none;
}

.firp-template-compact .firp-thumb,
.firp-template-compact .firp-meta,
.firp-template-compact .firp-arrow {
    display: none;
}

.firp-template-compact .firp-label {
    display: inline;
    margin: 0 0 0 6px;
}

.firp-template-compact .firp-title {
    display: inline;
    font-size: 15px;
}

.firp-shortcode-wrap {
    direction: rtl;
}

@media (max-width: 640px) {
    .firp-box,
    .entry-content .firp-box {
        gap: 10px;
        padding: 13px 12px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .firp-hide-mobile {
        display: none !important;
    }

    .firp-thumb {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 10px;
    }

    .firp-title {
        font-size: 15px;
        line-height: 1.8;
    }

    .firp-arrow {
        display: none;
    }
}
