.language-switcher {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  width: 90px;
  height: 38px;
  padding: 0 24px 0 32px;
  border: 1px solid rgba(8, 124, 75, 0.22);
  border-radius: 999px;
  color: #145a3b;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  font: 700 11px/1 "IBM Plex Sans", Arial, sans-serif;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin-left: 4px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.language-switcher::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 16px;
  height: 11px;
  border-radius: 1px;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.language-switcher[data-language="id"]::before {
  background-image: url("../assets/flag-indonesia.svg");
}

.language-switcher[data-language="en"]::before {
  background-image: url("../assets/flag-united-kingdom.svg");
}

.language-switcher::after {
  position: absolute;
  top: calc(50% - 3px);
  right: 11px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #087c4b;
  border-bottom: 1.5px solid #087c4b;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.language-switcher:hover {
  border-color: rgba(8, 124, 75, 0.52);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(8, 124, 75, 0.12);
  transform: translateY(-1px);
}

.language-switcher:focus-within {
  outline: 2px solid #d08a00;
  outline-offset: 2px;
}

.language-label {
  display: inline-flex;
  align-items: center;
  height: 11px;
  font-size: 11px;
  line-height: 11px;
  white-space: nowrap;
  pointer-events: none;
}

.language-select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.hero .language-switcher {
  color: #163327;
  border-color: rgba(8, 124, 75, 0.18);
}

.site-header > .language-switcher {
  margin-left: 0;
}

@media (max-width: 960px) {
  .language-switcher {
    margin-left: auto;
  }

  .header-actions .language-switcher {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .language-switcher {
    width: 88px;
    height: 36px;
  }

  .language-switcher::before {
    left: 9px;
  }

  .language-switcher::after {
    right: 10px;
  }

}
