.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav-partner {
  display: none;
}

.locale-picker {
  position: relative;
}

.locale-trigger {
  min-width: 72px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(244, 240, 231, 0.14);
  border-radius: 5px;
  background: rgba(7, 8, 6, 0.58);
  color: rgba(244, 240, 231, 0.78);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.locale-trigger:hover,
.locale-trigger[aria-expanded="true"] {
  border-color: rgba(230, 189, 103, 0.48);
  background: rgba(16, 18, 15, 0.94);
  color: var(--paper);
}

.locale-flag {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.locale-flag img,
.locale-option-flag img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.locale-code {
  font-size: 0.7rem;
  font-weight: 600;
}

.locale-chevron {
  position: relative;
  top: -1px;
  color: rgba(244, 240, 231, 0.42);
  font-size: 0.7rem;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 104px;
  padding: 6px;
  border: 1px solid rgba(244, 240, 231, 0.13);
  border-radius: 6px;
  background: rgba(7, 8, 6, 0.97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.locale-menu[hidden] {
  display: none;
}

.locale-option {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(244, 240, 231, 0.7);
  font-size: 0.7rem;
  text-align: left;
  cursor: pointer;
}

.locale-option:hover,
.locale-option:focus-visible,
.locale-option[aria-checked="true"] {
  background: rgba(230, 189, 103, 0.09);
  color: var(--gold-light);
}

.locale-option-flag {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-tools {
    gap: 10px;
  }

  .site-nav .nav-partner {
    display: block;
    color: var(--gold-light);
  }
}

@media (max-width: 760px) {
  .locale-trigger {
    min-width: 68px;
    height: 36px;
    padding-inline: 7px;
  }

  .locale-menu {
    right: -50px;
  }
}
