/* The Sign up section's WhatsApp channel. Loaded with email-prefs.css, which draws the section itself.
   The choice is two radios before the row, so the row shows the email box or the number box without a script. */
.cms-su__rb { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cms-su__by { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; box-sizing: border-box; }
.cms-su__byb { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 9px; font-size: 15px; font-weight: 600; line-height: 1; opacity: .72; cursor: pointer; }
.cms-su__byb svg { width: 17px; height: 17px; flex: none; }
.cms-su__byb--wa svg { color: #1FA855; }
.cms-su__rb[value="email"]:checked ~ .cms-su__by .cms-su__byb:not(.cms-su__byb--wa),
.cms-su__rb[value="whatsapp"]:checked ~ .cms-su__by .cms-su__byb--wa { opacity: 1; background: color-mix(in oklab, currentColor 10%, transparent); }
.cms-su__rb:focus-visible ~ .cms-su__by { outline: 2px solid var(--gold); outline-offset: 1px; }

/* The number box: the country code and the number in one field. */
.cms-su__wa { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; height: 44px; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); }
.cms-su__wa:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.cms-su .cms-su__row .cms-su__wa input { flex: 1 1 auto; width: auto; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: inherit; font: inherit; font-size: 15px; }
.cms-su .cms-su__row .cms-su__wa input.cms-su__cc { flex: none; width: 3.6em; padding: 0 4px 0 14px; font-weight: 600; text-align: left; }
.cms-su .cms-su__row .cms-su__wa input.cms-su__num { padding: 0 14px 0 6px; }
.cms-su--stacked .cms-su__wa { height: 52px; border-radius: 12px; }
.cms-su--stacked .cms-su__row .cms-su__wa input { font-size: 16px; }
.cms-su__row.is-bad .cms-su__wa { border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d; }

/* Email or WhatsApp: the radio picked shows its box and its line. */
.cms-su--by .cms-su__wa, .cms-su--by .cms-su__agree--wa { display: none; }
.cms-su--by .cms-su__rb[value="whatsapp"]:checked ~ .cms-su__row .cms-su__wa { display: flex; }
.cms-su--by .cms-su__rb[value="whatsapp"]:checked ~ .cms-su__row input[type="email"], .cms-su--by .cms-su__rb[value="whatsapp"]:checked ~ .cms-su__agree--em { display: none; }
.cms-su--by .cms-su__rb[value="whatsapp"]:checked ~ .cms-su__agree--wa { display: block; }

/* The thanks of a WhatsApp sign up: its icon, a line, and what comes next. */
.cms-su__wico { flex: none; width: 28px; height: 28px; color: #1FA855; }
.cms-su__wico svg { display: block; width: 100%; height: 100%; }
.cms-su__wico[hidden], .cms-su__note[hidden], .cms-su__wa[hidden] { display: none; }
.cms-su--wa .cms-su__done { align-items: flex-start; }
.cms-su__note { margin: 4px 0 0; font-weight: 400; opacity: .8; }
