/* TextZen Generated Content Styles */

/* Button Base Styles - Colors are set via inline CSS from settings */
.textzen-content-wrapper .textzen-cta-button,
.textzen-content-wrapper .cta-button,
.textzen-content-wrapper .amazon-button {
    padding: 10px 24px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: block !important;
    border: none !important;
    text-transform: uppercase !important;
    margin: 15px auto !important;
    text-align: center !important;
    max-width: 280px !important;
    transition: all 0.3s ease !important;
}

.textzen-content-wrapper .textzen-cta-button:hover,
.textzen-content-wrapper .cta-button:hover,
.textzen-content-wrapper .amazon-button:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

/* Table Styles */
.textzen-content-wrapper .aap-unique-comparison-table,
.textzen-content-wrapper .textzen-unique-comparison-table {
    border-collapse: collapse !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 840px !important;
    margin: 20px auto !important;
    border: 1px solid #eee !important;
    font-family: sans-serif !important;
    table-layout: fixed !important;
}

.textzen-content-wrapper .aap-unique-comparison-table th,
.textzen-content-wrapper .textzen-unique-comparison-table th {
    background: #f8f8f8 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    color: #333 !important;
}

.textzen-content-wrapper .aap-unique-comparison-table th,
.textzen-content-wrapper .aap-unique-comparison-table td,
.textzen-content-wrapper .textzen-unique-comparison-table th,
.textzen-content-wrapper .textzen-unique-comparison-table td {
    display: table-cell !important;
    padding: 15px 12px !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

.textzen-content-wrapper .aap-unique-comparison-table td,
.textzen-content-wrapper .textzen-unique-comparison-table td {
    background: #ffffff !important;
}

.textzen-content-wrapper .aap-unique-comparison-table td img,
.textzen-content-wrapper .textzen-unique-comparison-table td img {
    max-width: 140px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

.textzen-content-wrapper .aap-unique-comparison-table td .textzen-cta-button,
.textzen-content-wrapper .aap-unique-comparison-table td .cta-button,
.textzen-content-wrapper .textzen-unique-comparison-table td .textzen-cta-button,
.textzen-content-wrapper .textzen-unique-comparison-table td .cta-button {
    float: none !important;
    position: static !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    display: inline-block !important;
    margin: 0 auto !important;
}

/* Related Posts Section */
.textzen-content-wrapper .textzen-related-posts {
    background: #f9f9f9 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 18px !important;
    margin: 36px 0 !important;
}

.textzen-content-wrapper .textzen-related-posts h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #1a0dab !important;
}

.textzen-content-wrapper .textzen-related-posts ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.textzen-content-wrapper .textzen-related-posts ul li {
    padding: 8px 0 !important;
    border-bottom: 1px dashed #ccc !important;
}

.textzen-content-wrapper .textzen-related-posts ul li:last-child {
    border-bottom: none !important;
}

.textzen-content-wrapper .textzen-related-posts ul li a {
    text-decoration: none !important;
    font-weight: 500 !important;
    color: #1a0dab !important;
}

/* Mobile Responsive Styles */
@media (max-width: 780px) {
    .textzen-content-wrapper > p > .textzen-cta-button,
    .textzen-content-wrapper > p > .cta-button,
    .textzen-content-wrapper > p > .amazon-button,
    .textzen-content-wrapper .textzen-related-posts + p .textzen-cta-button,
    .textzen-content-wrapper .textzen-related-posts + p .cta-button,
    .textzen-content-wrapper .textzen-related-posts + p .amazon-button {
        display: block !important;
        width: auto !important;
        max-width: 92% !important;
        margin: 10px auto 12px !important;
        padding: 10px 20px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        border-radius: 999px !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table thead,
    .textzen-content-wrapper .textzen-unique-comparison-table thead {
        display: none !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table,
    .textzen-content-wrapper .aap-unique-comparison-table tbody,
    .textzen-content-wrapper .aap-unique-comparison-table tr,
    .textzen-content-wrapper .textzen-unique-comparison-table,
    .textzen-content-wrapper .textzen-unique-comparison-table tbody,
    .textzen-content-wrapper .textzen-unique-comparison-table tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table tr,
    .textzen-content-wrapper .textzen-unique-comparison-table tr {
        margin-bottom: 15px !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table td,
    .textzen-content-wrapper .textzen-unique-comparison-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: right !important;
        padding-left: 50% !important;
        position: relative !important;
        border-bottom: 1px solid #eee !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table td:before,
    .textzen-content-wrapper .textzen-unique-comparison-table td:before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 15px !important;
        width: calc(50% - 30px) !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
        text-align: left !important;
        font-weight: 700 !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table td:last-child,
    .textzen-content-wrapper .textzen-unique-comparison-table td:last-child {
        padding: 12px 10px !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table td:last-child:before,
    .textzen-content-wrapper .textzen-unique-comparison-table td:last-child:before {
        content: "" !important;
        display: none !important;
    }

    .textzen-content-wrapper .aap-unique-comparison-table td:last-child .textzen-cta-button,
    .textzen-content-wrapper .aap-unique-comparison-table td:last-child .cta-button,
    .textzen-content-wrapper .textzen-unique-comparison-table td:last-child .textzen-cta-button,
    .textzen-content-wrapper .textzen-unique-comparison-table td:last-child .cta-button {
        display: inline-block !important;
        width: auto !important;
        max-width: 85% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        border-radius: 999px !important;
    }
}
