/*
 * Subscription pricing section — [tcpa_subscription_packages] / tcpa_show_subscriptions()
 * and the header rendered by tcpa_render_pricing_header().
 * Everything is scoped under .tcpa-pricing / .tcpa-pricing-head / .tcpa-pricing-section.
 */

.tcpa-pricing,
.tcpa-pricing-head {
    --tcpa-navy: #0b1b3b;
    --tcpa-ink: #2c3550;
    --tcpa-text: #1f2740;
    --tcpa-muted: #4b5567;
    --tcpa-blue: #0b6fb3;
    --tcpa-accent: #0d8fe0;
    --tcpa-accent-dark: #7cd0ff;
    --tcpa-line: #e3e7ef;
    font-family: Poppins, "Segoe UI", Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tcpa-pricing [hidden],
.tcpa-pricing-head [hidden] {
    display: none !important;
}

.tcpa-pricing .tcpa-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The homepage puts the shortcode output inside a flex .row. */
.tcpa-pricing-section .packages-wrapper {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.tcpa-pricing {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    color: var(--tcpa-text);
    text-align: left;
}

.tcpa-pricing *,
.tcpa-pricing *::before,
.tcpa-pricing *::after {
    box-sizing: border-box;
}

/* ---------------------------------------------------------------- */
/*  Header                                                          */
/* ---------------------------------------------------------------- */
.tcpa-pricing-head {
    text-align: center;
}

.tcpa-pricing-head__view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tcpa-pricing-head .tcpa-pricing-head__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--tcpa-blue);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.tcpa-pricing-head__eyebrow span {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--tcpa-blue);
}

.tcpa-pricing-head .tcpa-pricing-head__title {
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--tcpa-navy);
    text-align: center;
}

.tcpa-pricing-head .tcpa-pricing-head__text {
    margin: 0;
    max-width: 720px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--tcpa-ink);
    text-align: center;
}

/* ---------------------------------------------------------------- */
/*  Monthly / Annual segmented toggle                               */
/* ---------------------------------------------------------------- */
.tcpa-pricing .tcpa-pricing__switch {
    display: flex;
    justify-content: center;
    margin: 24px 0 48px;
}

.tcpa-pricing .tcpa-seg {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 2px solid var(--tcpa-navy);
    border-radius: 999px;
    background: #ffffff;
    max-width: 100%;
}

.tcpa-pricing .tcpa-seg__btn {
    display: inline-block;
    margin: 0;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tcpa-navy);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.tcpa-pricing .tcpa-seg__btn:hover {
    background: #eef3ff;
    color: var(--tcpa-navy);
}

.tcpa-pricing .tcpa-seg__btn.is-on,
.tcpa-pricing .tcpa-seg__btn.is-on:hover {
    background: var(--tcpa-navy);
    color: #ffffff;
    cursor: default;
}

.tcpa-pricing .tcpa-seg__btn:focus {
    outline: none;
}

.tcpa-pricing .tcpa-seg__btn:focus-visible {
    outline: 3px solid var(--tcpa-accent);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/*  Standard plan cards                                             */
/* ---------------------------------------------------------------- */
.tcpa-pricing .tcpa-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 36px;
    padding-bottom: 74px; /* 56px + room for the dotted backdrop */
}

.tcpa-pricing .tcpa-plan {
    position: relative;
    height: 100%;
    min-width: 0;
}

.tcpa-pricing .tcpa-plan__dots {
    position: absolute;
    top: 30px;
    right: -18px;
    bottom: -18px;
    left: 30px;
    z-index: 0;
    background-image: radial-gradient(#aab2c4 1.4px, transparent 1.6px);
    background-size: 11px 11px;
}

.tcpa-pricing .tcpa-plan-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    padding: 36px 32px 28px;
    background: #ffffff;
    border-top: 4px solid var(--tcpa-navy);
    box-shadow: 0 18px 40px rgba(11, 27, 59, .10);
    color: var(--tcpa-text);
}

/* Recommended plan: the dark ".active" card. */
.tcpa-pricing .tcpa-plan-card.active {
    background: #3d475e;
    color: #ffffff;
}

.tcpa-pricing .tcpa-plan-card__tag {
    position: absolute;
    top: -15px;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--tcpa-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tcpa-pricing .tcpa-plan-card__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 150px;
    height: 150px;
    overflow: hidden;
    pointer-events: none;
}

.tcpa-pricing .tcpa-plan-card__ribbon span {
    position: absolute;
    top: 34px;
    right: -44px;
    width: 210px;
    padding: 7px 0;
    transform: rotate(45deg);
    background: var(--tcpa-blue);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .3px;
    text-align: center;
}

.tcpa-pricing .tcpa-plan-card__icon {
    flex: none;
    width: 64px;
    height: 64px;
    color: var(--tcpa-accent);
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__icon {
    color: var(--tcpa-accent-dark);
}

.tcpa-pricing .tcpa-plan-card__name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tcpa-accent);
    text-transform: none;
}

.tcpa-pricing .tcpa-plan-card.has-ribbon .tcpa-plan-card__name {
    padding-right: 56px;
}

.tcpa-pricing .tcpa-plan-card__name::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d7dce6;
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__name {
    color: var(--tcpa-accent-dark);
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__name::after {
    background: #66718a;
}

.tcpa-pricing .tcpa-plan-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
}

.tcpa-pricing .tcpa-plan-card__cur {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: #6b7386;
}

.tcpa-pricing .tcpa-plan-card__amt {
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--tcpa-navy);
}

.tcpa-pricing .tcpa-plan-card__per {
    align-self: flex-end;
    margin: 0 0 6px 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--tcpa-ink);
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__cur { color: #c7cedb; }
.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__amt { color: #ffffff; }
.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__per { color: #e2e6ee; }

.tcpa-pricing .tcpa-plan-card__was {
    margin: -8px 0 0;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--tcpa-muted);
    text-align: left;
}

.tcpa-pricing .tcpa-plan-card__was s { color: #6b7386; }
.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__was { color: #e2e6ee; }
.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__was s { color: #c7cedb; }

/* Feature list = product post_content (admin HTML): <ul><li>…</li></ul>; <li class="not-included"> = dash. */
.tcpa-pricing .tcpa-plan-card__feats {
    font-size: 15.5px;
    line-height: 1.45;
    color: inherit;
    text-align: left;
}

.tcpa-pricing .tcpa-plan-card__feats p {
    margin: 0;
    text-align: left;
}

.tcpa-pricing .tcpa-plan-card__feats ul,
.tcpa-pricing .tcpa-plan-card__feats ol {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tcpa-pricing .tcpa-plan-card__feats li,
.tcpa-pricing .tcpa-plan-card__feats > span {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 0 32px;
    text-transform: none;
}

.tcpa-pricing .tcpa-plan-card__feats > span + span {
    margin-top: 12px;
}

.tcpa-pricing .tcpa-plan-card__feats li::before,
.tcpa-pricing .tcpa-plan-card__feats > span::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--tcpa-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__feats li::before,
.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__feats > span::before {
    background-color: var(--tcpa-accent-dark);
}

.tcpa-pricing .tcpa-plan-card__feats .not-included {
    color: #5a6478;
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__feats .not-included {
    color: #c7cedb;
}

.tcpa-pricing .tcpa-plan-card__feats li.not-included::before,
.tcpa-pricing .tcpa-plan-card__feats > span.not-included::before,
.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__feats li.not-included::before,
.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__feats > span.not-included::before {
    background-color: #7b8498;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

.tcpa-pricing .tcpa-plan-card__form {
    margin: auto 0 0;
}

.tcpa-pricing .tcpa-plan-card__note {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--tcpa-muted);
    text-align: left;
}

.tcpa-pricing .tcpa-plan-card__note p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: left;
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__note {
    color: #e2e6ee;
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-card__note a {
    color: #ffffff;
}

/* ---------------------------------------------------------------- */
/*  Buttons                                                         */
/* ---------------------------------------------------------------- */
.tcpa-pricing .tcpa-plan-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #1e55ff 0%, #7b22ff 100%);
    box-shadow: 0 10px 24px rgba(61, 47, 255, .22);
    color: #ffffff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.tcpa-pricing .tcpa-plan-btn:hover {
    color: #ffffff;
    filter: brightness(1.06);
    text-decoration: none;
}

.tcpa-pricing .tcpa-plan-btn:focus {
    outline: none;
}

.tcpa-pricing .tcpa-plan-btn:focus-visible {
    outline: 3px solid var(--tcpa-navy);
    outline-offset: 3px;
}

.tcpa-pricing .tcpa-plan-card.active .tcpa-plan-btn:focus-visible {
    outline-color: #ffffff;
}

.tcpa-pricing .tcpa-plan-btn--ghost {
    margin-top: auto;
    padding: 13px 24px;
    border: 2px solid var(--tcpa-navy);
    background: #ffffff;
    box-shadow: none;
    color: var(--tcpa-navy);
    font-size: 15px;
}

.tcpa-pricing .tcpa-plan-btn--ghost:hover {
    background: #eef3ff;
    color: var(--tcpa-navy);
    filter: none;
}

/* ---------------------------------------------------------------- */
/*  High-volume band                                                */
/* ---------------------------------------------------------------- */
.tcpa-pricing .tcpa-hv {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0 0 56px;
    padding: 56px 32px;
    border-radius: 8px;
    background: var(--tcpa-navy);
    color: #ffffff;
}

.tcpa-pricing .tcpa-hv__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
}

.tcpa-pricing .tcpa-hv__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcpa-pricing .tcpa-hv__eyebrow {
    margin: 0;
    color: var(--tcpa-accent-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
}

.tcpa-pricing .tcpa-hv__title {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.tcpa-pricing .tcpa-hv__side {
    max-width: 540px;
    margin: 0;
    color: #c7cedb;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.tcpa-pricing .tcpa-hv__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.tcpa-pricing .tcpa-hv-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    min-width: 0;
    padding: 28px 26px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--tcpa-ink);
}

.tcpa-pricing .tcpa-hv-card__name {
    margin: 0;
    color: var(--tcpa-navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.tcpa-pricing .tcpa-hv-card__amt {
    color: var(--tcpa-navy);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.tcpa-pricing .tcpa-hv-card__per {
    color: var(--tcpa-muted);
    font-size: 14px;
    font-weight: 500;
}

.tcpa-pricing .tcpa-hv-card__prepay {
    margin: 0;
    color: var(--tcpa-blue);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

.tcpa-pricing .tcpa-hv-card__list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--tcpa-ink);
    font-size: 14px;
    line-height: 1.4;
}

.tcpa-pricing .tcpa-hv-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.tcpa-pricing .tcpa-hv-card__list li::before {
    content: none;
}

.tcpa-pricing .tcpa-hv-card__list svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--tcpa-accent);
}

/* ---------------------------------------------------------------- */
/*  Compare tables                                                  */
/* ---------------------------------------------------------------- */
.tcpa-pricing .tcpa-cmp {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 0 24px;
}

.tcpa-pricing .tcpa-cmp__title {
    margin: 0;
    color: var(--tcpa-navy);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.tcpa-pricing .tcpa-cmp__intro {
    max-width: 820px;
    margin: 0 auto;
    color: var(--tcpa-ink);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

.tcpa-pricing .tcpa-cmp__scroll {
    max-width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--tcpa-line);
    border-radius: 8px;
}

.tcpa-pricing .tcpa-cmp__scroll:focus {
    outline: none;
}

.tcpa-pricing .tcpa-cmp__scroll:focus-visible {
    outline: 3px solid var(--tcpa-accent);
    outline-offset: 2px;
}

.tcpa-pricing .tcpa-cmp__table {
    width: 100%;
    min-width: 900px;
    margin: 0;
    border-collapse: collapse;
    font-size: 15px;
}

.tcpa-pricing .tcpa-cmp--annual .tcpa-cmp__table {
    min-width: 960px;
}

.tcpa-pricing .tcpa-cmp__table thead {
    position: static;
}

/* :not(#…) lifts specificity above the global "table:not(#coinsTransactions)… thead th" rule. */
.tcpa-pricing .tcpa-cmp__table:not(#tcpa-cmp-none) thead th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--tcpa-navy);
    background: #f6f8fc;
    color: var(--tcpa-navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
}

.tcpa-pricing .tcpa-cmp__table:not(#tcpa-cmp-none) tbody th,
.tcpa-pricing .tcpa-cmp__table:not(#tcpa-cmp-none) tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--tcpa-line);
    background: #ffffff;
    color: var(--tcpa-ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
}

.tcpa-pricing .tcpa-cmp__table:not(#tcpa-cmp-none) tbody tr:last-child th,
.tcpa-pricing .tcpa-cmp__table:not(#tcpa-cmp-none) tbody tr:last-child td {
    border-bottom: 0;
}

.tcpa-pricing .tcpa-cmp__table:not(#tcpa-cmp-none) tbody tr.is-recommended th,
.tcpa-pricing .tcpa-cmp__table:not(#tcpa-cmp-none) tbody tr.is-recommended td {
    background: #eef6ff;
    color: var(--tcpa-navy);
    font-weight: 600;
}

/* ---------------------------------------------------------------- */
/*  Responsive                                                      */
/* ---------------------------------------------------------------- */
@media (max-width: 1180px) and (min-width: 861px) {
    .tcpa-pricing .tcpa-plan-grid,
    .tcpa-pricing .tcpa-hv__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .tcpa-pricing .tcpa-plan-grid,
    .tcpa-pricing .tcpa-hv__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Keep the dotted backdrop inside the column (no horizontal page scroll). */
    .tcpa-pricing .tcpa-plan-grid {
        padding-right: 12px;
    }

    .tcpa-pricing .tcpa-plan__dots {
        right: -12px;
        bottom: -12px;
    }

    .tcpa-pricing-head .tcpa-pricing-head__title {
        font-size: 30px;
    }

    .tcpa-pricing-head .tcpa-pricing-head__text {
        font-size: 16px;
    }

    .tcpa-pricing .tcpa-hv {
        padding: 40px 20px;
    }

    .tcpa-pricing .tcpa-hv__title {
        font-size: 24px;
    }

    .tcpa-pricing .tcpa-cmp__title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tcpa-pricing .tcpa-plan-card {
        padding: 32px 22px 24px;
    }

    .tcpa-pricing .tcpa-plan-card__amt {
        font-size: 48px;
    }

    .tcpa-pricing .tcpa-seg__btn {
        padding: 9px 14px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .tcpa-pricing .tcpa-seg {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 24px;
    }
}
