/*
 * WebGuruMasters pricingplan_2
 * Scoped styles only: no global reset, so the template does not disturb WHMCS.
 * Brand palette is centralized here for easy tuning.
 */
.wgm-pricing {
    --wgm-ink: #172033;
    --wgm-muted: #687386;
    --wgm-blue: #3f51b5;
    --wgm-blue-dark: #2f409d;
    --wgm-green: #8bb63f;
    --wgm-bg: #f5f7fa;
    --wgm-card: #ffffff;
    --wgm-border: #e4e8ef;
    --wgm-soft-blue: #eef1ff;
    --wgm-shadow: 0 14px 34px rgba(23, 32, 51, 0.10);
    color: var(--wgm-ink);
}

.wgm-pricing .wgm-pricing-header {
    margin-bottom: 30px;
}

.wgm-pricing .wgm-pricing-header h1 {
    color: var(--wgm-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wgm-pricing .wgm-pricing-header p {
    color: var(--wgm-muted);
    font-size: 17px;
    line-height: 1.65;
    max-width: 820px;
}

.wgm-pricing .slider-content-outerbox {
    width: 100%;
    position: relative;
}

.wgm-pricing .pricing_plan_outerbox {
    padding: 8px 0 56px;
}

.wgm-pricing .slider-cnt-box {
    padding: 0 15px;
    transition: margin-right .35s ease;
}

.wgm-pricing .custom-sidebar {
    width: 0;
    overflow: hidden;
    padding: 0 0 0 15px;
    position: absolute;
    z-index: 5;
    height: 100%;
    top: 0;
    right: 15px;
    transition: width .35s ease;
}

.wgm-pricing .openbtn {
    float: right;
    height: 36px;
    width: 36px;
    margin: 0 0 18px 10px;
    position: relative;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--wgm-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(23, 32, 51, .08);
}

.wgm-pricing .openbtn:focus {
    outline: 2px solid rgba(63, 81, 181, .28);
    outline-offset: 2px;
}

.wgm-pricing .openbtn span,
.wgm-pricing .openbtn:before,
.wgm-pricing .openbtn:after {
    position: absolute;
    left: 8px;
    width: 18px;
    height: 2px;
    background: var(--wgm-blue);
    content: '';
    transition: transform .25s ease, opacity .2s ease;
}

.wgm-pricing .openbtn span { top: 16px; }
.wgm-pricing .openbtn:before { top: 10px; }
.wgm-pricing .openbtn:after { top: 22px; }
.wgm-pricing .openbtn.active span { opacity: 0; }
.wgm-pricing .openbtn.active:before { transform: translateY(6px) rotate(45deg); }
.wgm-pricing .openbtn.active:after { transform: translateY(-6px) rotate(-45deg); }

.wgm-pricing .pricing_plan_outer {
    width: 100%;
    clear: both;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.wgm-pricing .plan_box {
    min-width: 0;
}

.wgm-pricing .plan_box_cnt {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 34px 30px 30px;
    border: 1px solid var(--wgm-border);
    border-radius: 16px;
    background: var(--wgm-card);
    box-shadow: 0 8px 24px rgba(23, 32, 51, .07);
    text-align: left;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.wgm-pricing .plan_box_cnt:hover {
    transform: translateY(-4px);
    border-color: rgba(63, 81, 181, .25);
    box-shadow: var(--wgm-shadow);
}

.wgm-pricing .plan_box.is-featured .plan_box_cnt {
    border: 2px solid var(--wgm-blue);
    box-shadow: 0 16px 40px rgba(63, 81, 181, .15);
}

.wgm-pricing .wgm-featured-badge {
    position: absolute;
    top: 0;
    right: 24px;
    padding: 7px 12px 8px;
    border-radius: 0 0 9px 9px;
    background: var(--wgm-green);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wgm-pricing .wgm-plan-top {
    min-height: 216px;
}

.wgm-pricing .plan_heading {
    margin: 0 0 12px;
    padding: 0;
    color: var(--wgm-ink);
    font-size: 25px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wgm-pricing .plan_box.is-featured .plan_heading {
    color: var(--wgm-blue);
}

.wgm-pricing .wgm-plan-tagline {
    min-height: 44px;
    margin: 0 0 15px;
    color: var(--wgm-muted);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.wgm-pricing .wgm-plan-tagline:empty {
    min-height: 0;
    margin-bottom: 10px;
}

/* Price is intentionally above the detailed description so it stays above the fold. */
.wgm-pricing .wgm-price-block {
    margin: 0 0 12px;
    padding: 0;
}

.wgm-pricing .plan_pricing {
    margin: 0;
    color: var(--wgm-blue);
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.wgm-pricing .dollar_price {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.wgm-pricing .plan_month_txt {
    display: block;
    margin-top: 6px;
    color: var(--wgm-muted);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: capitalize;
}

.wgm-pricing .wgm-setup-fee {
    margin-top: 8px;
    color: var(--wgm-muted);
    font-size: 12px;
    line-height: 1.35;
}

.wgm-pricing .wgm-plan-body {
    flex: 1 1 auto;
}

.wgm-pricing .wgm-plan-description {
    color: #465166;
    font-size: 14.5px;
    line-height: 1.68;
}

.wgm-pricing .wgm-plan-description strong {
    color: var(--wgm-ink);
    font-weight: 700;
}

.wgm-pricing .wgm-plan-description em {
    color: var(--wgm-muted);
}

.wgm-pricing .wgm-plan-description br {
    display: initial;
}

.wgm-pricing .wgm-feature-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.wgm-pricing .wgm-feature-list li {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f4;
    color: #465166;
    font-size: 14px;
    line-height: 1.45;
}

.wgm-pricing .wgm-feature-list li:last-child {
    border-bottom: 0;
}

.wgm-pricing .wgm-feature-list i {
    margin-top: 3px;
    color: var(--wgm-green);
    font-size: 12px;
}

.wgm-pricing .wgm-feature-list strong {
    color: var(--wgm-ink);
    font-weight: 700;
    text-align: right;
}

.wgm-pricing .wgm-plan-footer {
    margin-top: 14px !important;
}

/* Primary CTA is forced directly below price/monthly, above the divider. */
.wgm-pricing .wgm-plan-cta-top {
    position: static !important;
    order: initial !important;
    flex: 0 0 auto !important;
    width: 100%;
    margin: 14px 0 0 !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid var(--wgm-border);
}

.wgm-pricing .wgm-plan-cta-top .plan_btn {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wgm-pricing .wgm-plan-body {
    order: initial !important;
    padding-top: 22px;
}

.wgm-pricing .plan_btn a {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px !important;
    border: 2px solid var(--wgm-blue) !important;
    border-radius: 8px !important;
    background: var(--wgm-blue) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .02em !important;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.wgm-pricing .plan_btn a:hover,
.wgm-pricing .plan_btn a:focus {
    background: var(--wgm-blue-dark) !important;
    border-color: var(--wgm-blue-dark) !important;
    transform: translateY(-1px);
}

.wgm-pricing .plan_box.is-featured .plan_btn a {
    background: var(--wgm-green) !important;
    border-color: var(--wgm-green) !important;
}

.wgm-pricing .plan_box.is-featured .plan_btn a:hover,
.wgm-pricing .plan_box.is-featured .plan_btn a:focus {
    background: #769f36 !important;
    border-color: #769f36 !important;
}

.wgm-pricing .wgm-out-of-stock {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8e7e7;
    color: #8a3030;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .wgm-pricing .pricing_plan_outer {
        gap: 18px;
    }

    .wgm-pricing .plan_box_cnt {
        padding: 30px 22px 25px;
    }

    .wgm-pricing .plan_heading {
        font-size: 22px;
    }

    .wgm-pricing .plan_pricing {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .wgm-pricing .pricing_plan_outer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .wgm-pricing .slider-cnt-box {
        padding: 0;
    }

    .wgm-pricing .pricing_plan_outer {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wgm-pricing .plan_box_cnt {
        padding: 28px 24px 24px;
    }

    .wgm-pricing .wgm-plan-top {
        min-height: 0;
    }

    .wgm-pricing .wgm-plan-tagline {
        min-height: 0;
    }

    .wgm-pricing .plan_pricing {
        font-size: 38px;
    }
}

@media (max-width: 420px) {
    .wgm-pricing .plan_box_cnt {
        padding: 26px 20px 22px;
        border-radius: 13px;
    }

    .wgm-pricing .plan_heading {
        font-size: 21px;
    }

    .wgm-pricing .plan_pricing {
        font-size: 34px;
    }
}

/* ---------------------------------------------------------
   Scan-friendly product-description blocks entered in WHMCS
   --------------------------------------------------------- */
.wgm-pricing .wgm-plan-description .wgm-card-features {
    margin: 0;
    padding: 0;
}

.wgm-pricing .wgm-plan-description .wgm-card-feature {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid #edf0f4;
    color: #465166;
    font-size: 14px;
    line-height: 1.4;
}

.wgm-pricing .wgm-plan-description .wgm-card-feature::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 14px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--wgm-green);
    border-bottom: 2px solid var(--wgm-green);
    transform: rotate(-45deg);
}

.wgm-pricing .wgm-plan-description .wgm-card-feature strong {
    color: var(--wgm-ink);
    font-weight: 700;
}

.wgm-pricing .wgm-plan-description .wgm-included {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(63, 81, 181, .18);
    border-radius: 9px;
    background: var(--wgm-soft-blue);
    color: var(--wgm-blue-dark);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.wgm-pricing .wgm-plan-description .wgm-included span {
    display: block;
    margin-bottom: 2px;
    color: var(--wgm-muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wgm-pricing .wgm-plan-description .wgm-scope-note {
    margin: 12px 0 0;
    color: var(--wgm-muted);
    font-size: 12px;
    line-height: 1.45;
}

.wgm-pricing .wgm-plan-description .wgm-scope-note strong {
    color: var(--wgm-muted);
    font-weight: 700;
}

/* v2: normalize WHMCS-inserted line breaks around structured description blocks. */
.wgm-pricing .wgm-plan-description > br {
    display: none !important;
}

.wgm-pricing .wgm-plan-description .wgm-card-features {
    display: grid;
    gap: 0;
    margin: 0 0 14px !important;
}

.wgm-pricing .wgm-plan-description .wgm-card-feature {
    padding-top: 12px;
    padding-bottom: 12px;
}

.wgm-pricing .wgm-plan-description .wgm-included {
    margin-top: 14px !important;
}

.wgm-pricing .wgm-plan-description .wgm-scope-note {
    margin-top: 14px !important;
}

/* v3: keep the scope note aligned the same distance from the bottom of every card. */
.wgm-pricing .wgm-plan-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.wgm-pricing .wgm-plan-description {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.wgm-pricing .wgm-plan-description .wgm-scope-note {
    margin-top: auto !important;
    padding-top: 24px;
    padding-bottom: 0;
}
