/* Legacy CTA Button Sections */
._BusinessCTA__DownloadCampaignWrapper-sc-h94lt0-0,
._Report__DownloadCampaignWrapper-sc-1ljo1xk-1,
.download-button-section,
.business-button-section {
    background-color: rgba(235, 227, 217, 0.8);
    margin: 32px 0;
}

._BusinessCTA__FlexContainerBackground-sc-h94lt0-1 ._BusinessCTA__FlexItemAsContainer-sc-h94lt0-2,
.business-button-section {
    padding: 15px 0;
}

._Report__FlexContainerBackground-sc-1ljo1xk-2 ._Report__FlexItemAsContainer-sc-1ljo1xk-3,
.download-button-section {
    padding: 20px 0;
}

._BusinessCTA__MobileResponsiveFlexContainer-sc-h94lt0-4,
._Report__MobileResponsiveFlexContainer-sc-1ljo1xk-5,
.download-button-section-body,
.business-button-section-body {
    width: 75%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

._Report__MobileResponsiveFlexContainer-sc-1ljo1xk-5 h3,
.download-button-section-body,
.business-button-section-body {
    margin: 0 auto 20px auto !important;
    font-size: 1rem;
    line-height: 1.3;
    font-family: 'Practice', sans-serif;
}

._BusinessCTA__PCollectionCentered-sc-h94lt0-6 {
    margin-bottom: 20px;
}

._BusinessCTA__CTAButton-sc-h94lt0-3 {
    width: 100%;
    background-color: #fff;
    padding: 8px;
}

._Report__DownloadButton-sc-1ljo1xk-4 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    background-color: #fff;
    padding: 8px;
}

.download-button-section-label {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 45%;
    background-color: #fff;
    padding: 8px;
    text-align: center;
    font-family: 'ES Peak', sans-serif !important;
    text-decoration: none;
    color: inherit;
}

.business-button-section-label {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    background-color: #fff;
    padding: 8px;
    text-align: center;
    font-family: 'ES Peak', sans-serif !important;
    text-decoration: none;
    color: inherit;
}

._BusinessCTA__CTAButton-sc-h94lt0-3:hover,
._Report__DownloadButton-sc-1ljo1xk-4:hover,
.download-button-section-label:hover,
.business-button-section-label:hover {
    background-color: #b19b7d;
    color: #ffffff !important;
}

/* New unified CTA wrapper */
.cta-button-wrapper {
    background-color: rgba(235, 227, 217, 0.8);
    margin: 32px 0;
    padding: 20px;
}

/* Image wrapper for top position */
.cta-image-wrapper-top {
    margin: 0 auto 20px auto;
}

.cta-image-wrapper-top img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Image wrapper for left position */
.cta-image-wrapper-left {
    flex-shrink: 0;
    width: 200px;
    margin-right: 20px;
}

.cta-image-wrapper-left img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Content wrapper */
.cta-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content-wrapper.with-left-image {
    flex-direction: row;
    align-items: flex-start;
}

/* Text wrapper */
.cta-text-wrapper {
    flex: 1;
    width: 100%;
    text-align: center;
}

.cta-content-wrapper.with-left-image .cta-text-wrapper {
    text-align: left;
}

/* Body content from WYSIWYG */
.cta-body-content {
    margin-bottom: 20px;
    font-family: 'Practice', sans-serif;
    line-height: 1.5;
}

/* Preserve heading styles in body content */
.cta-body-content h1 {
    font-size: 2em;
    margin: 0.67em 0;
    font-weight: bold;
}

.cta-body-content h2 {
    font-size: 1.5em;
    margin: 0.75em 0;
    font-weight: bold;
}

.cta-body-content h3 {
    font-size: 1.17em;
    margin: 0.83em 0;
    font-weight: bold;
}

.cta-body-content h4 {
    font-size: 1em;
    margin: 1.12em 0;
    font-weight: bold;
}

.cta-body-content h5 {
    font-size: 0.83em;
    margin: 1.5em 0;
    font-weight: bold;
}

.cta-body-content h6 {
    font-size: 0.75em;
    margin: 1.67em 0;
    font-weight: bold;
}

.cta-body-content p {
    margin: 1em 0;
}

.cta-body-content ul,
.cta-body-content ol {
    margin: 1em 0;
    padding-left: 40px;
}

.cta-body-content li {
    margin: 0.5em 0;
}

.cta-body-content strong {
    font-weight: bold;
}

.cta-body-content em {
    font-style: italic;
}

.cta-body-content a {
    color: #b19b7d;
    text-decoration: underline;
}

.cta-body-content a:hover {
    color: #8a7a5f;
}

/* Center align for content without left image */
.cta-content-wrapper:not(.with-left-image) .cta-body-content {
    text-align: center;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy image support */
.business-button-section .imgShortcode {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.business-button-section .textShortcode {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-content-wrapper.with-left-image {
        flex-direction: column;
    }
    
    .cta-image-wrapper-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .cta-content-wrapper.with-left-image .cta-text-wrapper {
        text-align: center;
    }
    
    .download-button-section-label,
    .business-button-section-label {
        width: 90%;
    }
    
    .cta-image-wrapper-top {
        max-width: 100% !important;
    }
    
    .cta-content-wrapper:not(.with-left-image) .cta-body-content {
        width: 90%;
    }
}