/* TicketsFest.EU v10.1.16 — language control integrated into desktop navigation.
 * Uses a dedicated class so legacy .tfe-lang-switcher pill styles in header.css
 * cannot create a white/grey container around the control.
 */
.tfe-language-control {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tfe-language-control details {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tfe-language-control summary {
  appearance: none;
  -webkit-appearance: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 9px 10px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50px;
  box-shadow: none !important;
  color: var(--h-text, #172033);
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.tfe-language-control summary::-webkit-details-marker { display: none; }
.tfe-language-control summary::marker { content: ''; }

.tfe-language-control summary:hover,
.tfe-language-control details[open] > summary {
  background: rgba(29, 78, 216, .07) !important;
  color: var(--h-primary, #1d4ed8);
}

.tfe-language-control summary:focus-visible {
  outline: 2px solid rgba(29, 78, 216, .30);
  outline-offset: 2px;
}

.tfe-language-control summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  opacity: .72;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
  transition: transform .16s ease;
}

.tfe-language-control details[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.tfe-language-control .tfe-lang-menu {
  position: absolute;
  z-index: 99999;
  right: 0;
  top: calc(100% + 10px);
  width: 238px;
  max-height: min(420px, 65vh);
  overflow: auto;
  margin: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
}

.tfe-language-control .tfe-lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  color: #172033;
  text-decoration: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.tfe-language-control .tfe-lang-menu a:hover { background: #f5f7fb; }
.tfe-language-control .tfe-lang-menu a.is-active { background: #eef4ff; color: #155eef; }
.tfe-language-control .tfe-lang-menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfe-language-control .tfe-lang-menu-code { font-size: 11px; opacity: .55; font-weight: 800; letter-spacing: .04em; }

/* Header already has a 16px flex gap. Do not add a second artificial spacer. */
.tfe-language-control + .tfe-header-cta { margin-left: 0 !important; }

@media (max-width: 1180px) {
  .tfe-language-control summary {
    padding: 8px 8px;
    font-size: 13px;
  }
}
