/* Broker Full Card RTL Widget v6 */
.bfc-card {
    direction: rtl;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: inherit;
}

.bfc-reg-logo img{
	border-radius: 100% !important;
    width: 35px !important;
    height: 35px !important;
}

/* HEADER */
.bfc-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.bfc-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bfc-logo{
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 10px;
        flex: 150px;
}

.bfc-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 10px !important ;
    
}

.bfc-header-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.bfc-header-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

/* AUDIO PLAYER */
.bfc-audio-wrap {
    margin-top: 10px;
    text-align: center;
}

.bfc-audio-player {
    width: 100%;
    max-width: 100%;
}

/* HEADER BUTTON */
.bfc-header-action {
    flex-shrink: 0;
}

.bfc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.bfc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* TOP STATS ROW */
.bfc-stats-row {
    display: flex;
    flex-direction: row !important;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background-color: #f8fafc;
    margin-left: auto;
    margin-right: auto;
}

.bfc-stat-item {
    display: flex;
    flex-direction: row !important;
    gap: 11px;
    
}

.bfc-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.bfc-stat-icon i,
.bfc-stat-icon svg {
    font-size: 18px;
}

.bfc-stat-label {
    font-size: 12px;
    color: #94a3b8;
}

.bfc-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* BOTTOM ROW: BOXES + CONTACT */
.bfc-bottom-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.bfc-bottom-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.bfc-box {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bfc-box-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.bfc-box-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Scroll when more than 4 regulators */
.bfc-box-body-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-left: 4px;
}

/* REGULATORY ROWS */
.bfc-box-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    align-items: center;
}

.bfc-reg-row {
    justify-content: flex-start;
    gap: 10px;
}

.bfc-reg-logo img {
    width: 50px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 2px;
}

.bfc-reg-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bfc-box-row-label {
    color: #64748b;
}

.bfc-box-row-value {
    color: #0f172a;
    font-weight: 600;
}

/* CONTACT BOX (RIGHT COLUMN) */
.bfc-rating-box {
    background-color: #f97316;
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end; /* برای بردن همه چیز به سمت چپ در RTL */
    justify-content: center;
    color: #ffffff;
}

.bfc-contact-title {
    font-size: 16px;
    font-weight: 700;
    align-self: baseline;
}

.bfc-contact-text {
    font-size: 13px;
    opacity: 0.95;
    align-self: flex-start  !important;
}

/* PHONE & EMAIL */
.bfc-contact-infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    align-self: flex-end;
    direction: ltr; /* برای درست نمایش دادن شماره و ایمیل و رفتن به سمت چپ */
}

.bfc-contact-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.bfc-contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bfc-contact-info-text a {
    color: inherit;
    text-decoration: underline;
}

/* SOCIAL ICONS */
.bfc-contact-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    align-self: flex-end;
    direction: ltr;
}

.bfc-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.bfc-contact-icon i,
.bfc-contact-icon svg {
    font-size: 18px;
}

.bfc-contact-icon:hover {
    background-color: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .bfc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bfc-header-action {
        width: 100%;
    }

    .bfc-header-action .bfc-btn {
        width: 100%;
        justify-content: center;
    }

    .bfc-bottom-row {
        grid-template-columns: 1fr;
    }

    .bfc-rating-box {
        align-items: flex-end;
    }

    .bfc-hide-mobile {
        display: none !important;
    }
    .bfc-contact-title {
     align-self: center;
    }
    .bfc-contact-infos {
    align-self: center;
}
    .bfc-contact-icons {
	align-self: center;
    
	}


.bfc-header-title{
margin-top:0 !important;
}

.bfc-header-main {
 
    align-items: start;

}

.bfc-header-text{
flex:100%;
}

.bfc-logo{
        flex: 100px;
}

}