.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* Keep brand names, language codes, and product identifiers out of Google Translate */
.notranslate,
.notranslate * {
  -webkit-translate: no;
  translate: no;
}

.lang-switcher {
  position: relative;
  z-index: 30;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 92px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lang-switcher-toggle:hover,
.lang-switcher-toggle:focus-visible {
  background: #0f172a;
  outline: none;
}

.lang-flag-icon {
  width: 22px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Crect fill='%23b22234' width='22' height='15'/%3E%3Cpath stroke='%23fff' stroke-width='1.2' d='M0 2.5h22M0 5h22M0 7.5h22M0 10h22M0 12.5h22'/%3E%3Crect fill='%233c3b6e' width='9' height='7'/%3E%3C/svg%3E");
}

.flag-es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Crect fill='%23c60b1e' width='22' height='15'/%3E%3Crect fill='%23ffc400' y='3.75' width='22' height='7.5'/%3E%3C/svg%3E");
}

.flag-pt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Crect fill='%23006600' width='9' height='15'/%3E%3Crect fill='%23ff0000' x='9' width='13' height='15'/%3E%3Ccircle fill='%23ffdb4d' cx='9' cy='7.5' r='2.3'/%3E%3C/svg%3E");
}

.flag-fr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Crect fill='%23002395' width='7.3' height='15'/%3E%3Crect fill='%23fff' x='7.3' width='7.4' height='15'/%3E%3Crect fill='%23ed2939' x='14.7' width='7.3' height='15'/%3E%3C/svg%3E");
}

.flag-it {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Crect fill='%23009246' width='7.3' height='15'/%3E%3Crect fill='%23fff' x='7.3' width='7.4' height='15'/%3E%3Crect fill='%23ce2b37' x='14.7' width='7.3' height='15'/%3E%3C/svg%3E");
}

.flag-de {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Crect fill='%23000' width='22' height='5'/%3E%3Crect fill='%23dd0000' y='5' width='22' height='5'/%3E%3Crect fill='%23ffce00' y='10' width='22' height='5'/%3E%3C/svg%3E");
}

.lang-code {
  font-size: 14px;
  letter-spacing: 0.06em;
}

.lang-caret {
  width: 0;
  height: 0;
  margin-left: auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 95;
  min-width: 148px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #d1d5db;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.16);
}

.lang-switcher-menu li + li {
  border-top: 1px solid #e5e7eb;
}

.lang-switcher-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  text-align: left;
}

.lang-switcher-menu button:hover,
.lang-switcher-menu button:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.lang-switcher-menu button.is-active {
  background: #111827;
  color: #fff;
}

body {
  top: 0 !important;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-gadget-icon,
.goog-te-menu-value,
.goog-te-combo,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.skiptranslate iframe {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

@media (max-width: 820px) {
  .header-actions {
    gap: 8px;
  }

  .lang-switcher-toggle {
    min-width: 78px;
    min-height: 40px;
    padding: 8px 10px;
    gap: 8px;
  }

  .lang-code {
    display: inline;
    font-size: 13px;
  }
}
