/* ============================================================================
   Free → paid upgrade path (inc/MlpaUpgrade.php)

   1. The upgrade view of the plan step (body.mlpa-upgrade-view): pet header,
      preselected card first on phones, submit button directly under the
      selected card, no chatbot popup. Builds on css/start-alert.css tokens.
   2. The dashboard free-landing offer card (.mlpa-offer), inside .mlpa-dashboard.
   ============================================================================ */

/* ── 1. Upgrade view ─────────────────────────────────────────────────────── */

/* The Pet Expert (AI Engine) popup covered the copy on phones. */
body.mlpa-upgrade-view .mwai-chatbot-container {
    display: none !important;
}

.mlpa-upgrade__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
}

.mlpa-upgrade__photo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mlpa-bg);
    box-shadow: 0 0 0 3px var(--mlpa-recommended-bg), 0 0 0 4px var(--mlpa-orange);
}

.mlpa-upgrade__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.mlpa-upgrade__title {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--mlpa-ink);
}

.mlpa-upgrade__now {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--mlpa-muted);
}

.mlpa-upgrade__now strong {
    color: var(--mlpa-ink);
}

.mlpa-upgrade__adds {
    display: block;
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: var(--mlpa-radius-sm);
    background: var(--mlpa-recommended-bg);
    font-size: 14px;
    line-height: 1.35;
    color: var(--mlpa-ink);
}

.mlpa-upgrade__adds strong {
    color: var(--mlpa-orange-deep);
}

/* The "Adds" line says what each plan brings, so the upgrade cards drop the big
   combined reach number, the flyer footer and the "Selected" badge (it covered
   the price; the orange frame and the button label show the choice). On phones
   the meters go too, so the chosen card and its button fit on screen one. */
.mlpa-upgrade__cards .mlpa-plan-reach,
.mlpa-upgrade__cards .mlpa-plan-flyer,
.mlpa-upgrade__cards .mlpa-package-card__check,
.mlpa-upgrade__cards .mlpa-meters {
    display: none;
}

.mlpa-upgrade__cards .mlpa-package-card__label {
    padding: 16px 16px 14px;
}

.mlpa-upgrade__cta {
    list-style: none;
    margin: 0 0 6px;
    text-align: center;
}

.mlpa-upgrade__submit {
    width: 100%;
    padding: 15px 20px;
}

.mlpa-upgrade__reassure {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--mlpa-success);
}

.mlpa-upgrade__cta .mlpa-choose-plan__reassure {
    margin-top: 4px;
}

@media (min-width: 668px) {
    .mlpa-upgrade__title {
        font-size: 30px;
    }

    /* Wider screens: cards back in price order, the button full-width under the row. */
    .mlpa-upgrade__cards .mlpa-package-card {
        order: var(--mlpa-rank, 0);
    }

    .mlpa-upgrade__cards .mlpa-upgrade__cta {
        order: 99;
        grid-column: 1 / -1;
        margin-top: 12px;
    }

    .mlpa-upgrade__submit {
        width: auto;
        min-width: 320px;
    }

    .mlpa-upgrade__cards .mlpa-meters {
        display: block;
        margin-top: 8px;
    }
}

/* ── 2. Dashboard free-landing offer card ────────────────────────────────── */

.mlpa-offer {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 18px;
    background: #fff6ee;
    border: 2px solid var(--mlpa-orange, #e89145);
    border-radius: var(--mlpa-radius, 14px);
    box-shadow: var(--mlpa-shadow);
}

.mlpa-offer__photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mlpa-bg, #faf6ea);
}

.mlpa-offer__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.mlpa-offer__body {
    flex: 1 1 auto;
    min-width: 0;
}

.mlpa-offer__eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mlpa-success, #5f8f22);
}

.mlpa-offer__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--mlpa-ink, #2a2b1f);
}

.mlpa-offer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.mlpa-offer__cta,
.mlpa-offer__cta:visited {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--mlpa-orange, #e89145);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 145, 69, .35);
}

.mlpa-offer__cta:hover,
.mlpa-offer__cta:focus {
    background: var(--mlpa-orange-dark, #cf7a31);
    color: #fff;
    text-decoration: none;
}

.mlpa-offer__alts {
    font-size: 14px;
    color: var(--mlpa-muted, #726d5f);
}

.mlpa-offer__alts a {
    font-weight: 700;
    text-decoration: underline;
}

.mlpa-offer__note {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--mlpa-muted, #726d5f);
}

.mlpa-offer__note i {
    color: var(--mlpa-success, #5f8f22);
    margin-right: 4px;
}

@media (max-width: 480px) {
    .mlpa-offer {
        flex-direction: column;
        align-items: stretch;
    }

    .mlpa-offer__photo {
        display: none;
    }

    .mlpa-offer__cta {
        display: block;
        text-align: center;
    }
}

/* ── 3. Free pet upgrade banners (dashboard card, public pet page) and the
      locked "not included" rows in the free fax panel ───────────────────── */

.mlpa-banner {
    margin: 0 18px 14px;
    padding: 14px 16px;
    background: #fff6ee;
    border: 1px solid var(--mlpa-orange, #e89145);
    border-radius: var(--mlpa-radius-sm, 8px);
}

.mlpa-banner__title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--mlpa-ink, #414042);
}

.mlpa-banner__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.mlpa-banner__fact {
    margin: 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--mlpa-radius-sm, 8px);
    font-size: 13px;
    line-height: 1.3;
    color: var(--mlpa-muted, #777);
}

.mlpa-banner__fact strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--mlpa-ink, #414042);
}

.mlpa-banner__fact--phone strong,
.mlpa-banner__fact--facebook strong {
    color: var(--mlpa-danger, #c9483b);
}

.mlpa-banner__pitch {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mlpa-ink, #414042);
}

.mlpa-banner__cta,
.mlpa-banner__cta:visited {
    display: inline-block;
    padding: 12px 22px;
    min-height: 44px;
    box-sizing: border-box;
    border-radius: 8px;
    background: var(--mlpa-orange, #e89145);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.mlpa-banner__cta:hover,
.mlpa-banner__cta:focus {
    background: var(--mlpa-orange-dark, #cf7a31);
    color: #fff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .mlpa-banner__facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .mlpa-banner {
        margin: 0 12px 12px;
    }

    .mlpa-banner__cta {
        display: block;
    }
}

/* Owner-only banner on the public pet page. */
.mlpa-petbanner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff6ee;
    border: 1px solid var(--mlpa-orange, #e89145);
    border-radius: var(--mlpa-radius-sm, 8px);
    font-size: 14px;
    line-height: 1.4;
    color: var(--mlpa-ink, #414042);
}

.mlpa-petbanner__text {
    flex: 1 1 280px;
    min-width: 0;
}

.mlpa-petbanner__private {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--mlpa-muted, #777);
}

@media (max-width: 480px) {
    .mlpa-petbanner .mlpa-banner__cta {
        flex: 1 1 100%;
    }
}

/* Locked rows in the free fax panel. */
.mlpa-locked {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.mlpa-locked__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0 0 6px;
    padding: 8px 10px;
    background: var(--mlpa-bg, #f7f7f8);
    border: 1px dashed var(--mlpa-line, #e6e7e8);
    border-radius: var(--mlpa-radius-sm, 8px);
    font-size: 14px;
    color: var(--mlpa-muted, #777);
}

.mlpa-locked__row .fa-lock {
    width: 16px;
    text-align: center;
}

.mlpa-locked__label {
    font-weight: 700;
}

.mlpa-locked__state {
    flex: 1 1 auto;
}

.mlpa-locked__link {
    /* Tap target of at least 44 px without growing the row. */
    display: inline-block;
    padding: 12px 8px;
    margin: -12px -8px;
    font-weight: 700;
    text-decoration: underline;
    color: var(--mlpa-orange-deep, #b8641f);
}
