/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.woocommerce-MyAccount-pricing-plan h5 {
    margin: 0;
}
/* Pricing cards
 *
 * Light SaaS card, matching the account dashboard. The columns are stretched
 * into a flex chain so every card in a row is the same height and the Add to
 * Cart buttons line up, no matter how many benefits a plan lists.
 */
/* Equal heights.
 *
 * Forced, because the theme's own grid rules were resetting the alignment
 * and leaving every card sized to its own content. Each link in the chain
 * has to hold for the cards to match: row stretches the column, the column
 * stretches the card, the card stretches its inner sections.
 */
.mtsub_subscriptions.row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}
.meeeksaas-pricing-plan {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    margin-bottom: 26px;
}
.meeeksaas-pricing-plan .mtsub-product {
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100%;
}

/* Admin only. Lifted out of the flow into the card's top corner so it takes
 * no vertical space - in flow it was pushing each card down by a different
 * amount and staggering the row.
 *
 * It carries no `button`/`btn`/`text-center` classes any more, because those
 * were what the theme was styling into a large bordered block. Every
 * property a theme sets on an anchor is pinned here instead.
 */
.mtsub-admin-edit {
    position: absolute;
    top: 12px;
    right: 25px;
    z-index: 4;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.mtsub-admin-edit .mtsub-admin-edit-link {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 26px !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e8eaee !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    color: #a2a9b6 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    opacity: 0.75;
    transition: opacity 150ms ease, color 150ms ease, border-color 150ms ease;
}
.meeeksaas-pricing-plan:hover .mtsub-admin-edit-link {
    opacity: 1;
}
.mtsub-admin-edit .mtsub-admin-edit-link:hover {
    border-color: #d5d9e2 !important;
    color: #4b5563 !important;
}
.mtsub-admin-edit .mtsub-admin-edit-link i {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: inherit !important;
}
.mtsub-product-wrapper {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100%;
    padding: 34px 28px 30px;
    border: 1px solid #e8eaee;
    border-radius: 18px;
    background: #ffffff;
    background-color: #ffffff;
    /* Two layers: a tight contact shadow plus a wide soft one. A single
     * blurred shadow is what makes a card look flat and cheap. */
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 28px -12px rgba(16, 24, 40, 0.14);
    transition: box-shadow 220ms ease, border-color 220ms ease;
}
.mtsub-product-wrapper:hover {
    border-color: #d5d9e2;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 26px 50px -18px rgba(16, 24, 40, 0.24);
}

/* Featured plan - the focal point of the table. */
.meeeksaas-pricing-plan.is-featured {
    z-index: 2;
}
.mtsub-product-wrapper.mtsub-featured {
    padding-top: 40px;
    border-color: #6366f1;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 28px 56px -20px rgba(99, 102, 241, 0.55);
}
/* A hairline of accent along the top edge. */
.mtsub-product-wrapper.mtsub-featured::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
}
.mtsub-product-wrapper.mtsub-featured:hover {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 36px 70px -22px rgba(99, 102, 241, 0.6);
}
.mtsub-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

/* The featured card is emphasised with its border, glow, badge and filled
 * button - not with a transform. Scaling it pushed the card outside its
 * column box, which collided with the admin Edit Package button above it and
 * softened the text.
 */
.mtsub-title-metas {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    text-align: center;
}
.meeeksaas-custom-pricing-page-panel {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* Plan name + price, separated from the feature list by a rule that fades
 * out at both ends rather than hitting the card edges. */
.mtsub-plan-head {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 24px;
}
.mtsub-plan-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e3e6ec 18%, #e3e6ec 82%, transparent);
}
h3.mtsub-archive-product-title {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #8b93a3;
    padding: 0;
    margin: 0 0 16px;
}
.mtsub-featured h3.mtsub-archive-product-title {
    color: #4f46e5;
}
h3.mtsub-archive-product-title a{
	color: inherit;
}
.mtsub-plan-price p {
    margin: 0;
    line-height: 1;
}
.mtsub-title-metas span.amount {
    display: inline-block;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #0f172a;
}
/* The currency sign riding at full size is the single biggest tell of an
 * unstyled price. Shrunk and raised to sit against the cap height. */
.mtsub-title-metas span.amount .woocommerce-Price-currencySymbol {
    display: inline-block;
    margin-right: 2px;
    font-size: 0.45em;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: top;
    position: relative;
    top: 0.42em;
}
.mtsub-title-metas del {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.mtsub-title-metas del span.amount {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #b6bcc7 !important;
    text-decoration: line-through;
}
.mtsub-title-metas ins {
    display: inline-block;
    text-decoration: none;
    vertical-align: middle;
}

.mtsub-product-wrapper .mtsub-infos {
    flex: 1 1 auto;
    margin-bottom: 26px;
    font-size: 15px;
}

/* Plan quotas - validity and page allowance. Presented as two tiles so the
 * headline numbers read at a glance instead of as more list items. */
.mtsub-quotas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}
.mtsub-product-wrapper .mtsub-infos .mtsub-quotas p {
    margin: 0;
    padding: 14px 12px;
    border: 1px solid #eceef2;
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
    font-weight: 400;
}
.mtsub-featured .mtsub-infos .mtsub-quotas p {
    border-color: #e0e2fb;
    background: #f7f7ff;
}
.mtsub-product-wrapper .mtsub-quotas span.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.mtsub-product-wrapper .mtsub-quotas span.active i {
    width: auto;
    margin: 0;
    color: #9ea5f0;
    font-size: 14px;
}
.mtsub-featured .mtsub-quotas span.active i {
    color: #6366f1;
}

/* Benefits. */
.mtsub-infos ul {
    padding: 0px;
    margin: 0;
    list-style: none;
    text-align: left;
}
.mtsub-infos ul li {
    display: block;
    padding: 0;
    margin: 0;
    border: 0 none;
}
.mtsub-infos ul li + li {
    margin-top: 11px;
}
.mtsub-product-wrapper .mtsub-infos ul span.active {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #434b5a;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}
/* A tinted disc behind the tick, rather than a bare glyph floating in space.
 * Nudged down so it aligns with the first line's cap height when a label
 * wraps onto two lines.
 */
.mtsub-check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: #e7f8f0;
    color: #0f9d6a;
    font-size: 8.5px;
}
.mtsub-featured .mtsub-check {
    background: #eceafe;
    color: #4f46e5;
}

/* Benefits the plan does not include. Muted rather than hidden, so the gap
 * between tiers is visible without shouting.
 */
.mtsub-check--off,
.mtsub-featured .mtsub-check--off {
    background: #f2f4f7;
    color: #b3bac7;
}
.mtsub-product-wrapper .mtsub-infos ul li.mtsub-feature-missing span.active {
    color: #a5acba;
    font-weight: 400;
}
/* Divider between the included and excluded groups. Matches only the first
 * excluded row, and disappears when a plan has one group or the other.
 */
.mtsub-infos ul li:not(.mtsub-feature-missing) + li.mtsub-feature-missing {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}
/* Scoped to the tick only. Left as `span.active i` this also matched the
 * tooltip icon that now lives inside the label, and zeroed its margin.
 */
.mtsub-product-wrapper .mtsub-infos ul .mtsub-check i {
    margin: 0;
    color: inherit;
}
/* The label owns the tooltip, so the icon trails the last word instead of
 * being pushed to the far edge when the text wraps.
 */
.mtsub-feature-label {
    flex: 1 1 auto;
    min-width: 0;
}

/* One button, one look - the old blue rule was being overridden by the
 * white one below it and never actually rendered.
 */
.mtsub-product-wrapper a.button,
.mtsub-title-metas a.button {
    display: block;
    position: relative;
    width: 100%;
    margin: 26px 0 0 !important;
    padding: 14px 18px;
    border: 1px solid #dfe3ea;
    border-radius: 11px;
    background: #ffffff;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
/* Pinned to the bottom so the buttons align across cards of any height.
 * `auto` replaces the 26px top margin above and collapses to 0 once a card
 * is full, so the breathing room comes from .mtsub-infos margin-bottom.
 */
.mtsub-title-metas a.button {
    margin-top: auto !important;
}
.mtsub-product-wrapper a.button:hover {
    border-color: #c7cbd4;
    background: #f7f8fa;
    background-color: #f7f8fa;
    color: #0f172a !important;
    transform: translateY(-1px);
}
/* The featured plan carries the only filled button, so the eye lands on it. */
.mtsub-product-wrapper.mtsub-featured a.button {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    background-color: #6366f1;
    box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.75);
    color: #ffffff;
}
.mtsub-product-wrapper.mtsub-featured a.button:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    background-color: #4f46e5;
    box-shadow: 0 14px 28px -8px rgba(79, 70, 229, 0.85);
    color: #ffffff !important;
}

/* After an AJAX add, WooCommerce flags the button with .added and inserts a
 * "View cart" link after it. Hide the original so the card only ever offers
 * one action instead of stacking two buttons.
 */
.mtsub-product-wrapper a.button.added,
.mtsub-title-metas a.button.added {
    display: none !important;
}
/* The View cart link is not a .button, so it needs the treatment applying
 * to it directly - including the auto top margin that pins it to the bottom
 * now that the button it replaced is gone.
 */
.mtsub-title-metas a.added_to_cart {
    display: block;
    position: relative;
    width: 100%;
    margin: 26px 0 0;
    margin-top: auto;
    padding: 14px 18px;
    border: 1px solid #dfe3ea;
    border-radius: 11px;
    background: #ffffff;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.mtsub-title-metas a.added_to_cart:hover {
    border-color: #c7cbd4;
    background: #f7f8fa;
    background-color: #f7f8fa;
    color: #0f172a;
    text-decoration: none;
    transform: translateY(-1px);
}
.mtsub-featured .mtsub-title-metas a.added_to_cart {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    background-color: #6366f1;
    box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.75);
    color: #ffffff;
}
.mtsub-featured .mtsub-title-metas a.added_to_cart:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    background-color: #4f46e5;
    box-shadow: 0 14px 28px -8px rgba(79, 70, 229, 0.85);
    color: #ffffff;
}
span.label.label-success {
    width: fit-content;
    float: right;
    font-size: 10px !important;
    padding: 5px !important;
    color: #ffff;
}
li.subscription span {
    padding: 5px 15px 0px;
    display: flow-root;
    color: #252525;
    font-size: 13px;
}
li.subscription span:first-child{
	font-size: 14px;
}
li.subscription span:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}
li.subscription span:first-child {
    padding-top: 15px;
}
.woocommerce-MyAccount-subscription {
    box-shadow: 0px 0px 25px rgb(0 0 0 / 10%);
    -webkit-box-shadow: 0px 0px 25px rgb(0 0 0 / 10%);
    padding: 25px 25px 10px;
    margin-bottom: 35px;
}
.woocommerce-MyAccount-pricing-plan > p{
    margin-bottom: 0;
}
.woocommerce-MyAccount-pricing-plan span.active {
    color: #000;
    font-size: 15px;
}
.woocommerce-MyAccount-pricing-plan span.active i {
    margin-right: 10px;
}
.woocommerce-MyAccount-subscription a {
    font-size: 20px;
    font-weight: 600;
    color: #252525 !important;
}
.woocommerce-MyAccount-subscription p {
    font-weight: 400;
}
.woocommerce-MyAccount-subscription span.current {
    font-weight: 600;
    color: #2695FF;
}
.single-product .product_meta strong {
    color: #484848;
}
span.subscription-tab {
    padding: 0px !important;
}
span.subscription-tab a{
    border: none !important;
    margin-bottom: -10px !important;
}
.woocommerce.single-product div.product form.cart .button.subscription {
    width: auto !important;
    padding: 0px 20px !important;
}

button.pricing-tooltip.btn {
    padding: 0px 6px;
    font-size: 12px;
    border: none;
    background: transparent;
    outline: none;
}
/* Repeated on every feature row, so it stays quiet until pointed at.
 * The label selector is included so the gap survives a theme resetting
 * margins on <i> elements.
 */
.pricing-tooltip,
.mtsub-product-wrapper .mtsub-infos ul .mtsub-feature-label i.pricing-tooltip {
    position: relative;
    top: 1px;
    display: inline-block;
    margin-left: 8px;
    padding: 0;
    font-size: 16.5px !important;
    line-height: 1;
    color: #b3bac7;
    cursor: help;
    transition: color 150ms ease;
}
.pricing-tooltip:hover,
.mtsub-product-wrapper .mtsub-infos ul .mtsub-feature-label i.pricing-tooltip:hover {
    color: #6366f1;
}
/* Was absolutely positioned with no offsets, so it landed wherever it
 * happened to sit in flow. Anchored above the icon and centred instead.
 */
.pricing-tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 220px;
    max-width: 70vw;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #111827;
    box-shadow: 0px 8px 24px rgba(16, 24, 40, 0.22);
    color: #fff;
    /* The bubble sits inside an <i class="fa">, so it inherits the Font
     * Awesome family and italics unless both are reset here.
     */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: normal;
    line-height: 1.5;
    text-align: center;
    text-transform: none;
    white-space: normal;
    pointer-events: none;
    z-index: 5;
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
}
/* Caret joining the bubble to the icon. */
.pricing-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #111827;
}
.pricing-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
del span.amount {
    text-decoration: line-through;
    color: #8B8B91!important;
}
.mtsub-title-metas ins {
    text-decoration: none;
}
del {
    text-decoration: none;
}
.meeeksaas-pricing-plan{
    position: relative;
}

/* Minimalist Current Plan Section */
.meeeksaas-my-current-plan {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
    /* max-width: 600px; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.meeeksaas-my-current-plan:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.meeeksaas-my-current-plan h4 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.meeeksaas-my-current-plan h5 {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 16px 0 0 0;
}

.meeeksaas-my-current-plan h5:first-of-type {
    margin-top: 0;
}

.meeeksaas-my-current-plan p {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.meeeksaas-my-current-plan p:last-child {
    margin-bottom: 0;
}

/* Benefits List Styling */
.meeeksaas-my-current-plan ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.meeeksaas-my-current-plan ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    color: #374151;
    font-size: 14px;
}

.meeeksaas-my-current-plan ul li:last-child {
    border-bottom: none;
}

.meeeksaas-my-current-plan ul li i {
    color: #10b981;
    margin-right: 10px;
    font-size: 14px;
}

/* Heading above the section */
h3#packages {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

/* Expired Subscription Notice */
.meeeksaas-my-current-plan p[style*="expired"] {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px;
    border-radius: 6px;
    color: #991b1b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .meeeksaas-my-current-plan {
        padding: 16px 20px;
        max-width: 100%;
    }

    h3#packages {
        font-size: 20px;
    }

    .meeeksaas-my-current-plan h4 {
        font-size: 18px;
    }

    .mtsub-product-wrapper {
        padding: 30px 22px 26px;
    }
    .mtsub-title-metas span.amount {
        font-size: 42px;
    }
    /* The lift reads as a wobble when the cards are stacked. */
    .mtsub-product-wrapper:hover,
    .mtsub-product-wrapper.mtsub-featured:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtsub-product-wrapper,
    .mtsub-product-wrapper a.button,
    .pricing-tooltip .tooltiptext {
        transition: none;
    }
    .mtsub-product-wrapper:hover,
    .mtsub-product-wrapper a.button:hover {
        transform: none;
    }
}