html,
body,
#root {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
}

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

#root img,
#root svg,
#root video,
#root canvas {
  max-width: 100%;
}

#root h1,
#root h2,
#root h3,
#root p,
#root li,
#root span,
#root a,
#root button,
#root label,
#root input,
#root textarea,
#root select {
  min-width: 0;
}

.afr-pricing-note {
  margin-top: 1rem;
  max-width: 46rem;
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  background: #eff6ff;
  padding: 0.9rem 1rem;
  color: #0a3d91;
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.55;
}

.afr-file-helper {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
  flex-basis: 100%;
  align-self: stretch;
  justify-self: stretch;
  border-radius: 1rem;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  padding: 0.85rem;
}

.afr-file-helper__title {
  margin: 0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.afr-file-helper__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.afr-file-helper__chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 0.28rem 0.52rem;
  color: #0a3d91;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.afr-file-helper__note {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.55;
}

@media (max-width: 768px) {
  #root {
    width: 100%;
  }

  #root section,
  #root main,
  #root footer,
  #root header,
  #root [class*="max-w-7xl"],
  #root [class*="max-w-"],
  #root [class*="min-h-"],
  #root [class*="rounded-"] {
    max-width: 100%;
  }

  #root [class*="mx-auto"] {
    margin-left: auto;
    margin-right: auto;
  }

  #root [class*="grid"] {
    min-width: 0;
  }

  #root h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.5vw, 2.85rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  #root h2 {
    max-width: 100%;
    font-size: clamp(1.35rem, 6vw, 2rem) !important;
    line-height: 1.16 !important;
  }

  #root p,
  #root li,
  #root label,
  #root input,
  #root textarea,
  #root select {
    max-width: 100%;
  }

  #root .inline-flex {
    max-width: 100%;
  }

  #root a,
  #root button {
    white-space: normal;
  }

  #root [class*="grid-cols-"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #root [class*="w-[560px]"],
  #root [class*="w-[520px]"],
  #root [class*="w-[420px]"] {
    width: min(100%, 22rem) !important;
  }

  #root [class*="px-4"] {
    padding-left: clamp(1rem, 4vw, 1.25rem);
    padding-right: clamp(1rem, 4vw, 1.25rem);
  }

  #root [class*="gap-9"] {
    gap: 1rem;
  }
}

@media (max-width: 430px) {
  #root h1 {
    font-size: clamp(1.95rem, 8vw, 2.35rem) !important;
  }

  #root .text-4xl,
  #root .text-5xl,
  #root .text-6xl,
  #root .text-7xl {
    font-size: clamp(1.95rem, 8vw, 2.35rem) !important;
  }

  #root [class*="px-6"],
  #root [class*="px-8"],
  #root [class*="px-10"],
  #root [class*="px-14"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #root [class*="py-7"],
  #root [class*="py-8"],
  #root [class*="py-10"],
  #root [class*="py-12"] {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }
}
