/* ============================================== */
/*   META API — CONFLICT-FREE CSS (ma-prefixed)   */
/* ============================================== */

#metaapi.ma-wrapper {
    font-family: inherit;
}

/* ------------------ TITLES ------------------ */
#metaapi.ma-wrapper .ma-main-title {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    margin: 8px auto 18px;
    display: inline-block;
    position: relative;
}

#metaapi.ma-wrapper .ma-main-title::after {
    content: "";
    position: absolute;
    width: 65%;
    height: 4px;
    background: #01a37a;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* ------------------ BILLING TOGGLE ------------------ */
/* #metaapi.ma-wrapper .ma-billing-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

#metaapi.ma-wrapper .ma-billing-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    background: #eaeaea;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

#metaapi.ma-wrapper .ma-billing-btn.active {
    background: #00b894;
    color: #fff;
} */


/* UPDATED TOGGLE BASED ON */
#metaapi.ma-wrapper .ma-billing-toggle {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    background: #f1f1f1;
    border-radius: 30px;
    margin: 20px 0;
}

#metaapi.ma-wrapper .ma-billing-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    transition: all 0.25s ease;
    min-width: 90px;
}

#metaapi.ma-wrapper .ma-billing-btn.active {
    background: #00b894;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 184, 148, 0.35);
}


/* ------------------ MAIN TABS ------------------ */
#metaapi.ma-wrapper .ma-plan-main-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

#metaapi.ma-wrapper .ma-tab-btn {
    padding: 12px 30px;
    border: 1px solid #e0e0e0;
    background: #f7f7f7;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: 0.3s ease;
}

#metaapi.ma-wrapper .ma-tab-btn.active {
    background: #00a676;
    color: #fff;
    border-color: #00a676;
}

/* ------------------ PLAN SECTIONS ------------------ */
#metaapi.ma-wrapper .ma-plan-section {
    display: none;
}

#metaapi.ma-wrapper .ma-plan-section.active {
    display: block;
}

/* ------------------ PRICING TABLE ------------------ */
#metaapi.ma-wrapper .ma-pricing-table {
    display: grid;
    grid-template-columns: 260px repeat(4, 1fr);
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    max-width: 1180px;
    margin: 40px auto;
}

#metaapi.ma-wrapper .ma-pricing-row {
    display: contents;
}

#metaapi.ma-wrapper .ma-label-col {
    background: #fafafa;
    font-weight: 700;
    color: #333;
    border-right: 1px solid #eee;
}

#metaapi.ma-wrapper .ma-col {
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

#metaapi.ma-wrapper .ma-cell {
    padding: 22px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

#metaapi.ma-wrapper .ma-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#metaapi.ma-wrapper .ma-header .ma-price-amount {
    display: block;
    font-size: 26px;
    font-weight: 800;
    margin-top: 8px;
    color: #111;
}

#metaapi.ma-wrapper .ma-header .ma-price-period {
    color: #666;
    font-size: 14px;
}

/* ------------------ BUTTONS ------------------ */
/* #metaapi.ma-wrapper .ma-trial-btn {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    width: 90%;
    font-weight: 700;
    cursor: pointer;
    border: none;
} */

#metaapi.ma-wrapper .ma-trial-btn {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    width: 90%;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

/* PRIMARY (green) pricing button */
#metaapi.ma-wrapper .ma-trial-btn.ma-green {
    /* background-color: #EFEFEF; */
    border-color: #00a67d;
    color: #00a676;
    cursor: pointer;
}

/* Hover effect (same as btn-pricing) */
#metaapi.ma-wrapper .ma-trial-btn:hover {
    transform: translateY(-2px);
    background-color: #00a676;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


#metaapi.ma-wrapper .ma-yellow {
    background: #f9bf2f;
}


/* ------------------ CHANNEL BOXES ------------------ */
#metaapi.ma-wrapper .ma-channel-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#metaapi.ma-wrapper .ma-channel-box {
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: 700;
}

#metaapi.ma-wrapper .ma-channel-logo {
    width: 30px;
    height: 40px;
    object-fit: contain;
}



/* WhatsApp background badge */
#metaapi.ma-wrapper .ma-whatsapp {
    background: #e2f7ef;
    border-color: #cbeee4;
    color: #027a58;
}

/* ------------------ FEATURE HIGHLIGHT LISTS ------------------ */


/* Remove UL indentation completely */
#metaapi.ma-wrapper .ma-highlight ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Clean list item layout */
#metaapi.ma-wrapper .ma-highlight li {
    margin-bottom: 8px;
    padding: 0;
    /* ❌ no left spacing */
    display: flex;
    /* ✅ icon + text inline */
    align-items: flex-start;
    gap: 6px;
    /* ✅ ONLY space between ✔ and text */
    position: relative;
}

/* Tick icon — NOT absolute */
#metaapi.ma-wrapper .ma-highlight li::before {
    content: "✔";
    font-weight: 700;
    line-height: 1.2;
    color: var(--tick);
    flex-shrink: 0;
    /* prevents shifting */
}





#metaapi.ma-wrapper .ma-orange::before {
    color: #eb9203;
}

#metaapi.ma-wrapper .ma-green::before {
    color: #078433;
}

#metaapi.ma-wrapper .ma-sky::before {
    color: #007BFF;
}

#metaapi.ma-wrapper .ma-blue::before {
    color: #04318c;
}





#metaapi.ma-wrapper .ma-starter-bg {
    background: #fff4dd;
}

#metaapi.ma-wrapper .ma-growth-bg {
    background: #eaf9f4;
}

#metaapi.ma-wrapper .ma-advanced-bg {
    background: #e3f5ff;
}

#metaapi.ma-wrapper .ma-enterprise-bg {
    background: #eaf7f5;
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 992px) {
    #metaapi.ma-wrapper .ma-pricing-table {
        grid-template-columns: 1fr;
    }

    #metaapi.ma-wrapper .ma-label-col {
        display: none;
    }

    #metaapi.ma-wrapper .ma-cell {
        padding: 16px;
    }
}



#metaapi.ma-wrapper .ma-pricing-card {
    border: 2px solid #ddd;
    border-radius: 14px;
    padding: 25px;
    background: #fff;
    transition: 0.3s ease;
    min-height: 520px;
}

#metaapi.ma-wrapper .ma-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#metaapi.ma-wrapper .ma-price-amount {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #000;
}

#metaapi.ma-wrapper .ma-price-per-message {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
}

#metaapi.ma-wrapper .ma-pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

#metaapi.ma-wrapper .ma-pricing-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
}

#metaapi.ma-wrapper .ma-pricing-features i {
    margin-right: 6px;
    color: #00a884;
}

/* Border coloring for Sales plans */
#metaapi.ma-wrapper #sales-silver {
    border-color: #2980b9;
    color: black;
}

#metaapi.ma-wrapper #sales-gold {
    border-color: #f1c40f;
    color: black;
}

#metaapi.ma-wrapper #sales-platinum {
    border-color: green;
    color: black;
}

#metaapi.ma-wrapper #sales-international {
    border-color: red;
    color: black;
}


/* Accordion Header */
/* All accordion headers */
#allFeaturesAccordion .accordion-button {
    background-color: #EFEFEF !important;
    /* header background */
    color: black !important;
    /* header text */
    font-weight: bold;
}

/* Arrow icon color */
#allFeaturesAccordion .accordion-button::after {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    /* makes arrow black */
}

/* Accordion body (collapsed content) */
#allFeaturesAccordion .accordion-body {
    background-color: #F8F8F8;
    /* body background */
    color: #333;
    /* body text */
}

/* Optional: table inside accordion body */
#allFeaturesAccordion .accordion-body table {
    background-color: #F8F8F8;
    /* table background */
    color: #333;
    /* table text */
}




/* =============================== */
/* MOBILE PRICING – SCREENSHOT UI */
/* =============================== */
@media (max-width: 992px) {

    .ma-mobile-scroll {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .ma-mobile-scroll::-webkit-scrollbar {
        display: none;
    }

    .ma-mobile-card {
        flex: 0 0 88%;
        background: #fff;
        border-radius: 18px;
        padding: 18px;
        scroll-snap-align: start;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .ma-mobile-card h4 {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .ma-price {
        font-size: 26px;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .ma-mobile-card small {
        color: #666;
        display: block;
        margin-bottom: 12px;
    }

    .ma-feature-box {
        background: rgba(255, 255, 255, 0.6);
        border-radius: 12px;
        padding: 14px;
        margin: 14px 0;
    }

    .ma-feature-box ul,
    .ma-highlight ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ma-feature-box li,
    .ma-highlight li {
        display: flex;
        gap: 8px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .ma-feature-box li::before,
    .ma-highlight li::before {
        content: "✔";
        font-weight: 700;
        color: #00a676;
    }

    .ma-trial-btn {
        width: 100%;
        border-radius: 10px;
    }
}







@media (max-width: 992px) {

    /* 1. Reset the table container */
    #metaapi.ma-wrapper .ma-pricing-table {
        display: flex;
        flex-direction: column;
        /* Stack Plan 1, then Plan 2, then Plan 3 */
        border: none;

    }

    /* 2. Make the Rows behave as transparent containers */
    #metaapi.ma-wrapper .ma-pricing-row {
        display: contents;
        /* display: flex; */
        /* flex-direction: column; */
        /* This is the "magic" that allows children to reorder */
    }

    /* 3. Reorder the cells using the 'order' property */
    /* We group all cells belonging to the same plan together */

    /* Starter Plan Group */
    #metaapi.ma-wrapper .ma-pricing-row .ma-col:nth-child(2) {
        order: 1;
    }

    /* Growth Plan Group */
    #metaapi.ma-wrapper .ma-pricing-row .ma-col:nth-child(3) {
        order: 2;
    }

    /* Advanced Plan Group */
    #metaapi.ma-wrapper .ma-pricing-row .ma-col:nth-child(4) {
        order: 3;
    }

    /* Enterprise Plan Group */
    #metaapi.ma-wrapper .ma-pricing-row .ma-col:nth-child(5) {
        order: 4;
    }

    /* 4. Style each Plan "Block" to look like a card */
    #metaapi.ma-wrapper .ma-col {
        margin-bottom: 20px;
        border: 2px solid #eee;
        border-radius: 15px;

        display: flex;
        flex-direction: column;
    }

    /* 5. Hide labels and fix spacing */
    #metaapi.ma-wrapper .ma-label-col {
        display: none;
    }

    #metaapi.ma-wrapper .ma-cell {
        border: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
        width: 100% !important;
    }

    /* Ensure the header is always at the top of its block */
    #metaapi.ma-wrapper .ma-header {
        border-bottom: 2px solid #eee;
    }

    /* Fix the inline margins you have in HTML for mobile */
    #metaapi.ma-wrapper .ma-channel-section div {
        margin-left: 0 !important;
        text-align: center;
        width: 100% !important;
    }


    .trial-btn.ma-trial-btn {
        display: block;
        margin: 20px auto;
        width: fit-content;
        text-align: center;
    }





    h3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Only the table overflows horizontally */
    .table-scroll {
        overflow-x: auto;
        /* horizontal scroll if needed */
        overflow-y: hidden;
        /* prevent vertical scroll */
        -webkit-overflow-scrolling: touch;
        /* smooth scroll on mobile */
        width: 100%;
    }

    /* Table keeps its natural width */
    .table-scroll table {
        width: max-content;
        /* table width depends on content */
        min-width: 100%;
        /* ensures table fills container */
        white-space: nowrap;
        /* prevents wrapping of text */
    }

    /* Optional subtle hint for users */
    .table-scroll::after {
        content: "← Swipe to see more →";
        display: block;
        text-align: center;
        font-size: 12px;
        color: #888;
        padding: 4px 0;
    }




    /* Feature list card look (mobile only) */
    #metaapi.ma-wrapper .ma-feature-box {
        background: #ecf8f4;
        /* light mint */
        border-radius: 14px;
        padding: 18px 20px;
        margin-bottom: 14px;
    }

    #metaapi.ma-wrapper .ma-feature-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #metaapi.ma-wrapper .ma-feature-box li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
        color: #222;
    }

    /* Blue tick */
    #metaapi.ma-wrapper .ma-feature-box li::before {
        content: "✔";
        color: #1e88e5;
        font-weight: 700;
        margin-top: 2px;
    }


    /* Horizontal scroll */
    #metaapi.ma-wrapper .ma-pricing-table {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 10px;
    }

    /* Starter stays full width */
    #metaapi.ma-wrapper .ma-col:nth-of-type(1) {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    /* Other plans swipe */
    #metaapi.ma-wrapper .ma-col:nth-of-type(n+2) {
        flex: 0 0 88%;
        scroll-snap-align: start;
    }

    /* Hide scrollbar */
    #metaapi.ma-wrapper .ma-pricing-table::-webkit-scrollbar {
        display: none;
    }

    #metaapi.ma-wrapper .ma-pricing-table {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

}


/* =============================== */
/* ACCORDION STYLES               */
/* =============================== */
#allFeaturesAccordion {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    background-color: #EFEFEF;
    margin-bottom: 50px;
}



#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(2) {
    color: #f9bf2f !important;
}

#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(3) {
    color: #00a67d !important;
}

#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(4) {
    color: #007ae0 !important;
}

#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(5) {
    color: #053c34 !important;
}




#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(2).text-success,
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(3).text-success,
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(4).text-success,
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(5).text-success {
    color: #25D366 !important;
}
/* =============================== */
/* MOBILE CARD VIEW STYLES        */
/* =============================== */
@media (max-width: 992px) {
    .ma-mobile-card-view {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 16px 16px 30px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ma-mobile-card-view::-webkit-scrollbar {
        display: none;
    }

    .ma-mobile-card-item {
        flex: 0 0 88%;
        scroll-snap-align: start;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid #eaeaea;
        margin-bottom: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .ma-mobile-header {
        padding: 24px 20px 10px;
        text-align: left;
        border-bottom: none;
    }

    .ma-mobile-header h4.title {
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px !important;
    }

    .ma-mobile-header .ma-price-amount {
        font-size: 32px;
        font-weight: 800;
        margin: 0;
        color: #000;
        line-height: 1.2;
    }

    .ma-mobile-header .ma-price-period {
        font-size: 13px;
        color: #666;
        margin-bottom: 15px;
    }

    .ma-mobile-header .price-desc {
        font-size: 14px;
        color: #333;
        margin-bottom: 20px !important;
        line-height: 1.4;
    }

    .ma-mobile-features {
        padding: 0 20px 24px;
    }

    .ma-mobile-features ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ma-mobile-features li {
        margin-bottom: 12px;
        display: flex;
        gap: 12px;
        font-size: 14px;
        align-items: flex-start;
        line-height: 1.5;
        color: #333;
    }

    .ma-mobile-features li::before {
        content: '?';
        font-weight: bold;
        flex-shrink: 0;
        font-size: 14px;
    }

    .ma-tick-orange li::before {
        color: #f9bf2f;
    }

    .ma-tick-green li::before {
        color: #00a67d;
    }

    .ma-tick-sky li::before {
        color: #007ae0;
    }

    .ma-tick-blue li::before {
        color: #053c34;
    }

    .ma-mobile-bg-starter {
        background-color: #fffcf5;
    }

    .ma-mobile-bg-growth {
        background-color: #f1fcf9;
    }

    .ma-mobile-bg-advanced {
        background-color: #f4faff;
    }

    .ma-mobile-bg-enterprise {
        background-color: #f6fcfa;
    }

    .ma-btn-yellow {
        background-color: #f9bf2f;
        color: #053c34;
        border: none;
        font-weight: 700;
    }

    .ma-btn-green-fill {
        background-color: #00a67d;
        color: #fff;
        border: none;
        font-weight: 700;
    }

    .ma-btn-sky-fill {
        background-color: #007ae0;
        color: #fff;
        border: none;
        font-weight: 700;
    }

    .ma-btn-dark-fill {
        background-color: #fff;
        border: 1px solid #053c34;
        color: #053c34;
        font-weight: 700;
    }
}

/* ------------------ FOOTER FIX ------------------ */
footer {
    background-color: #212529 !important;
    color: #fff !important;
    position: relative;
    z-index: 10;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

/* FORCE ALL CHECKMARKS TO BE GREEN - NUCLEAR OPTION */
#allFeaturesAccordion .accordion-body table tbody tr td {
    color: #333 !important; /* Default text color */
}

#allFeaturesAccordion .accordion-body table tbody tr td.text-success {
    color: #25D366 !important; /* Green checkmarks */
}

#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(2),
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(3),
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(4),
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(5) {
    color: #333 !important; /* Reset all column colors to default */
}

#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(2).text-success,
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(3).text-success,
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(4).text-success,
#allFeaturesAccordion .accordion-body table tbody tr td:nth-child(5).text-success {
    color: #25D366 !important; /* Green for checkmarks only */
}