/* Keep the Porto trigger's typography when using a native button. */
.switcher-language button.switcher-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
}
.switcher-language button.switcher-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .page-header .panel.header:has(#switcher-language .switcher-options.active) {
    z-index: 7;
  }
  .page-header .panel.header #switcher-language {
    align-items: center;
    display: inline-flex;
    float: none;
    height: 34px;
    left: 15px;
    margin: 0;
    position: absolute !important; /* Porto forces this container to position: static. */
    top: 0;
    z-index: 6;
  }
  .page-header .panel.header #switcher-language .switcher-options {
    display: block;
    position: relative;
  }
  .page-header .panel.header #switcher-language .switcher-trigger {
    align-items: center;
    display: inline-flex;
    gap: 3px;
    min-height: 32px;
    min-width: 40px;
  }
  .page-header .panel.header #switcher-language .switcher-dropdown {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 3px 7px rgb(0 0 0 / 15%);
    left: 0;
    list-style: none;
    margin: 0;
    min-width: 115px;
    padding: 3px 0;
    position: absolute;
    right: auto;
    top: 100%;
    z-index: 2;
  }
  .page-header .panel.header #switcher-language .switcher-option {
    display: block;
    margin: 0;
  }
  .page-header .panel.header #switcher-language .switcher-option a {
    color: #333;
    display: block;
    line-height: 1.4;
    padding: 10px 12px;
  }
}
