/* TechLine Language Switch */

.tlls-switch-wrap {
  display: flex;
  width: 100%;
  align-items: center;
}

.tlls-switch {
  --tlls-w: 4rem;
  --tlls-h: 2rem;
  --tlls-radius: 999px;
  --tlls-bg: transparent;
  --tlls-bg-hover: rgba(35, 143, 153, 0.08);
  --tlls-text: #5c5c5c;
  --tlls-text-active: #0a0a0a;
  --tlls-border: rgba(0, 0, 0, 0.08);
  --tlls-menu-bg: #ffffff;
  --tlls-menu-border: transparent;
  --tlls-menu-border-width: 0px;
  --tlls-menu-text: #5c5c5c;
  --tlls-menu-text-active: #0a0a0a;
  --tlls-menu-item-hover: rgba(35, 143, 153, 0.1);
  --tlls-menu-radius: 10px;
  --tlls-menu-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  --tlls-menu-w: 12rem;
  --tlls-transform: none;
  --tlls-ease: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  font-family: inherit;
}

.tlls-switch.is-open {
  z-index: 1400;
}

/* Beat theme / Elementor global button styles (often accent/red). */
.elementor-widget-tlls-lang-switch .tlls-switch__trigger,
.elementor-widget-tlls-lang-switch .tlls-switch__opt,
.tlls-switch__trigger,
.tlls-switch__opt {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  outline: none;
}

.tlls-switch__trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: var(--tlls-w);
  min-width: var(--tlls-w);
  height: var(--tlls-h);
  min-height: var(--tlls-h);
  margin: 0;
  padding: 0 0.55rem;
  border-radius: var(--tlls-radius);
  border: 1px solid var(--tlls-border) !important;
  background: var(--tlls-bg) !important;
  background-color: var(--tlls-bg) !important;
  color: var(--tlls-text) !important;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1;
  transition:
    color 0.2s var(--tlls-ease),
    background 0.2s var(--tlls-ease),
    border-color 0.2s var(--tlls-ease);
}

.tlls-switch__trigger:hover,
.tlls-switch__trigger:focus,
.tlls-switch.is-open .tlls-switch__trigger {
  color: var(--tlls-text-active) !important;
  background: var(--tlls-bg-hover) !important;
  background-color: var(--tlls-bg-hover) !important;
}

.tlls-switch__value {
  line-height: 1;
  color: inherit;
  text-transform: var(--tlls-transform);
}

.tlls-switch__flag {
  font-size: 0.95em;
  line-height: 1;
}

.tlls-switch__chevron {
  flex-shrink: 0;
  opacity: 0.72;
  color: inherit;
  transition: transform 0.2s var(--tlls-ease);
}

.tlls-switch.is-open .tlls-switch__chevron {
  transform: rotate(180deg);
}

.tlls-switch__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  z-index: 1400;
  box-sizing: border-box;
  min-width: var(--tlls-menu-w);
  width: var(--tlls-menu-w);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  border-radius: var(--tlls-menu-radius);
  border: var(--tlls-menu-border-width) solid var(--tlls-menu-border);
  background: var(--tlls-menu-bg);
  box-shadow: var(--tlls-menu-shadow);
}

.tlls-switch__menu--right { right: 0; left: auto; }
.tlls-switch__menu--left { left: 0; right: auto; }
.tlls-switch__menu[hidden] { display: none !important; }

.tlls-switch__menu > li {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}

.tlls-switch__opt {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--tlls-text) !important;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s var(--tlls-ease),
    background 0.2s var(--tlls-ease);
}

.tlls-switch__menu .tlls-switch__opt {
  color: var(--tlls-menu-text, var(--tlls-text)) !important;
}

.tlls-switch__opt:hover,
.tlls-switch__opt:focus,
.tlls-switch__opt.is-active,
.tlls-switch__opt[aria-selected="true"] {
  color: var(--tlls-text-active) !important;
  background: var(--tlls-bg-hover) !important;
  background-color: var(--tlls-bg-hover) !important;
  font-weight: 600;
}

.tlls-switch__menu .tlls-switch__opt:hover,
.tlls-switch__menu .tlls-switch__opt:focus,
.tlls-switch__menu .tlls-switch__opt.is-active,
.tlls-switch__menu .tlls-switch__opt[aria-selected="true"] {
  color: var(--tlls-menu-text-active, var(--tlls-text-active)) !important;
  background: var(--tlls-menu-item-hover, var(--tlls-bg-hover)) !important;
  background-color: var(--tlls-menu-item-hover, var(--tlls-bg-hover)) !important;
}

.tlls-switch__opt-label {
  text-transform: none;
  color: inherit;
}

.tlls-switch--compact .tlls-switch__opt-label,
.tlls-switch--dropdown .tlls-switch__value {
  text-transform: var(--tlls-transform);
}

/* Pills / buttons */
.tlls-switch--pills,
.tlls-switch--buttons {
  display: inline-flex;
}

.tlls-switch__row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: inherit;
}

.tlls-switch--pills {
  padding: 0.2rem;
  border: 1px solid var(--tlls-border);
  border-radius: var(--tlls-radius);
  background: var(--tlls-bg);
  gap: 0.2rem;
}

.tlls-switch--pills .tlls-switch__opt,
.tlls-switch--buttons .tlls-switch__opt {
  width: auto;
  height: var(--tlls-h);
  min-height: var(--tlls-h);
  padding: 0 0.75rem;
  border: 1px solid transparent !important;
  border-radius: var(--tlls-radius);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tlls-switch--buttons .tlls-switch__opt {
  border-color: var(--tlls-border) !important;
  background: var(--tlls-bg) !important;
  background-color: var(--tlls-bg) !important;
}

.tlls-switch--pills .tlls-switch__opt-label,
.tlls-switch--buttons .tlls-switch__opt-label {
  text-transform: var(--tlls-transform);
}

html[data-theme="dark"] .tlls-switch {
  --tlls-text: #b0b0b0;
  --tlls-text-active: #f5f5f5;
  --tlls-border: rgba(255, 255, 255, 0.12);
  --tlls-bg-hover: rgba(255, 255, 255, 0.08);
  --tlls-menu-bg: #1e1e1e;
  --tlls-menu-border: transparent;
  --tlls-menu-text: #b0b0b0;
  --tlls-menu-text-active: #f5f5f5;
  --tlls-menu-item-hover: rgba(255, 255, 255, 0.08);
  --tlls-menu-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
