/* Overrides on top of vendor MAX CSS — screen switching + error hints */
html.maxw-page,
body.maxw-page {
  margin: 0;
  height: 100%;
}

.maxw-scr {
  display: none !important;
}

.maxw-scr.on {
  display: flex !important;
}

.hint.hint--error:empty,
.hint.hint--error[hidden] {
  display: none !important;
}

.hint.hint--error:not([hidden]):not(:empty) {
  display: block;
  color: var(--accent-red, #ff444f);
}

/* Editable landing copy: center + wrap whole words only (no syllable hyphenation) */
.maxw-copy-wrap {
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
  white-space: normal;
}

.maxw-hint-center.hint--start {
  text-align: center;
}

.maxw-page .icon.icon--left.svelte-1tw9bpp {
  margin-right: 4px;
}

.maxw-page .country.svelte-1dt16gm {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding-left: 2px;
  padding-right: 2px;
}

.maxw-page .country.svelte-1dt16gm img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.maxw-dial {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-primary);
  white-space: nowrap;
}

.maxw-chevron {
  width: 16px;
  height: 16px;
  color: #6b6b6b;
  flex: 0 0 auto;
}

.maxw-page #phone.field.svelte-1tw9bpp {
  letter-spacing: 0.04em;
}

.maxw-remain {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 1.1em;
  padding: 0 12px 0 4px;
  color: #6b6b6b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-align: right;
  user-select: none;
  pointer-events: none;
}

.maxw-remain:empty {
  display: none;
}

.maxw-country-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 280px;
  overflow: auto;
  border-radius: 12px;
  background: var(--background-surface-card, #1c1d21);
  color: var(--text-primary, #fff);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.maxw-country-list[hidden] {
  display: none !important;
}

.maxw-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 15px;
  line-height: 20px;
}

.maxw-country-item:hover,
.maxw-country-item[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.maxw-country-item img {
  flex: 0 0 auto;
  border-radius: 2px;
}

.maxw-country-item-name {
  flex: 1;
  font-weight: 500;
}

.maxw-country-item-dial {
  opacity: 0.62;
  font-weight: 600;
  white-space: nowrap;
}

/* Official MAX logo jumps over the SMS fields (especially dual RESET rows). */
.auth.maxw-scr[data-scr="code"] .logoWrapper,
.auth.maxw-scr[data-scr="code"] .animation {
  display: none !important;
}
