/*
 * TweetCell web: signing in with a WhatsApp code and proving the phone (theme 3.6.0, web-whatsapp 1.0.0).
 * The number, the code boxes, the progress, the proved-number badge and the verification window.
 */
.wa-flow { display: grid; gap: 18px; }
.wa-progress { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wa-progress li { flex: 1 1 0; height: 4px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 10%, transparent); transition: background .35s var(--ease); }
.wa-progress li.is-on { background: linear-gradient(90deg, var(--violet), var(--violet-hi)); }
.wa-step { display: grid; gap: 16px; }
.wa-step[hidden] { display: none; }
.wa-step .notice { align-items: flex-start; }

/* the number: the country chip and the national number read left to right in every language */
.wa-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; direction: ltr; }
.wa-country { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding-inline: 14px 12px; border-radius: 18px;
  background: color-mix(in oklab, var(--ink) 4.5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15.5px; cursor: pointer; }
.wa-country:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in oklab, var(--accent) 16%, transparent); }
.wa-country .wa-flag { font-size: 22px; line-height: 1; }
.wa-country .tci { font-size: 14px; color: var(--faint); }
.wa-country select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.wa-phone .input { direction: ltr; text-align: left; font-size: 17px; letter-spacing: .02em; }

/* the code: one real input over six boxes (paste and the phone's code suggestion fill it at once) */
.wa-sent { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; font-size: 14px; line-height: 1.7;
  background: color-mix(in oklab, #25D366 11%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, #25D366 30%, transparent); }
.wa-sent svg { flex: none; width: 34px; height: 34px; }
.wa-sent p { flex: 1 1 auto; min-width: 0; }
.wa-sent b { white-space: nowrap; unicode-bidi: isolate; }
button.link { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; }
.wa-sent .link { flex: none; font-size: 13.5px; }
.wa-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.wa-code span { display: grid; place-items: center; height: 62px; border-radius: 18px; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: color-mix(in oklab, var(--ink) 4.5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.wa-code span.is-filled { background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--accent) 55%, transparent); }
.wa-code span.is-next { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in oklab, var(--accent) 16%, transparent); transform: translateY(-1px); }
.wa-code input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: transparent;
  caret-color: transparent; font-size: 16px; letter-spacing: 3em; text-indent: -9999px; z-index: 1; }
.wa-code input::selection { background: transparent; }
.wa-resend { justify-self: center; height: 40px; font-size: 14px; }
.wa-resend:disabled { color: var(--faint); cursor: default; }

/* a new number: the name */
.wa-ok { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; font-size: 14px; line-height: 1.7;
  color: var(--ink); background: color-mix(in oklab, var(--ok) 11%, var(--surface)); }
.wa-ok .tci { font-size: 24px; color: var(--ok); flex: none; }

/* proved */
.wa-done { justify-items: center; text-align: center; padding-block: 6px 2px; }
.wa-done h3 { font-size: 20px; font-weight: 700; }
.wa-done-ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: var(--ok); font-size: 38px;
  background: color-mix(in oklab, var(--ok) 13%, var(--surface)); box-shadow: 0 0 0 10px color-mix(in oklab, var(--ok) 6%, transparent); animation: wa-pop .5s var(--ease) both; }
@keyframes wa-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-done .btn { width: 100%; }

/* the proved-number badge and the "verify" call to action used by the cart and the account pages */
.wa-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.6;
  color: var(--ok); background: color-mix(in oklab, var(--ok) 12%, transparent); white-space: nowrap; }
.wa-badge .tci { font-size: 15px; }
.wa-badge--warn { color: light-dark(#8A5300, #FFD08A); background: color-mix(in oklab, #F2A900 16%, transparent); }
.wa-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px;
  background: color-mix(in oklab, #25D366 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, #25D366 28%, transparent); }
.wa-cta > svg { width: 40px; height: 40px; }
.wa-cta strong { display: block; font-size: 15px; }
.wa-cta p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.wa-cta .btn { grid-column: 1 / -1; }
@media (min-width: 620px) { .wa-cta { grid-template-columns: auto minmax(0, 1fr) auto; } .wa-cta .btn { grid-column: auto; } }

/* the verification window: centred on wide screens, a bottom sheet on phones */
.wa-sheet { width: min(100% - 24px, 460px); }
.wa-sheet .sheet-head h2 { font-size: 19px; line-height: 1.5; }
.wa-sheet .sheet-head p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
html:has(dialog.wa-sheet[open]) { overflow: hidden; }
@media (max-width: 560px) {
  .wa-sheet { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 30px 30px 0 0; }
  .wa-sheet[open] { animation: wa-up .32s var(--ease) both; }
  .wa-code { gap: 7px; } .wa-code span { height: 54px; font-size: 23px; border-radius: 15px; }
}
@keyframes wa-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* sign-in page: the password way, folded under the WhatsApp way */
.wa-alt { display: grid; gap: 14px; }
.wa-alt-toggle { justify-self: center; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.wa-alt-toggle:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.wa-alt-toggle .tci { font-size: 15px; transition: transform .25s var(--ease); }
.wa-alt-toggle[aria-expanded="true"] .tci { transform: rotate(180deg); }
.wa-alt-panel { display: grid; gap: 16px; padding: 18px; border-radius: 24px; background: color-mix(in oklab, var(--ink) 3%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.wa-alt-panel[hidden] { display: none; }
.wa-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.wa-trust span { display: inline-flex; align-items: center; gap: 6px; } .wa-trust .tci { font-size: 15px; color: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  .wa-done-ico, .wa-sheet[open] { animation: none; }
  .wa-code span, .wa-progress li, .wa-alt-toggle .tci { transition: none; }
}

/* the proved number as a read-only line (the account form; the cart has the same rule in checkout.css) */
.wa-readout, .field > .readout { display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 13px 18px; border-radius: 18px; font-size: 15.5px; line-height: 1.6;
  background: color-mix(in oklab, var(--ink) 4.5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.field > .readout > .tci { color: var(--ok); flex: none; }
.field > .readout > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
