/**
 * SM Investments Corporation - Language Switcher Styles
 */
.i18n-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: 'Henry Sans', 'Helvetica Neue', Arial, sans-serif;
  user-select: none;
}

.i18n-switcher__current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #000f73;
  color: #ffffff;
  border: 2px solid #000f73;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 15, 115, 0.25);
  white-space: nowrap;
  min-width: 110px;
  justify-content: center;
}

.i18n-switcher__current:hover {
  background: #00158a;
  border-color: #00158a;
  box-shadow: 0 4px 16px rgba(0, 15, 115, 0.35);
  transform: translateY(-1px);
}

.i18n-switcher__flag {
  font-size: 16px;
  line-height: 1;
}

.i18n-switcher__label {
  line-height: 1;
}

.i18n-switcher__arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.i18n-switcher__current.open .i18n-switcher__arrow {
  transform: rotate(180deg);
}

.i18n-switcher__dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: all 0.2s ease;
  overflow: hidden;
}

.i18n-switcher__dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.i18n-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #212121;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.i18n-switcher__option:hover {
  background: #f5f5f5;
}

.i18n-switcher__option.active {
  color: #000f73;
  font-weight: 600;
  background: #f0f1ff;
}

.i18n-switcher__option.active::after {
  content: '\2713';
  margin-left: auto;
  font-size: 12px;
}

.i18n-switcher__option .i18n-switcher__flag {
  font-size: 18px;
}

/* Fix dropdown menu display issues */
.sub-menu.elementor-nav-menu--dropdown,
.elementor-nav-menu--dropdown {
  max-height: 80vh !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
  min-width: 260px !important;
  white-space: nowrap !important;
}

.sub-menu.elementor-nav-menu--dropdown li,
.elementor-nav-menu--dropdown li {
  white-space: nowrap !important;
}

.sub-menu.elementor-nav-menu--dropdown a,
.elementor-nav-menu--dropdown a {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .i18n-switcher {
    bottom: 16px;
    right: 16px;
  }

  .i18n-switcher__current {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 100px;
  }

  .i18n-switcher__dropdown {
    min-width: 140px;
    bottom: calc(100% + 6px);
  }
}