/**
 * NetSuite Customer Registration — Phone Input
 *
 * Layout glue between intl-tel-input's `.iti` wrapper and the surrounding
 * form theme. The library wraps our `<input>` with `<div class="iti">…</div>`
 * which defaults to `inline-block` — that fights the full-width inputs the
 * register / edit-account forms use, so we expand the wrapper to match.
 */

.iti {
    display: block;
    width: 100%;
}

/* The library leaves the input's original width alone (so theme styles win),
   but with separateDialCode it adds left padding for the dial-code chip.
   Make sure that padding stays in place if a theme reset zeroes it. */
.iti--separate-dial-code .iti__selected-country {
    background-color: transparent;
}

/* When validation fails, lift the red border onto the wrapper too so the
   country dropdown chip doesn't look detached from the invalid input. */
.iti:has(input:invalid:not(:placeholder-shown)) .iti__selected-country {
    border-color: currentColor;
}
