/* Periodic auto-flip of the header CTA button between its text and a
   "send message" icon, reusing the theme's existing vertical text-swap
   button mechanics (.transwide-btn__text--1/--2) — just triggered by a
   timer instead of :hover. */
.transwide-btn.is-flipped .transwide-btn__text--1 {
  transform: translateY(-100%);
}

.transwide-btn.is-flipped .transwide-btn__text--2 {
  transform: translateY(0%);
}

.transwide-btn__text--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-sizing: border-box;
  border: 1px solid #ffffff;
}

/* Attention shake — plays once each time the icon face turns up, then settles */
@keyframes cta-icon-alert {
  0% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-18deg) scale(1.12); }
  30% { transform: rotate(16deg) scale(1.12); }
  45% { transform: rotate(-12deg) scale(1.06); }
  60% { transform: rotate(10deg) scale(1.06); }
  75% { transform: rotate(-5deg) scale(1); }
  90% { transform: rotate(3deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}

.transwide-btn.is-flipped .transwide-btn__text--icon i {
  display: inline-block;
  animation: cta-icon-alert 0.7s ease-in-out;
}

/* ---- Language switcher ---- */
.lang-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--primary-color) !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  transition: background 0.2s, transform 0.2s;
}

.lang-switcher__link i {
  font-size: 12px;
}

.lang-switcher__link:hover {
  background: #135dc4 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Mobile nav copy of the switcher — the topbar (and its switcher) is
   hidden below 991px, so this is the only way to change language on
   mobile/tablet. */
.mobile-nav__lang {
  margin-bottom: 18px;
}

.mobile-nav__lang .lang-switcher__link {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-size: 14px;
}
