/**
 * One mobile sticky CTA for every buy page, every free shop page, and /free-trial/.
 * Brand violet #7C3AED / hover #6D28D9, white text. Mobile only (max-width: 480px).
 * Hides the older plugin bar (.mf-free-sticky-cta) so only this one shows.
 */
.mf-auto-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.5rem 0.85rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 12, 16, 0.94);
  box-shadow: 0 -8px 24px rgba(11, 12, 16, 0.18);
  transition: bottom 0.2s ease;
}
.mf-auto-sticky-cta a.mf-auto-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  height: 48px;
  margin: 0;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: "DM Serif Display", "DM Serif Display Fallback", "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  background: #7C3AED !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Touch: one tap = one scroll. No sticky-hover first tap on iOS, no double-tap-zoom wait. */
.mf-auto-sticky-cta,
.mf-auto-sticky-cta a.mf-auto-back {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.mf-auto-sticky-cta a.mf-auto-back:is(:focus-visible, :active) {
  background: #6D28D9 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
@media (hover: hover) and (pointer: fine) {
  .mf-auto-sticky-cta a.mf-auto-back:hover {
    background: #6D28D9 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
}
@media (hover: none) {
  .mf-auto-sticky-cta {
    transition: none;
  }
}
.mf-auto-sticky-cta a.mf-auto-back:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .mf-auto-sticky-cta:not([hidden]) {
    display: block;
  }
  body.mf-auto-sticky-on {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 481px) {
  .mf-auto-sticky-cta {
    display: none !important;
  }
}

/* Older plugin sticky (pink / cyan). One bar only. */
.mf-free-sticky-cta {
  display: none !important;
}


/* Paid buy pages, phone: Buzzoid-style mini order card, floating over the page.
   The page itself scrolls, so Safari can hide the address bar. */
@media (max-width: 480px) {
  .mf-auto-sticky-cta.is-mini-order {
    background: transparent;
    box-shadow: none;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }
  .mf-auto-sticky-cta.is-mini-order .mf-mini-shell {
    pointer-events: auto;
    position: relative;
    padding-top: 30px;
  }
  .mf-mini-tabs {
    position: absolute;
    top: 0;
    left: 16px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    /* No stacking context, so the unselected tab can sit behind the card border. */
    z-index: auto;
  }
  .mf-mini-tab {
    appearance: none;
    position: relative;
    z-index: 0;
    border: 2px solid #C4B5FD;
    background: #EDE9FE;
    color: #7C3AED;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 14px 8px;
    border-radius: 12px 12px 0 0;
    margin: 0;
  }
  .mf-mini-tab[data-mf-tier="exclusive"]:not(.is-selected) {
    background: #FFF8E8;
    color: #8A6500;
    border-color: #E6D3A1;
  }
  .mf-mini-tab.is-selected {
    z-index: 2;
    background: #fff;
    color: #7C3AED;
    border-color: #7C3AED;
    border-bottom-width: 0;
    padding-bottom: 10px;
    margin-bottom: 0;
  }
  .mf-mini-tab[data-mf-tier="exclusive"].is-selected {
    color: #8A6500;
    border-color: #E0B43A;
    border-bottom-color: #fff;
  }
  .mf-mini-card {
    background: #fff;
    border: 3px solid #7C3AED;
    border-radius: 18px;
    padding: 12px 10px 8px;
    box-shadow: 0 10px 28px rgba(17, 12, 34, 0.18);
  }
  .mf-mini-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }
  .mf-mini-packs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 2px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mf-mini-packs::-webkit-scrollbar { display: none; }
  .mf-mini-pack {
    appearance: none;
    flex: 0 0 auto;
    min-width: 64px;
    border: 2px solid #e4e0ee;
    background: #f6f4fb;
    color: #1f1633;
    border-radius: 14px;
    padding: 8px 10px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: inherit;
  }
  .mf-mini-pack.is-selected {
    background: #7C3AED;
    border-color: #7C3AED;
    color: #fff;
  }
  .mf-mini-pack-qty {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
  }
  .mf-mini-pack-price {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    opacity: 0.9;
  }
  .mf-mini-continue {
    appearance: none;
    flex: 0 0 auto;
    align-self: stretch;
    border: 0;
    border-radius: 14px;
    background: #7C3AED;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    padding: 0 16px;
    min-width: 108px;
  }
  .mf-mini-continue:active {
    background: #6D28D9;
  }
  .mf-mini-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 8px 4px 2px;
    color: #1f1633;
    font-size: 14px;
    font-weight: 700;
  }
  .mf-mini-price {
    color: #7C3AED;
    font-weight: 800;
    white-space: nowrap;
  }
  body.mf-auto-sticky-on:has(.mf-auto-sticky-cta.is-mini-order) {
    padding-bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px));
  }
}

  .mf-mini-tabs[hidden] { display: none !important; }
  .mf-auto-sticky-cta.is-mini-order .mf-mini-shell:has(.mf-mini-tabs[hidden]) {
    padding-top: 0;
  }

  .mf-mini-card { position: relative; z-index: 1; }
  .mf-auto-sticky-cta.is-mini-exclusive .mf-mini-card {
    border-color: #E0B43A;
  }
  .mf-auto-sticky-cta.is-mini-exclusive .mf-mini-pack.is-selected {
    background: #fff;
    border-color: #E0B43A;
    color: #8A6500;
  }
  .mf-auto-sticky-cta.is-mini-exclusive .mf-mini-continue {
    background: #FFD24A;
    color: #1A1406;
  }
  .mf-auto-sticky-cta.is-mini-exclusive .mf-mini-continue:active {
    background: #F5C430;
  }
  .mf-auto-sticky-cta.is-mini-exclusive .mf-mini-price {
    color: #8A6500;
  }

  /* Unselected tab sits behind the card, and has no bottom border of its own.
     The card's top border is the line under it, same color as the card. */
  .mf-mini-tab:not(.is-selected) {
    z-index: 0;
    border-bottom-width: 0;
    margin-bottom: 1px;
  }
