/* Developer & Lead Architect: Morris Robinson / morrisrobinson1688@aol.com */
/* UNIMERCE Patch 359R123: final focused-layout language dropdown CSS guard for merchant onboarding approval/status walls. */

/*
 * This file is intentionally loaded LAST by MerchantOnboardingController.
 * Earlier approval-wall CSS from R50/R51/R52/R74/R75 can hide .um-focused-topline
 * because those older patches expected a separate internal cover-page language picker.
 * That internal picker no longer renders. The focused-layout dropdown is now the
 * only available language control on /merchant/onboarding and /merchant/onboarding/step/10.
 */

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-topline,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-topline,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-topline,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-topline,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-topline,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-topline,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-topline,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-topline {
  display: flex !important;
  position: fixed !important;
  top: clamp(12px, 2vw, 22px) !important;
  right: clamp(12px, 2vw, 22px) !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: calc(100vw - 24px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 2147483400 !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-brand-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-actions-plaque > a,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-actions-plaque > a,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-actions-plaque > a,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-actions-plaque > a,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-actions-plaque > a,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-actions-plaque > a,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-actions-plaque > a,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-actions-plaque > a {
  display: none !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-actions-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-actions-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-actions-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-actions-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-actions-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-actions-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-actions-plaque,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-actions-plaque {
  display: flex !important;
  position: relative !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown,
body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown,
body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown,
body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown,
body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown,
body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown,
body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown,
body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown {
  display: inline-block !important;
  position: relative !important;
  width: auto !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2147483401 !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown > summary,
body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown > summary,
body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown > summary,
body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown > summary,
body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown > summary,
body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown > summary,
body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown > summary,
body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  margin: 0 !important;
  padding: 8px 13px !important;
  cursor: pointer !important;
  list-style: none !important;
  border: 1px solid rgba(236, 199, 113, .76) !important;
  border-radius: 999px !important;
  background: rgba(22, 15, 9, .88) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.07) !important;
  text-shadow: 0 1px 7px rgba(0,0,0,.55) !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown > summary::-webkit-details-marker,
body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown > summary::-webkit-details-marker,
body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown > summary::-webkit-details-marker,
body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown > summary::-webkit-details-marker,
body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown > summary::-webkit-details-marker,
body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown > summary::-webkit-details-marker,
body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown > summary::-webkit-details-marker,
body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown > summary::-webkit-details-marker {
  display: none !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown[open] > summary,
body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown > summary:hover,
body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown > summary:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown > summary:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown > summary:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown > summary:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown > summary:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown > summary:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown > summary:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown > summary:focus-visible {
  border-color: #f4c866 !important;
  background: rgba(34, 24, 14, .96) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline: 3px solid rgba(244, 200, 102, .27) !important;
  outline-offset: 2px !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-flag,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-flag,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-flag,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-flag,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-flag,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-flag,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-flag,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 18px !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-current,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-current,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-current,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-current,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-current,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-current,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-current,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-current {
  display: inline-block !important;
  max-width: 170px !important;
  overflow: hidden !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: .88rem !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-caret,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-caret,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-caret,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-caret,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-caret,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-caret,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-caret,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-caret {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f4c866 !important;
  -webkit-text-fill-color: #f4c866 !important;
  font-size: .74rem !important;
  line-height: 1 !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown[open] > .um-focused-language-menu {
  display: grid !important;
  position: fixed !important;
  top: var(--um-focused-language-top-r123, 66px) !important;
  right: clamp(12px, 2vw, 22px) !important;
  bottom: auto !important;
  left: auto !important;
  width: min(380px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 88px) !important;
  overflow: auto !important;
  padding: 8px !important;
  gap: 4px !important;
  border: 1px solid rgba(236,199,113,.55) !important;
  border-radius: 16px !important;
  background: rgba(13, 10, 7, .98) !important;
  color: #ffffff !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.48) !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483402 !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-option,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-option,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-option,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-option,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-option,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-option,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-option,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-option {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 12px !important;
}

body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-option:hover,
body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-option:focus-visible,
body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-option.is-current,
body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-option.is-current,
body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-option.is-current,
body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-option.is-current,
body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-option.is-current,
body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-option.is-current,
body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-option.is-current,
body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-option.is-current {
  background: rgba(244,200,102,.14) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline-color: rgba(244,200,102,.28) !important;
}

@media (max-width: 760px) {
  body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-topline,
  body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-topline,
  body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-topline,
  body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-topline,
  body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-topline,
  body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-topline,
  body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-topline,
  body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-topline {
    top: 10px !important;
    right: 10px !important;
    max-width: calc(100vw - 20px) !important;
  }
  body.um-focused-body.um-merchant-approval-wall-page-r50 .um-focused-language-current,
  body.um-focused-body.um-merchant-approval-wall-page-r51 .um-focused-language-current,
  body.um-focused-body.um-merchant-approval-wall-page-r52 .um-focused-language-current,
  body.um-focused-body.um-merchant-approval-wall-page-r53 .um-focused-language-current,
  body.um-focused-body.um-merchant-approval-wall-page-r74 .um-focused-language-current,
  body.um-focused-body.um-merchant-approval-wall-page-r75 .um-focused-language-current,
  body.um-focused-body.um-merchant-approval-wall-page-r76 .um-focused-language-current,
  body.um-focused-body.um-merchant-approval-wall-page-r77 .um-focused-language-current {
    max-width: 132px !important;
    font-size: .82rem !important;
  }
  body.um-focused-body.um-merchant-approval-wall-page-r50 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body.um-merchant-approval-wall-page-r51 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body.um-merchant-approval-wall-page-r52 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body.um-merchant-approval-wall-page-r53 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body.um-merchant-approval-wall-page-r74 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body.um-merchant-approval-wall-page-r75 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body.um-merchant-approval-wall-page-r76 details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body.um-merchant-approval-wall-page-r77 details.um-focused-language-dropdown[open] > .um-focused-language-menu {
    top: var(--um-focused-language-top-r123, 64px) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 84px) !important;
  }
}


/* Patch 359R278: reduced/focused layout language menu always fits inside iPhone viewport. */
.um-focused-actions-plaque {
  overflow: visible !important;
}
details.um-focused-language-dropdown,
body.um-focused-body details.um-focused-language-dropdown {
  position: relative !important;
  z-index: 2147482500 !important;
  overflow: visible !important;
}
details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body details.um-focused-language-dropdown[open] > .um-focused-language-menu {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: calc(env(safe-area-inset-top, 0px) + 72px) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 2147482501 !important;
  display: grid !important;
  width: min(360px, calc(100vw - 18px)) !important;
  max-width: calc(100vw - 18px) !important;
  max-height: calc(100vh - 110px) !important;
  max-height: calc(100dvh - 110px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
  padding: 8px !important;
  background: #fffdf8 !important;
  border: 2px solid rgba(244,200,102,.70) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.44) !important;
}
details.um-focused-language-dropdown[open] > .um-focused-language-menu::before,
body.um-focused-body details.um-focused-language-dropdown[open] > .um-focused-language-menu::before {
  display: none !important;
}
.um-focused-language-option {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
@media (max-width: 760px) {
  details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body details.um-focused-language-dropdown[open] > .um-focused-language-menu {
    top: calc(env(safe-area-inset-top, 0px) + 58px) !important;
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 82px) !important;
    max-height: calc(100dvh - 82px) !important;
  }
  body.um-focused-body .um-focused-language-current {
    max-width: 135px !important;
  }
}
@media (max-width: 390px) {
  details.um-focused-language-dropdown[open] > .um-focused-language-menu,
  body.um-focused-body details.um-focused-language-dropdown[open] > .um-focused-language-menu {
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
    max-height: calc(100vh - 72px) !important;
    max-height: calc(100dvh - 72px) !important;
    top: calc(env(safe-area-inset-top, 0px) + 52px) !important;
  }
}

/* Patch 359R280: reduced/focused/member language menus stay fully visible on iPhone Safari. */
details.um-focused-language-dropdown[open] > .um-focused-language-menu,
body.um-focused-body details.um-focused-language-dropdown[open] > .um-focused-language-menu,
.member-language-switcher-318[open] .member-language-menu-318,
details.member-language-switcher-318[open] > .member-language-menu-318,
.um-language-dropdown[open] > .um-language-menu,
details.um-language-dropdown[open] > .um-language-menu {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: calc(env(safe-area-inset-top, 0px) + 58px) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 2147483200 !important;
  display: grid !important;
  width: min(380px, calc(100vw - 18px)) !important;
  max-width: calc(100vw - 18px) !important;
  max-height: calc(100vh - 92px) !important;
  max-height: calc(100dvh - 92px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
  border-radius: 18px !important;
}

details.um-focused-language-dropdown[open] > .um-focused-language-menu::before,
body.um-focused-body details.um-focused-language-dropdown[open] > .um-focused-language-menu::before,
.member-language-switcher-318[open] .member-language-menu-318::before,
.um-language-dropdown[open] > .um-language-menu::before,
details.um-language-dropdown[open] > .um-language-menu::before {
  display: none !important;
}

@media (max-width: 420px) {
  .um-pwa-install-layer-346,
  .um-pwa-install-layer-359,
  .um-pwa-cache-layer,
  .um-pwa-update-layer,
  .um-pwa-modal,
  [data-pwa-install-layer],
  [data-um-pwa-modal],
  [data-cache-update-modal] {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    max-height: calc(100vh - 58px) !important;
    max-height: calc(100dvh - 58px) !important;
    padding: 18px !important;
  }

  .um-pwa-install-layer-346 h1,
  .um-pwa-install-layer-346 h2,
  .um-pwa-install-layer-359 h1,
  .um-pwa-install-layer-359 h2 {
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
    line-height: 1.08 !important;
  }
}

