/* ===== Featured Publisher (Buyer) Card — Option A: Minimal Corporate ===== */
/* Shared component used by Default.aspx, TendersSearch.aspx, AdvancedSearch.aspx */

.inline-widget-wrapper {
    margin: 8px 0;
    width: 100%;
    clear: both;
}

.featured-buyer-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 22px 18px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.featured-buyer-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.featured-buyer-card::before {
    display: none !important;
}

/* Badges: Top Row */
.fb-featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(90deg, #ff7f27, #f59e0b);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 0 0 0 10px;
    z-index: 2;
    line-height: 1.35;
    box-shadow: 0 2px 6px rgba(255, 127, 39, 0.18);
}

.fb-tenders-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
    border-top: none;
    border-left: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 10px 0;
    z-index: 2;
    line-height: 1.35;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.08);
}

[dir="ltr"] .fb-featured-badge,
html[dir="ltr"] .fb-featured-badge {
    right: auto;
    left: 0;
    border-radius: 0 0 10px 0;
}

[dir="ltr"] .fb-tenders-badge,
html[dir="ltr"] .fb-tenders-badge {
    left: auto;
    right: 0;
    border-left: 1px solid #99f6e4;
    border-right: none;
    border-radius: 0 0 0 10px;
}

/* Header */
.fb-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.fb-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid #edf2f7;
    padding: 3px;
    background: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin: 0 !important;
}

.fb-info {
    flex: 1;
    min-width: 0;
}

.fb-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

/* Meta (flag + location + sector) */
.fb-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.fb-flag {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.fb-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fb-meta-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
}

.fb-meta-dot {
    color: #cbd5e1;
    font-size: 0.5rem;
    flex-shrink: 0;
}

/* Divider */
.fb-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 12px 0 10px;
}

/* Actions: Compact Bottom Row */
.fb-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fb-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 6px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.fb-view-btn:hover {
    background: #ccfbf1;
    border-color: #5eead4;
}

.fb-browse-link {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.fb-browse-link:hover {
    color: #334155;
}

.fb-browse-link i {
    font-size: 0.65rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .featured-buyer-card {
        padding: 18px 12px 10px 12px;
    }

    .fb-featured-badge,
    .fb-tenders-badge {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .fb-header {
        margin-top: 14px;
    }

    .fb-logo {
        width: 42px;
        height: 42px;
    }

    .fb-name {
        font-size: 0.92rem;
    }

    .fb-meta-text {
        font-size: 0.72rem;
    }

    .fb-divider {
        margin: 10px 0 8px;
    }

    .fb-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .fb-view-btn {
        padding: 5px 12px;
        font-size: 0.72rem;
    }

    .fb-browse-link {
        font-size: 0.72rem;
    }
}
