html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-nav-height: 60px;
  --mobile-nav-bottom: 1rem;
  --mobile-nav-gap: 12px;
  --mobile-nav-clearance: calc(var(--mobile-safe-bottom) + var(--mobile-nav-height) + var(--mobile-nav-bottom) + var(--mobile-nav-gap));
  --mobile-map-standalone-extra: 0px;
}

.bg-brand,
.hover\:bg-brand:hover {
  background-color: #ff5722;
}

.text-brand,
.hover\:text-brand:hover {
  color: #ff5722;
}

.border-brand,
.focus\:border-brand:focus {
  border-color: #ff5722;
}

.ring-brand\/20,
.focus\:ring-brand\/20:focus {
  --tw-ring-color: rgb(255 87 34 / 0.2);
}

img,
video,
canvas,
iframe,
object,
embed {
  max-width: 100%;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  #mobile-bottom-nav {
    bottom: calc(var(--mobile-safe-bottom) + var(--mobile-nav-bottom));
  }

  body:not(.page-map):not(.page-messages) {
    overflow-x: hidden;
  }

  .w-\[calc\(100\%\+2rem\)\],
  .w-\[calc\(100\%\+3rem\)\],
  .w-screen {
    max-width: 100vw;
  }

  .max-w-\[90vw\],
  .max-w-\[85\%\] {
    max-width: 100%;
  }

  .text-\[8px\],
  .text-\[9px\],
  .text-\[10px\] {
    font-size: 11px;
    line-height: 1rem;
  }

  .text-\[11px\] {
    font-size: 12px;
    line-height: 1rem;
  }

  button,
  input,
  select,
  textarea,
  [role="button"] {
    min-height: 40px;
  }

  button:not(.no-mobile-min-width),
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"] {
    min-width: 40px;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  body {
    --mobile-map-standalone-extra: 56px;
    --mobile-nav-clearance: calc(var(--mobile-safe-bottom) + var(--mobile-nav-height) + var(--mobile-nav-bottom) + var(--mobile-nav-gap) + var(--mobile-map-standalone-extra));
  }
}
