.custom_btn {
  margin-top: 35px;
}


.input-box {
  position: relative;
}


.button-box {
  position: relative;
}


/* intl-tel-input wraps input[name="phone_raw"] in a new .iti div that
   becomes the actual grid item, so the span-2 class on the original
   input no longer applies to layout. Mirror it onto the wrapper. */
@media (width>=40rem) {
  .signup_form .iti {
    grid-column: span 2 / span 2;
  }
}
.logo {
  max-width: 30px;
  display: inline-block;

}

/* Logo: center the image, the text and the trailing dot on one axis */
a .flex > .font-display.tracking-\[0\.18em\] {
  display: inline-flex;
  align-items: center;
}

a .flex > .font-display.tracking-\[0\.18em\] .logo {
  display: block;
}

a .flex.items-center.gap-1 > .h-1\.5.w-1\.5.bg-primary {
  transform: translateY(2px);
}

@media screen and (max-width: 375px) {
  section .max-w-4xl {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  section .font-display.text-\[1\.9rem\] {
    font-size: 1.2rem !important;
  }

  section .text-\[15\.5px\] {
    font-size: 13px !important;
  }

  section .flex.size-full.flex-col.justify-end {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  section .p-6 {
    padding: 8px !important;
  }
}

@media screen and (max-width: 320px) {
  section .font-display.text-\[1\.9rem\] {
    font-size: 1rem !important;
  }

  section .text-\[15\.5px\] {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  section .max-w-4xl {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}
/* Header bar: keep logo, CTA and language switcher on one line on mobile */
@media screen and (max-width: 767px) {
  header > div > div {
    flex-wrap: nowrap;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  header > div > div > a:first-child {
    min-width: 0;
  }

  header .font-display.tracking-\[0\.18em\] {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.08em;
  }

  header > div > div button {
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    letter-spacing: 0.12em;
  }

  header .language-dropdown {
    flex-shrink: 0;
  }
}

/* Narrow phones: tighten the header bar so logo, CTA and switcher never overlap */
@media screen and (max-width: 400px) {
  header > div > div {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  header > div > div > a,
  header a .flex.items-center.gap-1 > .h-1\.5.w-1\.5.bg-primary {
    flex-shrink: 0;
  }

  header .font-display.tracking-\[0\.18em\] {
    letter-spacing: 0.02em;
  }

  header .logo {
    max-width: 26px;
  }

  header > div > div button {
    padding-left: 10px;
    padding-right: 10px;
    letter-spacing: 0.08em;
  }

  header .language-dropdown {
    margin-left: 0;
  }

  header .lang-pill {
    padding: 4px;
  }
}

/* Tabs bar (Mercado / Libro de órdenes / Flujo): longer ES labels
   must not overflow the container — scroll horizontally instead */
.my-horizontal-box {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.my-horizontal-box::-webkit-scrollbar {
  display: none;
}

.my-horizontal-box > button {
  flex-shrink: 0;
  white-space: nowrap;
}

@media screen and (max-width: 400px) {
  .my-horizontal-box > button {
    padding-left: 8px;
    padding-right: 8px;
    letter-spacing: 0.12em;
  }
}
