.wex-locale-dialog {
  box-sizing: border-box;
  width: min(620px, calc(100% - 32px));
  max-width: 620px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e6e0f1;
  border-radius: 24px;
  background: #fff;
  color: #29243b;
  box-shadow: 0 32px 100px #18102540;
  font-family: inherit;
  font-size: 16px;
  text-align: start;
}
.wex-locale-dialog:not([open]) { display: none; }
.wex-locale-dialog::backdrop { background: #211b35a6; backdrop-filter: blur(6px); }
.wex-locale-dialog *, .wex-locale-dialog *::before, .wex-locale-dialog *::after { box-sizing: border-box; }
.wex-locale-content { position: relative; padding: 28px 32px 24px; }
.wex-locale-brand { display: flex; align-items: center; gap: 12px; padding-inline-end: 36px; margin-bottom: 22px; font-size: 19px; font-weight: 750; line-height: 1.2; }
.wex-locale-brand-note { display: block; margin-top: 3px; color: #756c89; font-size: 11px; letter-spacing: .12em; font-weight: 500; }
.wex-locale-globe { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #f0ebfc; color: #6551bf; }
.wex-locale-globe svg { width: 29px; height: 29px; }
.wex-locale-dialog .wex-locale-close { position: absolute; inset-block-start: 24px; inset-inline-end: 24px; display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border: 1px solid #e7e2f0; border-radius: 50%; color: #6c637e; background: #fff; cursor: pointer; }
.wex-locale-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.wex-locale-dialog h2 { margin: 0 0 12px; color: #29243b; font-size: clamp(24px, 4vw, 30px); line-height: 1.25; font-weight: 750; letter-spacing: -.035em; }
.wex-locale-dialog p { margin: 0; color: #645b76; font-size: 15px; line-height: 1.65; }
.wex-locale-translation { margin-top: 20px; padding: 17px 20px; border: 1px solid #ebe5f6; border-radius: 14px; background: #f8f6fc; text-align: start; }
.wex-locale-language { display: block; margin-bottom: 6px; color: #72618f; font-size: 12px; font-weight: 650; }
.wex-locale-dialog h3 { margin: 0 0 7px; color: #3a304f; font-size: 20px; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
.wex-locale-translation p { font-size: 14px; }
.wex-locale-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.wex-locale-actions > a, .wex-locale-actions > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 68px; margin: 0; padding: 12px 14px; border: 1px solid #dcd4ed; border-radius: 13px; text-decoration: none; font: inherit; line-height: 1.35; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.wex-locale-actions span { font-size: 15px; font-weight: 700; }
.wex-locale-actions small { font-size: 12px; font-weight: 400; }
.wex-locale-actions .wex-locale-continue { color: #fff; background: #6652c1; border-color: #6652c1; box-shadow: 0 5px 14px #6652c126; }
.wex-locale-actions .wex-locale-continue:hover { color: #fff; background: #5440ac; border-color: #5440ac; }
.wex-locale-actions .wex-locale-stay { background: #fff; color: #4f4365; }
.wex-locale-actions .wex-locale-stay:hover, .wex-locale-dialog .wex-locale-close:hover { background: #f3effa; border-color: #b4a5d4; }
.wex-locale-footer { padding: 20px 32px 24px; border-top: 1px solid #ece7f4; background: #fcfbfe; }
.wex-locale-footer p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; margin-bottom: 12px; line-height: 1.5; }
.wex-locale-footer strong { color: #514365; font-size: 13px; font-weight: 650; }
.wex-locale-footer p > span { font-size: 12px; }
.wex-locale-languages { display: flex; flex-wrap: wrap; gap: 7px; }
.wex-locale-languages > a, .wex-locale-languages > button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 11px; border: 1px solid #e5dff0; border-radius: 8px; background: #fff; color: #625674; font: inherit; font-size: 12px; line-height: 1.3; text-decoration: none; cursor: pointer; }
.wex-locale-languages > :hover, .wex-locale-languages > [aria-current] { background: #f0eafa; border-color: #b4a5d4; color: #5440ac; }
.wex-locale-dialog :is(a, button):focus-visible { outline: 3px solid #a18add; outline-offset: 3px; }
html.has-wex-locale-dialog { overflow: hidden; }
@media (max-width: 480px) {
  .wex-locale-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .wex-locale-content { padding: 23px 20px 20px; }
  .wex-locale-brand { margin-bottom: 20px; }
  .wex-locale-dialog .wex-locale-close { inset-block-start: 22px; inset-inline-end: 18px; }
  .wex-locale-translation { margin-top: 16px; padding: 14px 16px; }
  .wex-locale-actions { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
  .wex-locale-actions > a, .wex-locale-actions > button { min-height: 62px; }
  .wex-locale-footer { padding: 17px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .wex-locale-actions > a, .wex-locale-actions > button { transition: none; }
}
