/**
 * Rendering support for saved article blocks created while Cocoon was active.
 * Deliberately scoped to article bodies: no header, footer, home or card reset.
 * Article-specific saved CSS is loaded after this file and stays authoritative.
 */
.entry-content :is(.button-block,.btn-wrap,.fbf-cro-action) {
    text-align: center;
}
.entry-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.entry-content :is(a.btn-red,a.fb-article-cta__link,a.fbf-article-cta__link,.btn-wrap.btn-wrap-red>a),
.single-factoring_company .fb-company-guide a.btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 64px;
    max-width: 100%;
    padding: 16px 24px;
    border: 0;
    border-radius: 8px;
    background: #e8322d;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
}
.entry-content :is(a.fb-article-cta__link,a.fbf-article-cta__link) {
    display: flex;
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
}
.entry-content :is(a.btn-red,a.fb-article-cta__link,a.fbf-article-cta__link,.btn-wrap.btn-wrap-red>a):hover,
.single-factoring_company .fb-company-guide a.btn-red:hover {
    background: #cf2824;
    color: #fff;
    text-decoration: none;
}
.entry-content :is(a.btn-red,a.fb-article-cta__link,a.fbf-article-cta__link,.btn-wrap.btn-wrap-red>a):focus-visible,
.single-factoring_company .fb-company-guide a.btn-red:focus-visible {
    outline: 3px solid #008ba3;
    outline-offset: 3px;
}
.entry-content .btn-wrap>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    text-align: center;
    white-space: normal;
}
.entry-content :is(.blank-box,.caption-box-content,.tab-caption-box-content,.label-box-content) {
    box-sizing: border-box;
    max-width: 100%;
    padding: 20px 24px;
    border: 2px dotted #a8b5c3;
    border-radius: 4px;
    background: #fff;
    margin-block: 24px;
}
.entry-content :is(.blank-box,.caption-box-content,.tab-caption-box-content,.label-box-content)>:last-child {
    margin-bottom: 0;
}
.entry-content :is(.caption-box-label,.tab-caption-box-label,.label-box-label) {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}
.entry-content :is(.scrollable-table,.fb-table-wrap) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.entry-content :is(.fb-table-wrap,.scrollable-table) table {
    margin: 0;
}
.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 600px) {
    .entry-content :is(a.btn-red,a.fb-article-cta__link,a.fbf-article-cta__link,.btn-wrap>a) {
        min-height: 60px;
        padding: 16px;
    }
    .entry-content :is(.blank-box,.caption-box-content,.tab-caption-box-content,.label-box-content) {
        padding: 16px;
    }
}

/* The current shared A8 banner lives above its saved official-site button. */
.entry-content .fbf-ququmo-affiliate-banner--article-cta {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    margin: 24px auto;
    text-align: center;
}
.entry-content .fbf-ququmo-affiliate-banner--article-cta .fbf-ququmo-affiliate-banner__link {
    display: inline-block;
    width: 300px;
    max-width: 100%;
    line-height: 0;
}
.entry-content .fbf-ququmo-affiliate-banner--article-cta .fbf-ququmo-affiliate-banner__image {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.entry-content .wp-block-buttons:has(>.fbf-ququmo-affiliate-banner--article-cta) {
    flex-direction: column;
    align-items: center;
}
.entry-content .wp-block-buttons>.fbf-ququmo-affiliate-banner--article-cta {
    flex: 0 0 auto;
}
/* These newer company-guide CTAs have no equivalent in the original theme. */
.single-factoring_company .fb-company-guide .fb-choice-button {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}
/* New editorial additions use the original company list and page dimensions. */
.single-factoring_company .fb-company-article-jump {
    margin: 0 0 24px;
}
.single-factoring_company .fb-company-article-jump a {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 44px;
    font-size: 13px;
}
.single-factoring_company :is(.fb-company-new-articles,.fb-company-more-options) {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border,#dfe6ed);
}
.single-factoring_company .fb-company-added-link>a {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.single-factoring_company .fb-company-article-topic {
    flex: 0 0 100px;
    font-size: 12px;
    color: var(--color-text-muted,#526377);
}
.single-factoring_company .fb-company-added-link a>span:nth-child(2) {
    flex: 1;
    min-width: 0;
}
.single-factoring_company .fb-company-article-arrow {
    flex: 0 0 auto;
}
@media (max-width: 600px) {
    .single-factoring_company .fb-company-added-link>a {
        flex-wrap: wrap;
        gap: 4px;
    }
    .single-factoring_company .fb-company-article-topic {
        flex-basis: 100%;
    }
}

/* Restored CV blocks retain the current red action style and a usable width.
 * Only the presentation bridge's opt-in class is targeted; protected article
 * buttons do not receive this class and keep their current presentation.
 */
.entry-content .wp-block-buttons.fbf-cv-button > .wp-block-button:has(> a.fb-article-cta__link) {
    width: min(100%, 480px);
    min-width: 0;
    max-width: 100%;
    margin-inline: auto;
}
.entry-content .wp-block-buttons.fbf-cv-button > .wp-block-button > a.fb-article-cta__link {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 64px;
    margin: 0;
    background: #e8322d !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: none;
}
.entry-content .wp-block-buttons.fbf-cv-button > .wp-block-button > a.fb-article-cta__link:hover,
.entry-content .wp-block-buttons.fbf-cv-button > .wp-block-button > a.fb-article-cta__link:focus-visible {
    background: #cf2824 !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

/* Embedded company cards use the original component, not article heading/table styles. */
.entry-content .company-card .card-title {
    margin: 0 0 var(--spacing-xs);
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    line-height: 1.5;
}
.entry-content .company-card .card-title a { color: inherit; text-decoration: none; }
.entry-content .company-card .recommend-title {
    margin: 0;
    padding: .5rem 1rem;
    border: 0;
    background: #00b8d4;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
}
.entry-content .company-card :is(.card-title,.recommend-title)::before,
.entry-content .company-card :is(.card-title,.recommend-title)::after { content: none; display: none; }
.entry-content .company-card .recommend-list { margin: 0; padding: .75rem 1rem .75rem 2rem; }
.entry-content .company-card .recommend-list li { font-size: .875rem; line-height: 1.8; margin: 0 0 .25rem; }
.entry-content .company-card .card-badges--after-recommend { display: none; }
.entry-content .company-card .specs-table { min-width: 0; margin: 0 0 var(--spacing-md); }
.entry-content .company-card .specs-table :is(th,td) { padding: var(--spacing-md) var(--spacing-lg); }
.entry-content .company-card .specs-table th { border-right: 3px solid var(--color-primary); }
@media(max-width:768px) {
    .entry-content .company-card .specs-table :is(th,td) { padding: var(--spacing-sm) var(--spacing-md); }
}
