/* WILTECH WCFM Membership Designer 1.3.9
 * Professional presentation layer for WCFM's native membership markup.
 * Membership data, descriptions, pricing and subscription logic remain native WCFM.
 */

/* WCFM outputs each plan as a separate .wcfm_membership_box_wrraper.
 * Use the native structure rather than inventing a second membership grid. */
#wcfm-main-contentainer .wcfm_membership_wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 26px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

#wcfm-main-contentainer .wcfm_membership_box_wrraper {
    width: auto !important;
    float: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    vertical-align: top !important;
}

#wcfm-main-contentainer .wcfm_membership_box_wrraper:after {
    content: "" !important;
    display: block !important;
    clear: both !important;
}

#wcfm-main-contentainer .wcfm_membership_box {
    position: relative !important;
    width: 100% !important;
    min-height: 520px !important;
    margin: 0 !important;
    padding: 0 0 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 1px solid #e7e9ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .08) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

#wcfm-main-contentainer .wcfm_membership_box:hover {
    transform: translateY(-6px) !important;
    border-color: var(--wt-primary, #ff9900) !important;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .14) !important;
}

/* Native WCFM header becomes a clean WILTECH plan header. */
#wcfm-main-contentainer .wcfm_membership_box_head {
    position: relative !important;
    min-height: 118px !important;
    padding: 25px 20px 20px !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #111827 0%, #273247 100%) !important;
    border: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    color: #fff !important;
}

#wcfm-main-contentainer .wcfm_membership_box_head h2,
#wcfm-main-contentainer .wcfm_membership_box_head h3,
#wcfm-main-contentainer .wcfm_membership_box_head .wcfm_membership_title,
#wcfm-main-contentainer .wcfm_membership_box_head .wcfm_membership_name {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    text-align: center !important;
}

#wcfm-main-contentainer .wcfm_membership_box_head .wcfm_membership_price {
    margin: 0 !important;
    color: var(--wt-primary, #ff9900) !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    text-align: center !important;
}

#wcfm-main-contentainer .wcfm_membership_box_head .wcfm_membership_price .amount {
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

/* Popular/featured plan gets a premium treatment without changing WCFM's data. */
#wcfm-main-contentainer .wcfm_featured_membership_box_wrraper .wcfm_membership_box {
    border: 2px solid var(--wt-primary, #ff9900) !important;
    box-shadow: 0 18px 44px rgba(255, 153, 0, .20) !important;
}

#wcfm-main-contentainer .wcfm_featured_membership_box_wrraper .wcfm_membership_box:before {
    content: "MOST POPULAR" !important;
    position: absolute !important;
    z-index: 3 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 7px 10px !important;
    background: var(--wt-primary, #ff9900) !important;
    color: #111 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .8px !important;
    text-align: center !important;
}

#wcfm-main-contentainer .wcfm_featured_membership_box_wrraper .wcfm_membership_box_head {
    padding-top: 45px !important;
}

/* Native WCFM content remains untouched; only spacing and typography are improved. */
#wcfm-main-contentainer .wcfm_membership_box_body,
#wcfm-main-contentainer .wcfm_membership_box_content,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_element_wrap {
    flex: 1 1 auto !important;
}

#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_description,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_desc,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_description p,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_desc p {
    padding: 24px 22px 8px !important;
    margin: 0 !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    text-align: center !important;
    -webkit-font-smoothing: antialiased !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
}

#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_element {
    margin: 0 22px !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

#wcfm-main-contentainer .wcfm_membership_box ul {
    margin: 12px 22px 18px !important;
    padding-left: 18px !important;
}

#wcfm-main-contentainer .wcfm_membership_box li {
    margin: 7px 0 !important;
}

/* The payment-mode labels are removed by frontend.js; this class prevents layout gaps. */
#wcfm-main-contentainer .wiltech-membership-payment-copy-hidden {
    display: none !important;
}

/* Native WCFM subscription controls remain functional. */
#wcfm-main-contentainer .wcfm_membership_box .wcfm_subscribe_button,
#wcfm-main-contentainer .wcfm_membership_box .wcfmvm_subscribe,
#wcfm-main-contentainer .wcfm_membership_box a.wcfm_submit_button,
#wcfm-main-contentainer .wcfm_membership_box input[type="submit"],
#wcfm-main-contentainer .wcfm_membership_box button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(100% - 44px) !important;
    min-height: 48px !important;
    margin: auto 22px 0 !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--wt-primary, #ff9900) !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .35px !important;
    box-shadow: 0 7px 18px rgba(255, 153, 0, .20) !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}

#wcfm-main-contentainer .wcfm_membership_box .wcfm_subscribe_button:hover,
#wcfm-main-contentainer .wcfm_membership_box .wcfmvm_subscribe:hover,
#wcfm-main-contentainer .wcfm_membership_box a.wcfm_submit_button:hover,
#wcfm-main-contentainer .wcfm_membership_box input[type="submit"]:hover,
#wcfm-main-contentainer .wcfm_membership_box button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 11px 24px rgba(255, 153, 0, .28) !important;
    filter: brightness(.98) !important;
}

/* Keep WCFM content readable if it contains tables/images. */
#wcfm-main-contentainer .wcfm_membership_box img { max-width: 100%; height: auto; }
#wcfm-main-contentainer .wcfm_membership_box table { width: 100%; }

/* Desktop: five plans on one row. */
/* Desktop/tablet landscape: keep all five plans in one horizontal row. */
@media (min-width: 769px) {
    #wcfm-main-contentainer .wcfm_membership_wrapper {
        grid-template-columns: repeat(5, minmax(190px, 1fr)) !important;
        grid-template-rows: 1fr !important;
        grid-auto-flow: column !important;
        gap: 24px !important;
        align-items: stretch !important;
        overflow-x: auto !important;
        padding: 0 4px 10px !important;
    }

    #wcfm-main-contentainer .wcfm_membership_box_wrraper {
        min-width: 190px !important;
        width: auto !important;
        float: none !important;
    }
}

/* WILTECH 1.3.9 — plan cards: vertical content inside each horizontal column. */
#wcfm-main-contentainer .wcfm_membership_box {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

#wcfm-main-contentainer .wcfm_membership_box_head {
    flex: 0 0 auto !important;
}

#wcfm-main-contentainer .wcfm_membership_box_body,
#wcfm-main-contentainer .wcfm_membership_box_content,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_element_wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_description,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_desc {
    display: block !important;
    width: auto !important;
    box-sizing: border-box !important;
}

#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_element {
    display: block !important;
    width: auto !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_element > *,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_element span,
#wcfm-main-contentainer .wcfm_membership_box .wcfm_membership_element label {
    display: block !important;
    width: auto !important;
}

#wcfm-main-contentainer .wcfm_membership_box ul,
#wcfm-main-contentainer .wcfm_membership_box ol {
    display: block !important;
    width: auto !important;
    box-sizing: border-box !important;
}

#wcfm-main-contentainer .wcfm_membership_box .wcfm_subscribe_button,
#wcfm-main-contentainer .wcfm_membership_box .wcfmvm_subscribe,
#wcfm-main-contentainer .wcfm_membership_box a.wcfm_submit_button,
#wcfm-main-contentainer .wcfm_membership_box input[type="submit"],
#wcfm-main-contentainer .wcfm_membership_box button[type="submit"] {
    margin-top: auto !important;
}

/* Mobile. */
@media (max-width: 640px) {
    #wcfm-main-contentainer .wcfm_membership_wrapper {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 !important;
    }
    #wcfm-main-contentainer .wcfm_membership_box_wrraper {
        width: auto !important;
        float: none !important;
        padding: 0 !important;
    }
    #wcfm-main-contentainer .wcfm_membership_box {
        min-height: 0 !important;
    }
}


/* WILTECH vendor dashboard — professional English subscription overview. */
.wiltech-wcfm-dashboard-membership {
    --wt-primary: #ff9900;
    --wt-ink: #111827;
    --wt-muted: #667085;
    --wt-border: #e8ebf0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 18px 34px;
    box-sizing: border-box;
}
.wiltech-wcfm-dashboard-membership .wiltech-dashboard-title {
    margin: 0 0 24px;
    padding: 26px 28px;
    border: 1px solid var(--wt-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fffaf2 100%);
    box-shadow: 0 12px 32px rgba(17,24,39,.07);
}
.wiltech-wcfm-dashboard-membership .wiltech-dashboard-title > span {
    display: block;
    margin-bottom: 7px;
    color: var(--wt-primary);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.wiltech-wcfm-dashboard-membership .wiltech-dashboard-title h2 {
    margin: 0;
    color: var(--wt-ink);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}
.wiltech-wcfm-dashboard-membership .wiltech-dashboard-title p {
    margin: 8px 0 0;
    color: var(--wt-muted);
    font-size: 14px;
    line-height: 1.6;
}
.wiltech-subscription-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin: 0;
}
.wiltech-subscription-card {
    min-width: 0;
    min-height: 205px;
    padding: 25px;
    box-sizing: border-box;
    border: 1px solid var(--wt-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17,24,39,.07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wiltech-subscription-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,153,0,.55);
    box-shadow: 0 16px 34px rgba(17,24,39,.11);
}
.wiltech-card-label {
    display: block;
    margin-bottom: 12px;
    color: #7a8494;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1px;
}
.wiltech-subscription-plan h3 {
    margin: 0 0 8px;
    color: var(--wt-ink);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
}
.wiltech-subscription-price {
    color: var(--wt-primary);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
}
.wiltech-subscription-plan p {
    margin: 15px 0 0;
    color: var(--wt-muted);
    font-size: 13px;
    line-height: 1.65;
}
.wiltech-subscription-usage strong,
.wiltech-subscription-expiry strong {
    display: block;
    color: var(--wt-ink);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}
.wiltech-subscription-usage p,
.wiltech-subscription-expiry p {
    margin: 12px 0 0;
    color: var(--wt-muted);
    font-size: 13px;
    line-height: 1.5;
}
.wiltech-subscription-progress {
    height: 8px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef1f5;
}
.wiltech-subscription-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff9900, #ffb83d);
}
.wiltech-subscription-expiry .wiltech-expired {
    color: #b42318;
    font-weight: 700;
}
.wiltech-subscription-upgrade {
    margin-top: 20px;
    text-align: right;
}
.wiltech-subscription-upgrade .wiltech-upgrade-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--wt-primary);
    color: #111 !important;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .2px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(255,153,0,.22);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.wiltech-subscription-upgrade .wiltech-upgrade-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255,153,0,.30);
    filter: brightness(.98);
}
.wiltech-dashboard-empty {
    padding: 22px 24px;
    border: 1px solid #f0d6aa;
    border-radius: 14px;
    background: #fffaf2;
    color: #694b1f;
    font-size: 14px;
}
@media (max-width: 900px) {
    .wiltech-subscription-grid { grid-template-columns: 1fr 1fr; }
    .wiltech-subscription-plan { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .wiltech-wcfm-dashboard-membership { padding: 4px 10px 25px; }
    .wiltech-wcfm-dashboard-membership .wiltech-dashboard-title { padding: 22px 20px; }
    .wiltech-wcfm-dashboard-membership .wiltech-dashboard-title h2 { font-size: 25px; }
    .wiltech-subscription-grid { grid-template-columns: 1fr; }
    .wiltech-subscription-plan { grid-column: auto; }
    .wiltech-subscription-card { min-height: 0; padding: 21px; }
    .wiltech-subscription-upgrade { text-align: stretch; }
    .wiltech-subscription-upgrade .wiltech-upgrade-large { width: 100%; box-sizing: border-box; }
}

/* WILTECH 1.3.9 — standalone Global Comparison shortcode. */
.wiltech-membership-comparison {
    --wt-primary: #ff9900;
    --wt-ink: #111827;
    --wt-muted: #667085;
    --wt-border: #e6e8ed;
    max-width: 1480px;
    margin: 42px auto 20px;
    padding: 0 18px;
    box-sizing: border-box;
}
.wiltech-comparison-heading {
    margin: 0 0 18px;
    text-align: center;
}
.wiltech-comparison-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--wt-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.wiltech-comparison-heading h2 {
    margin: 0;
    color: var(--wt-ink);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 850;
}
.wiltech-comparison-heading p {
    margin: 8px auto 0;
    max-width: 700px;
    color: var(--wt-muted);
    font-size: 14px;
    line-height: 1.6;
}
.wiltech-comparison-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--wt-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17,24,39,.08);
    -webkit-overflow-scrolling: touch;
}
.wiltech-comparison-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.wiltech-comparison-table th,
.wiltech-comparison-table td {
    padding: 15px 14px;
    border-right: 1px solid var(--wt-border);
    border-bottom: 1px solid var(--wt-border);
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    vertical-align: middle;
}
.wiltech-comparison-table th:first-child,
.wiltech-comparison-table td:first-child {
    width: 210px;
    text-align: left;
}
.wiltech-comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}
.wiltech-comparison-table thead th:first-child {
    border-radius: 15px 0 0 0;
}
.wiltech-comparison-table thead th:last-child {
    border-radius: 0 15px 0 0;
    border-right: 0;
}
.wiltech-comparison-table tbody th {
    background: #f8f9fb;
    color: #111827;
    font-weight: 800;
}
.wiltech-comparison-table tbody td:last-child,
.wiltech-comparison-table tbody th:last-child {
    border-right: 0;
}
.wiltech-comparison-table tbody tr:last-child th,
.wiltech-comparison-table tbody tr:last-child td {
    border-bottom: 0;
}
.wiltech-comparison-table tbody tr:hover th,
.wiltech-comparison-table tbody tr:hover td {
    background: #fffaf2;
}
.wiltech-comparison-table .wiltech-comparison-plan-professional {
    background: #fff8e8;
}
.wiltech-comparison-table thead .wiltech-comparison-plan-professional {
    background: linear-gradient(135deg, #ff9900, #ffb83d);
    color: #111;
}
.wiltech-comparison-popular {
    display: block;
    margin: 6px auto 0;
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: .5px;
}
.wiltech-comparison-check {
    display: inline-block;
    margin-right: 4px;
    color: var(--wt-primary);
    font-weight: 900;
}
@media (max-width: 640px) {
    .wiltech-membership-comparison { margin-top: 30px; padding: 0 10px; }
    .wiltech-comparison-heading h2 { font-size: 25px; }
}

/* WILTECH 1.3.9 — FINAL NATIVE WCFM MEMBERSHIP LAYOUT FIX.
 * The native WCFM [wcfm_vendor_membership] shortcode can render outside
 * #wcfm-main-contentainer. Keep the five plans horizontal wherever WCFM
 * outputs its native membership wrapper, while keeping each card vertical.
 */
.wcfm_membership_wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(220px, 1fr)) !important;
    grid-template-rows: 1fr !important;
    grid-auto-flow: column !important;
    gap: 24px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 4px 12px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.wcfm_membership_wrapper > .wcfm_membership_box_wrraper {
    display: block !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.wcfm_membership_wrapper .wcfm_membership_box {
    width: 100% !important;
    height: 100% !important;
    min-height: 520px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.wcfm_membership_wrapper .wcfm_membership_box_head {
    flex: 0 0 auto !important;
}

.wcfm_membership_wrapper .wcfm_membership_box_body,
.wcfm_membership_wrapper .wcfm_membership_box_content,
.wcfm_membership_wrapper .wcfm_membership_box .wcfm_membership_element_wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
}

.wcfm_membership_wrapper .wcfm_membership_box .wcfm_membership_description,
.wcfm_membership_wrapper .wcfm_membership_box .wcfm_membership_desc {
    display: block !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.wcfm_membership_wrapper .wcfm_membership_box .wcfm_membership_element {
    display: block !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.wcfm_membership_wrapper .wcfm_membership_box .wcfm_subscribe_button,
.wcfm_membership_wrapper .wcfm_membership_box .wcfmvm_subscribe,
.wcfm_membership_wrapper .wcfm_membership_box a.wcfm_submit_button,
.wcfm_membership_wrapper .wcfm_membership_box input[type="submit"],
.wcfm_membership_wrapper .wcfm_membership_box button[type="submit"] {
    margin-top: auto !important;
}

/* Keep all five cards in one horizontal row at every viewport size.
 * On narrow screens the row becomes horizontally scrollable instead of
 * wrapping into multiple rows, preserving the requested five-column layout.
 */
@media (max-width: 1199px) {
    .wcfm_membership_wrapper {
        grid-template-columns: repeat(5, minmax(220px, 220px)) !important;
        grid-template-rows: 1fr !important;
        grid-auto-flow: column !important;
        gap: 20px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (max-width: 640px) {
    .wcfm_membership_wrapper {
        grid-template-columns: repeat(5, minmax(240px, 240px)) !important;
        grid-template-rows: 1fr !important;
        grid-auto-flow: column !important;
        gap: 16px !important;
        padding: 0 0 12px !important;
        overflow-x: auto !important;
    }

    .wcfm_membership_wrapper > .wcfm_membership_box_wrraper {
        min-width: 240px !important;
    }
}


/* WILTECH 1.4.1 — authoritative five-column membership layout.
 * Applies both to the native WCFM wrapper and to the fallback visual wrapper
 * created by frontend.js when WCFM omits its wrapper class.
 */
.wiltech-wcfm-membership-plans-grid,
.wcfm_membership_wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 4px 16px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    overflow: visible !important;
}
.wiltech-wcfm-membership-plans-grid > .wcfm_membership_box_wrraper,
.wcfm_membership_wrapper > .wcfm_membership_box_wrraper {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box,
.wcfm_membership_wrapper .wcfm_membership_box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 520px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box_head,
.wcfm_membership_wrapper .wcfm_membership_box_head { flex: 0 0 auto !important; }
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box_body,
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box_content,
.wiltech-wcfm-membership-plans-grid .wcfm_membership_element_wrap,
.wcfm_membership_wrapper .wcfm_membership_box_body,
.wcfm_membership_wrapper .wcfm_membership_box_content,
.wcfm_membership_wrapper .wcfm_membership_element_wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
}
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box .wcfm_subscribe_button,
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box .wcfmvm_subscribe,
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box a.wcfm_submit_button,
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box input[type="submit"],
.wiltech-wcfm-membership-plans-grid .wcfm_membership_box button[type="submit"],
.wcfm_membership_wrapper .wcfm_membership_box .wcfm_subscribe_button,
.wcfm_membership_wrapper .wcfm_membership_box .wcfmvm_subscribe,
.wcfm_membership_wrapper .wcfm_membership_box a.wcfm_submit_button,
.wcfm_membership_wrapper .wcfm_membership_box input[type="submit"],
.wcfm_membership_wrapper .wcfm_membership_box button[type="submit"] { margin-top: auto !important; }

@media (max-width: 1100px) {
    .wiltech-wcfm-membership-plans-grid,
    .wcfm_membership_wrapper {
        grid-template-columns: repeat(5, minmax(200px, 1fr)) !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding-bottom: 16px !important;
    }
}
@media (max-width: 640px) {
    .wiltech-wcfm-membership-plans-grid,
    .wcfm_membership_wrapper {
        grid-template-columns: repeat(5, 240px) !important;
        grid-auto-flow: column !important;
        gap: 16px !important;
        overflow-x: auto !important;
    }
}


/* WILTECH 1.4.3 — Mobile membership plans are vertical, one card per row. */
.wiltech-mobile-membership-scroll-message {
    display: none !important;
}

@media (max-width: 640px) {
    .wiltech-mobile-membership-scroll-message {
        display: block !important;
        width: 100% !important;
        margin: 0 0 16px !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(255,153,0,.28) !important;
        border-radius: 10px !important;
        background: #FFF7E8 !important;
        color: #111111 !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    .wiltech-wcfm-membership-plans-grid,
    .wcfm_membership_wrapper {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        grid-auto-rows: auto !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding: 0 0 16px !important;
    }

    .wiltech-wcfm-membership-plans-grid > .wcfm_membership_box_wrraper,
    .wcfm_membership_wrapper > .wcfm_membership_box_wrraper {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box,
    .wcfm_membership_wrapper .wcfm_membership_box {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
    }
}

/* WILTECH 1.4.3 — FINAL MOBILE FIX
 * Mobile: one plan per row, full available width, no horizontal overflow.
 * Desktop/tablet rules above remain unchanged.
 */
@media (max-width: 640px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .wiltech-wcfm-membership-plans-grid,
    .wcfm_membership_wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        grid-auto-rows: auto !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 18px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .wiltech-wcfm-membership-plans-grid > .wcfm_membership_box_wrraper,
    .wcfm_membership_wrapper > .wcfm_membership_box_wrraper,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box_wrraper,
    .wcfm_membership_wrapper .wcfm_membership_box_wrraper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box,
    .wcfm_membership_wrapper .wcfm_membership_box {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding-bottom: 20px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box_head,
    .wcfm_membership_wrapper .wcfm_membership_box_head {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box_body,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box_content,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_element_wrap,
    .wcfm_membership_wrapper .wcfm_membership_box_body,
    .wcfm_membership_wrapper .wcfm_membership_box_content,
    .wcfm_membership_wrapper .wcfm_membership_element_wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box .wcfm_membership_description,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box .wcfm_membership_desc,
    .wcfm_membership_wrapper .wcfm_membership_box .wcfm_membership_description,
    .wcfm_membership_wrapper .wcfm_membership_box .wcfm_membership_desc {
        width: auto !important;
        max-width: 100% !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }

    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box ul,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box ol,
    .wcfm_membership_wrapper .wcfm_membership_box ul,
    .wcfm_membership_wrapper .wcfm_membership_box ol {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }

    .wiltech-wcfm-membership-plans-grid .wiltech-membership-action,
    .wcfm_membership_wrapper .wiltech-membership-action {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: auto !important;
        padding: 16px 16px 0 !important;
        box-sizing: border-box !important;
    }

    .wiltech-wcfm-membership-plans-grid .wiltech-membership-action a,
    .wiltech-wcfm-membership-plans-grid .wiltech-membership-action button,
    .wiltech-wcfm-membership-plans-grid .wiltech-membership-action input[type="submit"],
    .wcfm_membership_wrapper .wiltech-membership-action a,
    .wcfm_membership_wrapper .wiltech-membership-action button,
    .wcfm_membership_wrapper .wiltech-membership-action input[type="submit"],
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box .wcfm_subscribe_button,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box .wcfmvm_subscribe,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box a.wcfm_submit_button,
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box input[type="submit"],
    .wiltech-wcfm-membership-plans-grid .wcfm_membership_box button[type="submit"],
    .wcfm_membership_wrapper .wcfm_membership_box .wcfm_subscribe_button,
    .wcfm_membership_wrapper .wcfm_membership_box .wcfmvm_subscribe,
    .wcfm_membership_wrapper .wcfm_membership_box a.wcfm_submit_button,
    .wcfm_membership_wrapper .wcfm_membership_box input[type="submit"],
    .wcfm_membership_wrapper .wcfm_membership_box button[type="submit"] {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}
