/* Front site — global mobile & tablet hardening */

html, body {
  max-width: 100%;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* Theme fixed hero width breaks phones */
.hero-section-text {
  width: 100% !important;
  max-width: 100% !important;
  left: 0;
  right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.container,
.container-fluid {
  max-width: 100%;
}

/* Tables / wide content */
table {
  max-width: 100%;
}

.table-responsive,
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Buttons and inputs shouldn't overflow */
button, .btn, input, select, textarea {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .hero-section-text {
    padding-top: 120px !important;
  }

  .hero-text h1 {
    width: 100% !important;
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    margin-bottom: 1rem !important;
  }

  .hero-text h5 {
    font-size: clamp(1rem, 3.5vw, 1.4rem) !important;
    padding-bottom: 1.5rem !important;
  }

  ul.theme-list li {
    font-size: 1rem !important;
  }

  section, .row {
    max-width: 100%;
  }

  /* Decorative hero blobs on marketing pages */
  .pricing-hero::before,
  .dc-hero::before,
  .dc-hero::after,
  .sell-hero::before,
  .contact-hero::before,
  .blog-hero::before,
  .stories-hero::before {
    width: min(500px, 80vw) !important;
    height: min(500px, 80vw) !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section-text {
    padding-top: 90px !important;
  }

  .ppage__grid,
  .dc-grid,
  .pricing-grid,
  .pricing-grid-onetime,
  .pricing-grid-monthly {
    grid-template-columns: 1fr !important;
  }

  nav[role="navigation"] a[rel="prev"],
  nav[role="navigation"] a[rel="next"] {
    min-width: 0 !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }

  .ppage__hero-main {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }

  .ppage__actions .ppage__btn,
  .ppage__btn {
    width: 100%;
    justify-content: center;
  }

  .auth-card,
  .login-form-wrap,
  .register-form-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  form .row > [class*="col-"] {
    margin-bottom: 0.75rem;
  }

  .listing-filters,
  .filter-sidebar,
  .list-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sell-hero h1,
  .contact-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }
}

@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}
