/*!
 * VILLAGE v0.0.3 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@charset "UTF-8";

/* ¯¯¯¯¯¯¯¯¯ *\
  TRANSLATE
\* ˍˍˍˍˍˍˍˍˍ */
.village-translate {
  --rows: 8;
  position: relative;
}

.village-translate .village-translate__btn {
  font-size: 1rem;
  line-height: 1.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  overflow: initial;
  max-width: 100%;
  max-height: none;
  font-weight: 500;
  min-height: 3rem;
  width: 100%;
}

.village-translate .village-translate__btn::before {
  --icon-size: 1rem;
  margin-left: -0.125rem;
  margin-right: 0.5rem;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
  background-color: currentColor;
  width: var(--icon-size);
  height: var(--icon-size);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("../../icons/editor/translate-2.svg");
  mask-image: url("../../icons/editor/translate-2.svg");
  content: "";
}

.village-translate .village-translate__btn::after {
  transition: transform 0.3s;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
  background-color: currentColor;
  width: var(--icon-size);
  height: var(--icon-size);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("../../icons/system/arrow-down-s-line.svg");
  mask-image: url("../../icons/system/arrow-down-s-line.svg");
  --icon-size: 1rem;
  content: "";
  margin-left: auto;
}

.village-translate .village-translate__btn[aria-expanded=true]::after {
  transform: rotate(-180deg);
}

.village-translate__language {
  white-space: nowrap;
}

.village-translate__language[aria-current]:not([aria-current=false]) {
  display: none;
}

.village-translate__menu {
  margin: 0;
}

.village-translate .village-nav__item::before {
  content: none;
}

.village-translate .village-menu__list {
  width: auto;
  padding: 0;
}

.village-translate .village-translate__btn[aria-expanded=true] {
  color: var(--text-active-village-primary);
  background-color: var(--background-open-village-primary);

  --idle: transparent;
  --hover: var(--background-open-village-primary-hover);
  --active: var(--background-open-village-primary-active);
}

.village-translate .village-translate__btn[aria-expanded=true]:hover {
  background-color: var(--hover-tint);
}

.village-translate .village-translate__btn[aria-expanded=true]:active {
  background-color: var(--active-tint);
}

.village-translate__menu .village-translate__language {
  box-shadow: none;
}
@media (min-width: 36em) {
  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */
}
@media (min-width: 62em) {
  /*! media lg */
  .village-translate .village-translate__btn {
    min-height: auto;
    width: auto;
    font-size: 0.875rem;
    line-height: 1.5rem;
    padding: 0.25rem 0.75rem;
  }

  .village-translate .village-translate__btn::after {
    margin-left: 0.25rem;
    margin-right: -0.25rem;
  }

  .village-translate .village-translate__btn::before {
    --icon-size: 1rem;
  }

  .village-translate__language[aria-current]:not([aria-current=false]) {
    display: inline-flex;
  }

  .village-translate__menu {
    margin: -0.25rem -1rem 0;
  }

  .village-translate .village-menu__list {
    display: grid;
    grid-template-rows: repeat(var(--rows), auto);
    grid-auto-flow: column;
  }

  .village-btns-group .village-translate__menu {
    margin: -1.25rem -0.75rem 0;
  }
}
@media (min-width: 78em) {
  /*! media xl */
}
