/* CashTap language switcher: flags + on-screen + phone-friendly */
.lang-switch-container {
  position: relative;
}

.lang-drop-switch.cashtap-lang-menu {
  left: auto !important;
  right: 12px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: min(300px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  z-index: 80;
  padding: 16px !important;
}

@media (max-width: 1023px) {
  .lang-drop-switch.cashtap-lang-menu[data-position="header-mobile"] {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 24px)) !important;
  }
}

.cashtap-lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cashtap-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cashtap-lang-option:hover,
.cashtap-lang-option[aria-current="true"] {
  background: #f3f4f6;
}

.cashtap-lang-option[aria-current="true"] {
  font-weight: 650;
}

.cashtap-lang-flag {
  flex: none;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  line-height: 0;
}

.cashtap-lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cashtap-lang-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cashtap-lang-name {
  font-size: 15px;
  line-height: 1.2;
}

.cashtap-lang-code {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b66;
  font-weight: 600;
}

.button-switcher .cashtap-lang-trigger-flag {
  width: 18px;
  height: 13px;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.button-switcher .cashtap-lang-trigger-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Standalone FAQ / simple-page lang control */
.cashtap-lang-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cashtap-lang-inline .cashtap-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  color: #1d1d1b;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  z-index: 40;
}

.cashtap-lang-inline.is-open .cashtap-lang-menu {
  display: flex;
}

.cashtap-lang-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font: inherit;
  cursor: pointer;
}


/* Header lang control: hide legacy EU/globe icon — flag + code only */
.button-switcher > span[aria-hidden="true"]:not(.cashtap-lang-trigger-flag) {
  display: none !important;
}
.button-switcher > span[aria-hidden="true"] svg.rounded-full {
  display: none !important;
}
.button-switcher {
  gap: 8px;
}
.button-switcher .cashtap-lang-trigger-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  display: inline-flex !important;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.button-switcher .uppercase {
  text-transform: uppercase;
  font-weight: 650;
  letter-spacing: 0.02em;
}


.cashtap-lang-inline-btn .cashtap-lang-trigger-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.cashtap-lang-inline-btn .cashtap-lang-trigger-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cashtap-lang-inline-code {
  font-weight: 650;
  letter-spacing: 0.02em;
}
