.ws-localization {
  position: relative;
  z-index: 8;
  margin-right: 8px;
}

.ws-localization__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: #171717;
  cursor: pointer;
  font: 400 11px/1.2 var(--whispart-header-sans, Jost, Arial, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .3s ease;
}

.ws-localization__toggle::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  border-bottom: 1px solid currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s ease;
}
.ws-localization__toggle:hover::after,
.ws-localization__toggle:focus-visible::after,
.ws-localization.is-open .ws-localization__toggle::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.ws-localization__toggle:active,
.ws-localization__option:active { opacity: .3; }
.ws-localization__toggle:focus-visible { outline: 1px solid #aaa; outline-offset: 3px; }

.ws-localization__toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .3s ease;
}

.ws-localization.is-open .ws-localization__toggle svg { transform: rotate(180deg); }

.ws-localization__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: min(256px, calc(100vw - 28px));
  box-sizing: border-box;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #171717;
  box-shadow: 0 12px 28px rgba(25, 24, 21, .09);
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
}

.ws-localization__panel[hidden] { display: none; }
.ws-localization__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.ws-localization__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: #171717;
  cursor: pointer;
  font: 400 12px/1.2 var(--whispart-header-sans, Jost, Arial, sans-serif);
  letter-spacing: .02em;
  text-align: left;
  transition: opacity .3s ease;
}
.ws-localization__option > span:first-child { position: relative; padding-bottom: 4px; }
.ws-localization__option > span:first-child::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 1px solid currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s ease;
}
.ws-localization__option:hover > span:first-child::after,
.ws-localization__option:focus-visible > span:first-child::after,
.ws-localization__option.is-selected > span:first-child::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.ws-localization__option:focus-visible { outline: 1px solid #aaa; outline-offset: -2px; }
.ws-localization__symbol { color: #6d6b65; font: 400 11px/1.2 var(--whispart-header-sans, Jost, Arial, sans-serif); letter-spacing: 0; }
.ws-localization__note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.ws-welcome-card[hidden] { display: none; }
.ws-welcome-card {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: min(540px, calc(100vw - 40px));
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fcfbf8;
  color: #171717;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
}

.ws-welcome-card.is-visible { opacity: 1; transform: translateY(0); }
.ws-welcome-card__inner { display: grid; grid-template-columns: 37% 1fr; min-height: 244px; }
.ws-welcome-card__visual { min-width: 0; margin: 0; background: #eeece6; }
.ws-welcome-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-welcome-card__content { position: relative; padding: 32px 34px 30px; }
.ws-welcome-card__close { position: absolute; top: 12px; right: 12px; display: grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; background: transparent; color: #4e4c47; cursor: pointer; font: 400 20px/1 Arial, sans-serif; }
.ws-welcome-card__eyebrow { margin: 0 28px 10px 0; color: #6d6b65; font: 500 9px/1.2 Jost, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.ws-welcome-card h2 { margin: 0; font: 400 clamp(28px, 3vw, 34px)/.96 "Cormorant Garamond", Georgia, serif; letter-spacing: -.025em; }
.ws-welcome-card__copy { margin: 14px 0 18px; color: #55534f; font: 400 13px/1.55 Jost, Arial, sans-serif; }
.ws-welcome-card__form { margin: 0; }
.ws-welcome-card__field { display: flex; align-items: center; border-bottom: 1px solid #171717; }
.ws-welcome-card__field input { min-width: 0; flex: 1; height: 42px; padding: 0 5px 0 0; border: 0; outline: 0; background: transparent; color: #171717; font: 400 13px/1.2 Jost, Arial, sans-serif; }
.ws-welcome-card__field input::placeholder { color: #77756f; }
.ws-welcome-card__submit { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #171717; cursor: pointer; font: 500 10px/1.2 Jost, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ws-welcome-card__privacy,
.ws-welcome-card__status { margin: 10px 0 0; color: #6d6b65; font: 400 10px/1.45 Jost, Arial, sans-serif; }
.ws-welcome-card__privacy a { color: inherit; text-underline-offset: 2px; }
.ws-welcome-card__status { color: #4f624f; }
.ws-welcome-card__status[hidden] { display: none; }

@media (max-width: 749px) {
  .ws-localization { margin-right: 0; }
  .ws-localization__toggle { min-height: 30px; font-size: 9px; }
  .ws-localization__panel { right: -8px; }
  .ws-welcome-card { right: 16px; bottom: 16px; }
  .ws-welcome-card__inner { grid-template-columns: 34% 1fr; min-height: 212px; }
  .ws-welcome-card__content { padding: 25px 25px 23px; }
  .ws-welcome-card h2 { font-size: 28px; }
  .ws-welcome-card__copy { margin: 10px 0 15px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-localization__toggle,
  .ws-localization__toggle::after,
  .ws-localization__toggle svg,
  .ws-localization__option,
  .ws-localization__option > span:first-child::after { transition: none; }
}
