.taxautomate-language-switch {
  font-family: Arial, sans-serif;
}

.taxautomate-language-switch--header {
  position: relative;
  z-index: 140;
  display: block;
  flex: 0 0 auto;
  color: #294a83;
}

.taxautomate-language-switch--header > summary {
  display: flex;
  min-width: 68px;
  min-height: 40px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(41, 74, 131, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #294a83;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 5px 16px rgba(41, 74, 131, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.taxautomate-language-switch--header > summary::-webkit-details-marker {
  display: none;
}

.taxautomate-language-switch--header > summary:hover,
.taxautomate-language-switch--header > summary:focus-visible,
.taxautomate-language-switch--header[open] > summary {
  border-color: rgba(41, 74, 131, 0.6);
  outline: none;
  box-shadow: 0 7px 20px rgba(41, 74, 131, 0.13);
}

.taxautomate-language-switch--header > summary:active {
  transform: translateY(1px);
}

.taxautomate-language-switch--header > summary > strong {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.taxautomate-language-icon {
  position: relative;
  display: block;
  width: 20px !important;
  height: 20px !important;
  background: transparent !important;
  color: currentColor;
}

.taxautomate-language-icon b,
.taxautomate-language-icon small {
  position: absolute;
  line-height: 1;
}

.taxautomate-language-icon b {
  left: 1px;
  top: 1px;
  font-size: 13px;
}

.taxautomate-language-icon small {
  right: 0;
  bottom: 0;
  font-size: 9px;
  font-weight: 900;
}

.taxautomate-language-switch--header > summary > i {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.taxautomate-language-switch--header[open] > summary > i {
  margin-top: 3px;
  transform: rotate(225deg);
}

.taxautomate-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 164px;
  padding: 7px;
  border: 1px solid rgba(34, 39, 34, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(35, 28, 22, 0.17);
}

.taxautomate-language-switch--header .taxautomate-language-menu button {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  color: #4f534d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.taxautomate-language-switch--header .taxautomate-language-menu button small {
  color: #7b817a;
  font-size: 10px;
  font-weight: 900;
}

.taxautomate-language-switch--header .taxautomate-language-menu button[aria-pressed="true"] {
  background: #edf4fb;
  color: #1f5d9c;
}

html[lang^="es"] body {
  overflow-x: hidden;
}

html[lang^="es"] [class*="hero"] h1,
html[lang^="es"] .hero h1 {
  font-size: clamp(38px, 4.2vw, 60px) !important;
  line-height: 1.02 !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}

html[lang^="es"] [class*="hero"] h1 span,
html[lang^="es"] .hero h1 span {
  max-width: 100%;
  white-space: normal !important;
}

.taxautomate-language-switch:not(.taxautomate-language-switch--header) span {
  width: 1px;
  height: 18px;
  background: #ded7d0;
}

.taxautomate-language-switch:not(.taxautomate-language-switch--header) button {
  min-width: 36px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #676c66;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.taxautomate-language-switch:not(.taxautomate-language-switch--header) button:hover,
.taxautomate-language-switch:not(.taxautomate-language-switch--header) button:focus-visible,
.taxautomate-language-switch--header .taxautomate-language-menu button:hover,
.taxautomate-language-switch--header .taxautomate-language-menu button:focus-visible {
  color: #bd4600;
  outline: 2px solid rgba(232, 93, 4, 0.3);
  outline-offset: 1px;
}

.taxautomate-language-switch:not(.taxautomate-language-switch--header) button[aria-pressed="true"] {
  background: #222722;
  color: #fff;
}

@media (max-width: 640px) {
  .site-header .nav > .taxautomate-language-switch--header {
    margin-left: auto;
  }

  .site-header .nav > .taxautomate-language-switch--header + .global-mobile-toggle,
  .site-header .nav > .taxautomate-language-switch--header + .mobile-toggle {
    margin-left: 0;
  }

  .taxautomate-language-switch--header > summary {
    min-width: 54px;
    min-height: 38px;
    padding-inline: 8px;
    gap: 5px;
  }

  .taxautomate-language-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .taxautomate-language-switch--header > summary > i {
    display: none;
  }
}
