/* Telephone controls retain the native calling-code and number submission. */
body.weeby-theme .intl-tel-input:not(.iti-container) {
  --weeby-phone-code-width: 84px;
  display: block;
  width: 100%;
  direction: ltr;
  text-align: left;
}
body.weeby-theme .intl-tel-input:not(.iti-container) input[type="tel"] {
  width: 100%;
  min-width: 0;
  direction: ltr;
  text-align: left;
  color: var(--ws-on-paper, #031059) !important;
  background-color: var(--ws-paper, #fff) !important;
  border-color: var(--ws-line, #c9ddff) !important;
}
body.weeby-theme .intl-tel-input.separate-dial-code input[type="tel"],
body.weeby-theme .intl-tel-input.separate-dial-code input[type="text"] {
  padding-left: calc(var(--weeby-phone-code-width) + 13px) !important;
  padding-right: 13px !important;
}
body.weeby-theme .intl-tel-input.allow-dropdown .flag-container,
body.weeby-theme .intl-tel-input.separate-dial-code .flag-container {
  right: auto !important;
  left: 0 !important;
  width: var(--weeby-phone-code-width);
  padding: 1px;
}
body.weeby-theme .intl-tel-input.separate-dial-code .selected-flag {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100% !important;
  height: 100%;
  padding: 0 10px !important;
  border-right: 1px solid var(--ws-line, #c9ddff);
  border-radius: 5px 0 0 5px;
  color: var(--ws-link-on-soft, #0064d6) !important;
  background: var(--ws-soft, #eef5ff) !important;
  cursor: pointer;
}
body.weeby-theme .intl-tel-input.separate-dial-code .selected-flag:hover {
  color: var(--ws-on-soft, #031059) !important;
  background: var(--ws-soft, #eef5ff) !important;
}
body.weeby-theme .intl-tel-input.separate-dial-code .selected-flag:focus-visible {
  outline: 2px solid var(--ws-focus, #0064d6);
  outline-offset: -3px;
}
body.weeby-theme .intl-tel-input.separate-dial-code .selected-flag > .iti-flag {
  position: static;
  flex: 0 0 20px;
  margin: 0;
}
body.weeby-theme .intl-tel-input.separate-dial-code .selected-dial-code {
  display: block;
  flex: 0 0 auto;
  padding: 0 !important;
  color: inherit !important;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
body.weeby-theme .intl-tel-input.separate-dial-code .selected-flag > .iti-arrow {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  border-top-color: currentColor;
}
body.weeby-theme .intl-tel-input.separate-dial-code .selected-flag > .iti-arrow.up {
  border-bottom-color: currentColor;
}
body.weeby-theme .intl-tel-input input:disabled,
body.weeby-theme .intl-tel-input input[readonly] {
  color: var(--ws-muted-on-soft, #395a8c) !important;
  background-color: var(--ws-soft, #eef5ff) !important;
}
body.weeby-theme .intl-tel-input:has(input:disabled) .selected-flag,
body.weeby-theme .intl-tel-input:has(input[readonly]) .selected-flag {
  cursor: default;
}
/* The live native list is temporarily outside clipping cards while it is open. */
body.weeby-theme .weeby-phone-menu {
  position: fixed !important;
  z-index: 1085;
  box-sizing: border-box;
  display: block;
  margin: 0 !important;
  padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  direction: ltr;
  text-align: left;
  white-space: normal;
  color: var(--ws-on-paper, #031059);
  background: var(--ws-paper, #fff);
  border: 1px solid var(--ws-line, #c9ddff);
  border-radius: 8px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ws-navy, #031059) 14%, transparent);
  scrollbar-width: thin;
  scrollbar-color: var(--ws-line, #c9ddff) var(--ws-paper, #fff);
  contain: layout style;
}
body.weeby-theme .weeby-phone-menu.hide {
  display: none !important;
}
body.weeby-theme .weeby-phone-menu .country {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px;
  border-radius: 5px;
  color: var(--ws-on-paper, #031059);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
body.weeby-theme .weeby-phone-menu .country .flag-box {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  margin: 0;
}
body.weeby-theme .weeby-phone-menu .country-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: inherit;
}
body.weeby-theme .weeby-phone-menu .dial-code {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ws-muted, #395a8c);
  font-variant-numeric: tabular-nums;
}
body.weeby-theme .weeby-phone-menu .country.highlight,
body.weeby-theme .weeby-phone-menu .country:hover {
  color: var(--ws-on-soft, #031059);
  background: var(--ws-soft, #eef5ff);
}
body.weeby-theme .weeby-phone-menu .country.highlight .dial-code,
body.weeby-theme .weeby-phone-menu .country:hover .dial-code {
  color: var(--ws-muted-on-soft, #395a8c);
}
body.weeby-theme .weeby-phone-menu .country.active .country-name {
  color: var(--ws-link-on-paper, #0064d6);
  font-weight: 600;
}
body.weeby-theme .weeby-phone-menu .country.active.highlight .country-name {
  color: var(--ws-link-on-soft, #0064d6);
}
body.weeby-theme .weeby-phone-menu .divider {
  margin: 5px 4px;
  padding: 0;
  border-bottom: 1px solid var(--ws-line, #c9ddff);
}
@media (prefers-reduced-motion: no-preference) {
  body.weeby-theme .intl-tel-input .selected-flag,
  body.weeby-theme .weeby-phone-menu .country {
    transition: color 140ms ease, background-color 140ms ease;
  }
}
