/*
  ============================================================
  GRFTSH SPOKEN LANGUAGES V1
  ============================================================
*/

.profile-spoken-languages {
  display: grid;
  gap: 11px;
}

.profile-spoken-languages-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-spoken-languages-heading label {
  margin: 0;
}

.profile-spoken-languages-count {
  flex: 0 0 auto;
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 700;
}

.profile-spoken-languages-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-spoken-languages-selected:empty {
  display: none;
}

.profile-spoken-language-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border:
    1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background:
    rgba(255,255,255,.035);
  color: #f2f2f2;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.profile-spoken-language-chip:hover {
  border-color:
    rgba(255,255,255,.20);
  background:
    rgba(255,255,255,.065);
}

.profile-spoken-language-remove {
  color: #969696;
  font-size: 16px;
  line-height: 1;
}

.profile-spoken-language-add {
  width: 100%;
}

.profile-spoken-language-add:disabled {
  opacity: .5;
}

.profile-spoken-languages-help {
  color: #888;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 699px) {
  .profile-spoken-languages {
    gap: 10px;
  }

  .profile-spoken-language-chip {
    min-height: 36px;
    padding: 0 11px;
  }
}

/* GRFTSH SPOKEN LANGUAGES V1 */


/* GRFTSH PROFILE LANGUAGE SYNC V1 */

#profile-spoken-language-add,
.profile-spoken-language-add {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 38px 0 12px;
  border: 1px solid var(--border, #292929);
  border-radius: 12px;
  background-color: var(--surface-2, #111);
  color: var(--text, #f4f4f4);
  color-scheme: dark;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

#profile-spoken-language-add:focus,
.profile-spoken-language-add:focus {
  outline: none;
  border-color: rgba(255,255,255,.34);
}

#profile-spoken-language-add option,
.profile-spoken-language-add option {
  background: #111;
  color: #f4f4f4;
}

#profile-spoken-language-add option:disabled,
.profile-spoken-language-add option:disabled {
  color: #686868;
}

#profile-spoken-language-add:disabled,
.profile-spoken-language-add:disabled {
  opacity: .48;
  cursor: not-allowed;
}

@media (max-width: 699px) {
  #profile-spoken-language-add,
  .profile-spoken-language-add {
    min-height: 46px;
    font-size: 16px;
  }
}

/* GRFTSH PROFILE LANGUAGE SYNC V1 */

/* GRFTSH SPOKEN LANGUAGES CUSTOM SELECT V1 */

.profile-spoken-language-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.profile-spoken-language-custom {
  position: relative;
  width: 100%;
}

.profile-spoken-language-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #111;
  color: #f4f4f4;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.profile-spoken-language-trigger:hover,
.profile-spoken-language-trigger:focus-visible {
  border-color: rgba(255,255,255,.30);
}

.profile-spoken-language-trigger:focus-visible {
  outline: 2px solid rgba(255,255,255,.16);
  outline-offset: 2px;
}

.profile-spoken-language-trigger:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.profile-spoken-language-trigger-chevron {
  flex: 0 0 auto;
  color: #8f8f8f;
  font-size: 17px;
  line-height: 1;
  transition: transform .16s ease;
}

.profile-spoken-language-trigger[aria-expanded="true"]
.profile-spoken-language-trigger-chevron {
  transform: rotate(180deg);
}

.profile-spoken-language-menu {
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  max-height: min(320px, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border: 1px solid #2d2d2d;
  border-radius: 14px;
  background: #101010;
  box-shadow:
    0 18px 50px rgba(0,0,0,.62);
  -webkit-overflow-scrolling: touch;
}

.profile-spoken-language-menu[hidden] {
  display: none !important;
}

.profile-spoken-language-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #f2f2f2;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.profile-spoken-language-option:hover,
.profile-spoken-language-option:focus-visible {
  background: rgba(255,255,255,.075);
  outline: none;
}

.profile-spoken-language-option small {
  flex: 0 0 auto;
  color: #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}

.profile-spoken-language-option:disabled {
  color: #5f5f5f;
  cursor: default;
}

.profile-spoken-language-option:disabled small {
  color: #4e4e4e;
}

@media (max-width: 699px) {
  .profile-spoken-language-trigger {
    min-height: 48px;
    font-size: 16px;
  }

  .profile-spoken-language-menu {
    max-height: 42vh;
  }

  .profile-spoken-language-option {
    min-height: 46px;
    font-size: 15px;
  }
}

/* GRFTSH SPOKEN LANGUAGES CUSTOM SELECT V1 */
