/* THAI FINANCE - Shared mobile UI styles */
/* UI demonstration only */

:root {
  --app-primary: #086bd5;
  --app-primary-dark: #0752aa;
  --app-background: #f3f9ff;
  --app-text: #17345d;
  --app-muted: #8191a7;
  --app-radius: 18px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input {
  font-family: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #58a8ff;
  outline-offset: 3px;
}

.nav {
  z-index: 100;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.nav a {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav a:active,
.action:active,
.item:active,
.option:active {
  opacity: .75;
}

@media (max-width: 360px) {
  .nav a {
    font-size: 11px;
  }

  .amount {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* THAI APP STEP 34 NAVIGATION */
.nav {
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.nav a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  color: #647995;
  font-size: 12px;
  text-align: center;
}
.nav a.active {
  color: #086bd5;
  font-weight: 700;
}
.nav a span {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}
