﻿/* TSL V45 mobile modal containment + static asset recovery.
   Frontend-only. No backend, auth flow, Stripe, pricing, SEO, or model logic changes. */
html, body {
  max-width: 100%;
}
@media (max-width: 900px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}
.tsl-quota-gate-overlay,
.tsl-global-modal-overlay {
  box-sizing: border-box !important;
  padding: clamp(16px, 5vw, 28px) !important;
}
.tsl-quota-gate-modal,
.tsl-global-modal-card {
  box-sizing: border-box !important;
  width: min(100%, 430px) !important;
  max-width: calc(100vw - 32px) !important;
  overflow: hidden !important;
}
.tsl-quota-gate-actions,
.tsl-global-modal-actions {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 18px 0 0 !important;
}
.tsl-quota-gate-actions > *,
.tsl-global-modal-actions > *,
.tsl-quota-gate-btn,
.tsl-global-modal-btn,
.tsl-global-modal-action {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 12px 14px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  transform: none !important;
}
.tsl-quota-gate-btn:focus,
.tsl-quota-gate-btn:focus-visible,
.tsl-global-modal-btn:focus,
.tsl-global-modal-btn:focus-visible,
.tsl-global-modal-action:focus,
.tsl-global-modal-action:focus-visible {
  outline: 2px solid #1d4ed8 !important;
  outline-offset: -3px !important;
  box-shadow: none !important;
}
.tsl-quota-gate-close,
.tsl-global-modal-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
@media (max-width: 430px) {
  .tsl-quota-gate-overlay,
  .tsl-global-modal-overlay {
    padding: 12px !important;
  }
  .tsl-quota-gate-modal,
  .tsl-global-modal-card {
    max-width: calc(100vw - 24px) !important;
    border-radius: 22px !important;
  }
  .tsl-quota-gate-title,
  .tsl-global-modal-title {
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1.05 !important;
  }
}

/* =========================================================
   TSL_MOBILE_GLOBAL_CTA_AND_ASSET_BASELINE_V47
   Built from V45 asset-path baseline.
   Frontend-only mobile CTA containment + inline fallback.
   ========================================================= */

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

.tsl-clean-cta,
.tsl-pro-cta,
.tsl-next-step-card,
.tsl-foundation-cta,
.tsl-cta,
.tsl-clean-callout {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.tsl-clean-cta > a,
.tsl-pro-cta > a,
.tsl-next-step-card > a,
.tsl-foundation-cta > a,
.tsl-cta > a,
.tsl-clean-callout > a,
.tsl-clean-cta > button,
.tsl-pro-cta > button,
.tsl-next-step-card > button,
.tsl-foundation-cta > button,
.tsl-cta > button,
.tsl-clean-callout > button,
.tsl-clean-cta .tsl-btn,
.tsl-pro-cta .tsl-btn,
.tsl-next-step-card .tsl-btn,
.tsl-foundation-cta .tsl-btn,
.tsl-cta .tsl-btn,
.tsl-clean-callout .tsl-btn {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .tsl-clean-cta,
  .tsl-pro-cta,
  .tsl-next-step-card,
  .tsl-foundation-cta,
  .tsl-cta,
  .tsl-clean-callout {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(20px, 5vw, 28px) !important;
    padding-right: clamp(20px, 5vw, 28px) !important;
    overflow: hidden !important;
  }

  body .tsl-clean-cta > a,
  body .tsl-pro-cta > a,
  body .tsl-next-step-card > a,
  body .tsl-foundation-cta > a,
  body .tsl-cta > a,
  body .tsl-clean-callout > a,
  body .tsl-clean-cta > button,
  body .tsl-pro-cta > button,
  body .tsl-next-step-card > button,
  body .tsl-foundation-cta > button,
  body .tsl-cta > button,
  body .tsl-clean-callout > button,
  body .tsl-clean-cta .tsl-btn,
  body .tsl-pro-cta .tsl-btn,
  body .tsl-next-step-card .tsl-btn,
  body .tsl-foundation-cta .tsl-btn,
  body .tsl-cta .tsl-btn,
  body .tsl-clean-callout .tsl-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    transform: none !important;
    overflow: hidden !important;
  }

  body .tsl-clean-cta > a:hover,
  body .tsl-pro-cta > a:hover,
  body .tsl-next-step-card > a:hover,
  body .tsl-foundation-cta > a:hover,
  body .tsl-cta > a:hover,
  body .tsl-clean-callout > a:hover {
    transform: none !important;
  }

  body .tsl-clean-cta > a:focus,
  body .tsl-clean-cta > a:focus-visible,
  body .tsl-pro-cta > a:focus,
  body .tsl-pro-cta > a:focus-visible,
  body .tsl-next-step-card > a:focus,
  body .tsl-next-step-card > a:focus-visible,
  body .tsl-foundation-cta > a:focus,
  body .tsl-foundation-cta > a:focus-visible,
  body .tsl-cta > a:focus,
  body .tsl-cta > a:focus-visible,
  body .tsl-clean-callout > a:focus,
  body .tsl-clean-callout > a:focus-visible {
    outline: 2px solid #1d4ed8 !important;
    outline-offset: -3px !important;
    box-shadow: none !important;
  }
}

@media (max-width: 430px) {
  .tsl-clean-cta,
  .tsl-pro-cta,
  .tsl-next-step-card,
  .tsl-foundation-cta,
  .tsl-cta,
  .tsl-clean-callout {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .tsl-clean-cta h2,
  .tsl-pro-cta h2,
  .tsl-next-step-card h2,
  .tsl-foundation-cta h2,
  .tsl-cta h2,
  .tsl-clean-callout h2 {
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1.12 !important;
  }
}
