/* ===================================================
   CPA Monetization — стили фронтенда
   =================================================== */

/* ── Общая обёртка блоков ── */
.cpa-mon-content-block {
    margin: 24px 0;
    box-sizing: border-box;
}

/* ── CTA-блок (H1 и in-content) ── */
.cpa-mon-cta-block {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #ff6b35;
    border-radius: 6px;
    padding: 16px 20px;
    box-sizing: border-box;
}

.cpa-mon-cta-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.cpa-mon-cta-content {
    flex: 1;
    min-width: 0;
}

.cpa-mon-cta-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cpa-mon-cta-subtitle {
    font-size: 13px;
    color: #666;
}

.cpa-mon-cta-button {
    display: inline-block;
    background: #ff6b35;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
    line-height: 1.4;
}

.cpa-mon-cta-button:hover {
    background: #e05a28;
    color: #fff !important;
}

/* ── CTA-карточка с шапкой ── */
.cpa-mon-cta-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.cpa-mon-cta-card-header {
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cpa-mon-cta-card-body {
    padding: 18px 20px;
    background: #fff;
    text-align: center;
}

.cpa-mon-cta-card-title {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.35;
}

.cpa-mon-cta-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    justify-content: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}

.cpa-mon-cta-card-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
    line-height: 1.4;
}

.cpa-mon-cta-card-btn:hover {
    background: #e05a28;
    color: #fff !important;
}

/* ── CTA горизонтальный расширенный ── */
.cpa-mon-cta-wide {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #ff6b35;
    border-radius: 6px;
    padding: 18px 20px;
    box-sizing: border-box;
}

.cpa-mon-cta-wide-icon {
    font-size: 34px;
    line-height: 1;
    flex-shrink: 0;
}

.cpa-mon-cta-wide-body {
    flex: 1;
    min-width: 0;
}

.cpa-mon-cta-wide-title {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
}

.cpa-mon-cta-wide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 13px;
    color: #555;
}

.cpa-mon-cta-wide-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
    line-height: 1.4;
}

.cpa-mon-cta-wide-btn:hover {
    background: #e05a28;
    color: #fff !important;
}

/* ── Карточки партнёров ── */
.cpa-mon-partners-block {
    background: #f0f7ff;
    border: 1px solid #c8dff5;
    border-radius: 6px;
    padding: 16px 20px;
}

.cpa-mon-partners-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    margin-bottom: 12px;
}

.cpa-mon-partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cpa-mon-partner-btn {
    display: inline-block;
    background: #fff;
    color: #0066cc !important;
    text-decoration: none !important;
    border: 2px solid #0066cc;
    border-radius: 5px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.cpa-mon-partner-btn:hover {
    background: #0066cc;
    color: #fff !important;
}

/* ── Артикул-ссылки ── */
.cpa-mon-article-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.cpa-mon-article-link:hover {
    color: #ff6b35;
}

/* ── Баннеры (HTML из Адмитад) ── */
.cpa-mon-inline-block,
.cpa-mon-end-block,
.cpa-mon-sidebar-block {
    text-align: center;
    overflow: hidden;
}

/* ── Сайдбар: вертикальная компоновка ── */
.cpa-mon-sidebar-block .cpa-mon-cta-block,
.cpa-mon-sidebar-block .cpa-mon-cta-wide {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.cpa-mon-sidebar-block .cpa-mon-cta-icon,
.cpa-mon-sidebar-block .cpa-mon-cta-wide-icon {
    font-size: 24px;
}

.cpa-mon-sidebar-block .cpa-mon-cta-button,
.cpa-mon-sidebar-block .cpa-mon-cta-wide-btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    box-sizing: border-box;
}

.cpa-mon-sidebar-block .cpa-mon-cta-wide-features {
    justify-content: center;
}

.cpa-mon-sidebar-block .cpa-mon-partners-list {
    flex-direction: column;
}

.cpa-mon-sidebar-block .cpa-mon-partner-btn {
    text-align: center;
}

/* ── Адаптив ── */
@media (max-width: 600px) {
    .cpa-mon-cta-block {
        flex-wrap: wrap;
    }

    .cpa-mon-cta-button {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .cpa-mon-cta-wide {
        flex-wrap: wrap;
    }

    .cpa-mon-cta-wide-btn {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .cpa-mon-cta-card-features {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .cpa-mon-partner-btn {
        flex: 1 1 calc(50% - 5px);
        text-align: center;
    }
}
