/* ============================================================
   Go Premium: upgrade hero + one "Free vs Premium" card with an
   All features / Differences only toggle. Uses the shell's --integrazo_fwcrm_form-*
   design tokens, like the other tabs.
   ============================================================ */

/* Upgrade call to action: heading, text and button sit directly on the page. */
.integrazo_fwcrm_form-premium-hero {
    padding: 20px 20px 24px;
    text-align: center;
}

.integrazo_fwcrm_form-premium-hero__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-premium-hero__text {
    max-width: 640px;
    margin: 0 auto 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
}

.integrazo_fwcrm_form-premium-hero .integrazo_fwcrm_form-btn-primary {
    display: inline-flex;
    text-decoration: none;
}

.integrazo_fwcrm_form-premium-hero .integrazo_fwcrm_form-btn-primary:hover,
.integrazo_fwcrm_form-premium-hero .integrazo_fwcrm_form-btn-primary:focus,
.integrazo_fwcrm_form-premium-hero .integrazo_fwcrm_form-btn-primary:active,
.integrazo_fwcrm_form-premium-hero .integrazo_fwcrm_form-btn-primary:visited {
    text-decoration: none;
    color: #fff;
}

/* WP's blue `a:focus` ring showed around the button after a click (it opens in a new tab,
   so the page keeps focus). No ring on mouse click; keyboard focus keeps a soft purple one. */
.integrazo_fwcrm_form-premium-hero a.integrazo_fwcrm_form-btn-primary:focus,
.integrazo_fwcrm_form-premium-hero a.integrazo_fwcrm_form-btn-primary:active {
    outline: none;
    box-shadow: none;
}

/* Keep the rounded corners in every state (a square ring/outline made them look removed). */
.integrazo_fwcrm_form-premium-hero a.integrazo_fwcrm_form-btn-primary,
.integrazo_fwcrm_form-premium-hero a.integrazo_fwcrm_form-btn-primary:hover,
.integrazo_fwcrm_form-premium-hero a.integrazo_fwcrm_form-btn-primary:focus,
.integrazo_fwcrm_form-premium-hero a.integrazo_fwcrm_form-btn-primary:active {
    border-radius: var(--integrazo_fwcrm_form-radius-sm, 8px);
}

.integrazo_fwcrm_form-premium-hero a.integrazo_fwcrm_form-btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 76, 240, 0.35);
}

/* The comparison card */
.integrazo_fwcrm_form-premium-compare {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 28px 22px;
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: var(--integrazo_fwcrm_form-radius-md, 14px);
    box-shadow: var(--integrazo_fwcrm_form-shadow-card, 0 4px 16px rgba(20, 22, 50, .04));
}

.integrazo_fwcrm_form-premium-compare__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.integrazo_fwcrm_form-premium-compare__title {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

/* Segmented All features / Differences only toggle */
.integrazo_fwcrm_form-premium-toggle {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    background: var(--integrazo_fwcrm_form-lavender-300, #f5f2ff);
    border: 1px solid var(--integrazo_fwcrm_form-lavender-border-200, #e3dcfc);
    border-radius: 9px;
}

#wpcontent .integrazo_fwcrm_form-premium-toggle__btn {
    padding: 7px 14px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

#wpcontent .integrazo_fwcrm_form-premium-toggle__btn:hover {
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
}

#wpcontent .integrazo_fwcrm_form-premium-toggle__btn.is-active {
    background: var(--integrazo_fwcrm_form-card-bg, #fff);
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .1);
}

/* Table */
.integrazo_fwcrm_form-premium-compare__table-wrap {
    border: 1px solid var(--integrazo_fwcrm_form-border-100, #eceef5);
    border-radius: 12px;
    overflow: hidden;
}

.integrazo_fwcrm_form-premium-compare__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.integrazo_fwcrm_form-premium-compare__table thead tr {
    background: var(--integrazo_fwcrm_form-lavender-100, #ebe5ff);
}

.integrazo_fwcrm_form-premium-compare__table th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--integrazo_fwcrm_form-primary-text-hover, #4b31c9);
    border-bottom: 1px solid var(--integrazo_fwcrm_form-lavender-border-100, #d9cffb);
    text-align: center;
}

.integrazo_fwcrm_form-premium-compare__table th.integrazo_fwcrm_form-premium-compare__col-feature {
    text-align: left;
}

.integrazo_fwcrm_form-premium-compare__table th.integrazo_fwcrm_form-premium-compare__col-premium {
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
}

.integrazo_fwcrm_form-premium-compare__current {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #7a6fa8;
}

.integrazo_fwcrm_form-premium-compare__table td {
    width: 22%;
    padding: 14px 20px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--integrazo_fwcrm_form-border-300, #f1f2f7);
}

.integrazo_fwcrm_form-premium-compare__table td.integrazo_fwcrm_form-premium-compare__feature {
    width: auto;
    text-align: left;
}

.integrazo_fwcrm_form-premium-compare__table tbody tr:hover td {
    background: #fcfbff;
}

.integrazo_fwcrm_form-premium-compare__table tbody tr:last-child td {
    border-bottom: 0;
}

.integrazo_fwcrm_form-premium-compare__table tbody tr.is-hidden {
    display: none;
}

.integrazo_fwcrm_form-premium-compare__feature-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-ink, #1b1d2a);
}

.integrazo_fwcrm_form-premium-compare__feature-desc {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

/* Free column: plain text. Premium column: bold and in the brand colour. */
.integrazo_fwcrm_form-premium-value--free {
    font-size: 13px;
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
}

.integrazo_fwcrm_form-premium-value--premium {
    font-size: 13px;
    font-weight: 700;
    color: var(--integrazo_fwcrm_form-primary-text, #5b3fe0);
}

/* Available: a green check badge, in both columns. */
.integrazo_fwcrm_form-premium-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.integrazo_fwcrm_form-premium-check--free {
    background: var(--integrazo_fwcrm_form-success-bg, #e8f8f1);
    color: var(--integrazo_fwcrm_form-success-dark, #0f9f6e);
}

.integrazo_fwcrm_form-premium-check--premium {
    background: var(--integrazo_fwcrm_form-success-bg, #e8f8f1);
    color: var(--integrazo_fwcrm_form-success-dark, #0f9f6e);
}

/* Not available: a red close badge. */
.integrazo_fwcrm_form-premium-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--integrazo_fwcrm_form-error-bg, #fdecec);
    color: var(--integrazo_fwcrm_form-error, #e0393e);
}

.integrazo_fwcrm_form-premium-compare__empty {
    margin: 0;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--integrazo_fwcrm_form-muted-text, #8a8fa6);
}

.integrazo_fwcrm_form-premium-compare__license {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--integrazo_fwcrm_form-body-text, #4a4f66);
}

.integrazo_fwcrm_form-premium-compare__license a {
    font-weight: 700;
}

@media (max-width: 782px) {
    .integrazo_fwcrm_form-premium-compare {
        padding: 18px 14px 16px;
    }

    .integrazo_fwcrm_form-premium-compare__table th,
    .integrazo_fwcrm_form-premium-compare__table td {
        padding: 12px 10px;
    }

    .integrazo_fwcrm_form-premium-compare__table td {
        width: 20%;
    }

    .integrazo_fwcrm_form-premium-compare__feature-desc {
        display: none;
    }
}
