.cpa-wrap,
.cpa-wrap * {
    box-sizing: border-box;
}

.cpa-wrap {
    margin: 1.5rem 0;
    font-family: inherit;
    color: #1f271f;
}

.cpa-disclosure {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.8rem;
    border-left: 4px solid var(--cpa-accent, #2f7d46);
    background: var(--cpa-soft-bg, #fffaf1);
    color: #4f594f;
    font-size: 0.875rem;
    line-height: 1.45;
}

.cpa-card {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 1.25rem;
    align-items: center;
    border: 1px solid rgba(47, 125, 70, 0.16);
    border-radius: 22px;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 39, 31, 0.09);
    overflow: hidden;
}

.cpa-template-editor_pick .cpa-card {
    background: linear-gradient(135deg, var(--cpa-soft-bg, #fffaf1), #fff);
    border-color: rgba(47, 125, 70, 0.28);
}

.cpa-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    border-radius: 18px;
    background: #f7f4ec;
    overflow: hidden;
}

.cpa-media img,
.cpa-list-media img,
.cpa-table-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

.cpa-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    font-size: 3rem;
    background: #f4efe5;
}

.cpa-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cpa-badge,
.cpa-best-for {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.cpa-badge {
    background: var(--cpa-accent, #2f7d46);
    color: #fff;
}

.cpa-best-for {
    background: rgba(47, 125, 70, 0.11);
    color: #285c37;
}

.cpa-title {
    margin: 0.25rem 0 0.45rem;
    color: #172016;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.cpa-verdict,
.cpa-list-content p,
.cpa-comparison-header p {
    color: #4b554b;
    line-height: 1.55;
}

.cpa-bullets,
.cpa-mini-list {
    margin: 0.8rem 0 1rem;
    padding-left: 1.15rem;
}

.cpa-bullets li,
.cpa-mini-list li {
    margin: 0.25rem 0;
    line-height: 1.45;
}

.cpa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    border-radius: 999px;
    padding: 0.72rem 1.05rem;
    background: var(--cpa-accent, #2f7d46);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
    line-height: 1.1;
    box-shadow: 0 8px 20px rgba(47, 125, 70, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.cpa-button:hover,
.cpa-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(47, 125, 70, 0.28);
    opacity: 0.95;
}

.cpa-pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1rem 0;
}

.cpa-pros-cons > div {
    border: 1px solid rgba(47, 125, 70, 0.14);
    border-radius: 16px;
    padding: 0.85rem;
    background: #fbfaf6;
}

.cpa-pros-cons ul {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}

.cpa-list {
    display: grid;
    gap: 0.9rem;
}

.cpa-list-item {
    display: grid;
    grid-template-columns: 48px 115px 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(47, 125, 70, 0.14);
    border-radius: 20px;
    padding: 0.9rem;
    background: #fff;
    box-shadow: 0 10px 26px rgba(31, 39, 31, 0.06);
}

.cpa-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--cpa-accent, #2f7d46);
    color: #fff;
    font-weight: 900;
}

.cpa-list-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 95px;
    border-radius: 14px;
    background: #f7f4ec;
    overflow: hidden;
}

.cpa-list-media .cpa-placeholder {
    min-height: 95px;
    font-size: 2rem;
}

.cpa-comparison {
    border: 1px solid rgba(47, 125, 70, 0.16);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 39, 31, 0.09);
}

.cpa-comparison-header {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, var(--cpa-soft-bg, #fffaf1), #fff);
    border-bottom: 1px solid rgba(47, 125, 70, 0.12);
}

.cpa-comparison-header h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.25;
}

.cpa-comparison-header p {
    margin: 0.35rem 0 0;
}

.cpa-table-scroll {
    overflow-x: auto;
}

.cpa-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.cpa-table th,
.cpa-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(47, 125, 70, 0.12);
    text-align: left;
    vertical-align: middle;
    line-height: 1.45;
}

.cpa-table th {
    background: #fbfaf6;
    color: #243024;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.cpa-table tr:last-child td {
    border-bottom: 0;
}

.cpa-table-product {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 0.75rem;
    align-items: center;
    min-width: 220px;
}

.cpa-table-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 14px;
    background: #f7f4ec;
    overflow: hidden;
}

.cpa-table-image .cpa-placeholder {
    min-height: 82px;
    font-size: 1.8rem;
}

.cpa-admin-warning {
    padding: 0.75rem;
    border-left: 4px solid #b32d2e;
    background: #fff5f5;
    color: #7a1d1d;
}

@media (max-width: 760px) {
    .cpa-card {
        grid-template-columns: 1fr;
        padding: 1rem;
        border-radius: 18px;
    }

    .cpa-media {
        min-height: 170px;
    }

    .cpa-button {
        width: 100%;
    }

    .cpa-pros-cons {
        grid-template-columns: 1fr;
    }

    .cpa-list-item {
        grid-template-columns: 42px 82px 1fr;
    }

    .cpa-list-action {
        grid-column: 1 / -1;
    }

    .cpa-table-scroll {
        overflow: visible;
    }

    .cpa-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.85rem;
    }

    .cpa-table thead {
        display: none;
    }

    .cpa-table,
    .cpa-table tbody,
    .cpa-table tr,
    .cpa-table td {
        display: block;
        width: 100%;
    }

    .cpa-table tr {
        border: 1px solid rgba(47, 125, 70, 0.14);
        border-radius: 18px;
        padding: 0.75rem;
        background: #fff;
        box-shadow: 0 8px 18px rgba(31, 39, 31, 0.06);
    }

    .cpa-table td {
        border-bottom: 0;
        padding: 0.55rem 0;
    }

    .cpa-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        color: #596359;
        font-size: 0.77rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.035em;
    }

    .cpa-table td:first-child::before {
        display: none;
    }
}
