/**
 * 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;
}

/* Country dropdown — the library doesn't set a font-size, so the list
   items inherit whatever the page's body uses (often 16px+). Force a
   compact 14px to line up with our standard form-input type size on the
   register, edit-account, and block-checkout surfaces. Also tightens the
   row padding so longer country names don't make the menu feel oversized. */
.iti__dropdown-content,
.iti__country,
.iti__search-input {
    font-size: 14px;
    line-height: 1.4;
}

.iti__country {
    padding-top: 6px;
    padding-bottom: 6px;
}
