.yg-language-header .tp-header-6-top { position: relative; z-index: 60; }
.yg-language-switch {
  position: relative;
  flex: 0 0 auto;
  margin-right: 16px;
  color: #163077;
  font-family: var(--tp-ff-body, "Onest", sans-serif);
  font-size: 13px;
  line-height: 1.2;
  z-index: 12;
}
.yg-language-switch > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(22,48,119,.2);
  border-radius: 6px;
  background: rgba(22,48,119,.04);
  color: inherit;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.yg-language-switch > summary::-webkit-details-marker { display: none; }
.yg-language-switch img { display: block; flex: 0 0 auto; width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.yg-language-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 166px;
  padding: 6px;
  background: #fff;
  color: #163077;
  border: 1px solid rgba(22,48,119,.14);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(9,22,57,.18);
}
.yg-language-switch__menu a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 5px; color: inherit; font-weight: 500; }
.yg-language-switch__menu a:hover,
.yg-language-switch__menu a[aria-current] { background: rgba(22,48,119,.07); }
.yg-language-switch summary:focus-visible,
.yg-language-switch a:focus-visible { outline: 2px solid #163077; outline-offset: 3px; }
.yg-language-switch[open] .yg-language-switch__chevron { transform: rotate(180deg); }
#header-sticky .yg-language-switch { color: #fff; margin-left: 16px; margin-right: 0; }
#header-sticky .yg-language-switch > summary { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
#header-sticky .yg-language-switch summary:focus-visible { outline-color: #fff; }
body:has(.yg-pdp) .tp-header-6-top .yg-language-switch { color: #fff; }
body:has(.yg-pdp) .tp-header-6-top .yg-language-switch > summary { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
body:has(.yg-pdp) .tp-header-6-top .yg-language-switch summary:focus-visible { outline-color: #fff; }
@media (max-width: 767px) {
  .yg-language-header .tp-header-6-top .row > .col-6 { width: auto; }
  .yg-language-header .tp-header-6-top .row > .col-6:first-of-type { flex: 1 1 auto; }
  .yg-language-header .tp-header-6-top .row > .col-6:last-of-type { flex: 0 0 auto; margin-left: auto; }
  .yg-language-switch { margin-right: 6px; }
  .yg-language-switch > summary { min-height: 44px; padding: 8px; gap: 5px; }
}
@media (max-width: 479px) {
  .yg-language-header .tp-header-6-top .row > .col-6 { padding-left: 6px; padding-right: 6px; }
  .yg-language-header .tp-header-6-top .tp-header-logo img { width: 36px; }
  .yg-language-header .tp-header-6-top .tp-header-logo a { gap: 5px !important; }
  .yg-language-header .tp-header-6-top .tp-header-logo .fw-700 { font-size: 14px; }
  .tp-header-6-top .yg-language-switch__code,
  .tp-header-6-top .yg-language-switch__chevron { display: none; }
}

/* Keep dropdown labels legible inside product headers. */
.yg-language-header .tp-header-6-top .yg-language-switch__menu a { color: #163077 !important; }
