/* Keep the header stable while adding the language switcher. */
.header .header-actions {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  width: auto;
  white-space: nowrap;
  line-height: 1;
}

.header .header-tel {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.header .header-language {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header .header-language i,
.header .header-language span {
  display: inline-block;
  color: inherit;
}

.header .header-language i {
  font-size: 16px;
}

.header .header-language:hover {
  background-color: #05aa73;
  border-color: #05aa73;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (min-width: 992px) {
  .header .navbar > .container {
    flex-wrap: nowrap;
  }

  .header .navbar-collapse {
    display: flex;
    align-items: center;
    flex-basis: auto;
    flex-grow: 1;
    min-width: 0;
  }

  .header .header-navbar {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-left: 0 !important;
    margin-right: auto !important;
    min-width: 0;
    white-space: nowrap;
  }

  .header .header-navbar li,
  .header .header-navbar .nav-link {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .header .header-navbar li {
    padding-left: 6px;
    padding-right: 6px;
  }

  .header .header-navbar .nav-link {
    padding-left: 4px;
    padding-right: 4px;
  }

  .header .header-tel {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .header .header-actions {
    flex: 0 0 auto;
  }

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

@media (min-width: 992px) and (max-width: 1199.98px) {
  .header .header-navbar .nav-link {
    font-size: 13px;
  }

  .header .header-navbar li {
    padding-left: 2px;
    padding-right: 2px;
  }

  .header .header-tel {
    padding-left: 6px;
    padding-right: 8px;
    font-size: 13px;
  }

  .header .header-actions {
    gap: 6px;
  }

  .header .header-language {
    min-width: 62px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}

@media (max-width: 991.98px) {
  .header .header-actions {
    justify-content: flex-start;
    padding: 12px 0;
  }

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