/*
 * Custom styles for the Freemius checkout popup.
 *
 * This file is not loaded by any page on this site. Freemius loads it inside
 * its checkout once its URL (https://pcmojo.app/freemius-checkout.css) is set
 * in the Freemius dashboard under Plans → Customization → Custom Checkout CSS
 * file.
 */

/*
 * The no-card trial form shows only the plan's price under its title, which
 * reads as if that amount is being charged. Say that nothing is charged today
 * and that the price applies after the trial. The ".trial" class keeps this
 * off any free plan's form, which shares the second class.
 */
.trial.trial-without-payment-method .fs-cart-header__subtitle::before {
  content: "No charge today. After the trial: ";
}

/*
 * Mention the Pro annual introductory offer after the price. The form does
 * not expose which plan or billing cycle it is for, so this shows on every
 * no-card trial form, Basic and monthly included.
 */
.trial.trial-without-payment-method .fs-cart-header__subtitle::after {
  content: " +35% off the first Pro payment";
}

/*
 * The Beta plan is a paid plan made free by the BETA100 coupon, so its form
 * has no subtitle line to reuse. Show our note above the price lines instead.
 * Freemius sets ".is-full-coupon-discount" on any form whose coupon covers
 * the whole price, renewals included; BETA100 is the only such coupon.
 */
.is-full-coupon-discount .fs-cart-header__line-items::before {
  content: "Thank you for being a Beta tester! Our 3rd party license manager enforces a minimum $3 price, but, don't worry, PC Mojo is free forever for beta testers.";
  display: block;
  margin-bottom: 8px;
  color: var(--fs-ds-theme-muted-text-color);
  font-size: 14px;
}

/*
 * Freemius labels the button "Upgrade for Free" on any form whose coupon
 * covers the whole price. Beta testers are new installs, so hide that text
 * and show ours. The button's label is a bare text node, so it is hidden by
 * zeroing the font size. Excluding ".processing" keeps Freemius' own text
 * and spinner while the order is being submitted.
 */
.is-full-coupon-discount:not(.processing) #submit_purchase button.fs-cta {
  font-size: 0;
}

.is-full-coupon-discount:not(.processing) #submit_purchase button.fs-cta::after {
  content: "Join Beta";
  font-size: var(--fs-ds-typography-font-size-md);
}
