.bio-lang-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px auto 18px;
  flex-wrap: wrap;
}

.bio-lang-btn {
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.bio-lang-btn.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* BIO I18N UK FLAG START */
.bio-lang-btn[data-bio-lang="en"] {
  min-width: 76px;
}

.bio-lang-flag-en {
  font-size: 22px;
  line-height: 1;
}

.bio-lang-btn[data-bio-lang="en"] .bio-lang-code {
  font-weight: 950;
}
/* BIO I18N UK FLAG END */

/* BIO I18N FLAGS FORCE START */
.bio-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 74px !important;
}

.bio-lang-flag {
  display: inline-block !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.bio-lang-flag-en {
  font-size: 22px !important;
}

.bio-lang-code {
  display: inline-block !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}
/* BIO I18N FLAGS FORCE END */

/* BIO I18N CSS FLAGS START */
.bio-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 78px !important;
}

.bio-lang-code {
  display: inline-block !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}

.bio-flag {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18), 0 1px 2px rgba(15, 23, 42, 0.18);
}

/* France */
.bio-flag-fr {
  background: linear-gradient(
    90deg,
    #0055a4 0 33.333%,
    #ffffff 33.333% 66.666%,
    #ef4135 66.666% 100%
  );
}

/* Spain */
.bio-flag-es {
  background: linear-gradient(
    180deg,
    #aa151b 0 25%,
    #f1bf00 25% 75%,
    #aa151b 75% 100%
  );
}

/* United Kingdom, simplified but very visible */
.bio-flag-gb {
  background: #012169;
}

.bio-flag-gb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(27deg, transparent 0 42%, #ffffff 42% 48%, #c8102e 48% 53%, #ffffff 53% 59%, transparent 59%),
    linear-gradient(153deg, transparent 0 42%, #ffffff 42% 48%, #c8102e 48% 53%, #ffffff 53% 59%, transparent 59%);
}

.bio-flag-gb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 38%, #ffffff 38% 45%, #c8102e 45% 55%, #ffffff 55% 62%, transparent 62%),
    linear-gradient(180deg, transparent 0 34%, #ffffff 34% 43%, #c8102e 43% 57%, #ffffff 57% 66%, transparent 66%);
}
/* BIO I18N CSS FLAGS END */
