/* Blue Level phone selectors in HTML/AJAX forms */

.bl-phone-form-field .iti {
    display: block;
    width: 100%;
    max-width: 100%;
}

.bl-phone-form-field .iti input[type="tel"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.iti__country-selector {
    box-sizing: border-box;
}

body:has(.bl-phone-form-field) .iti__country-selector {
    width: min(320px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
}

body:has(.bl-phone-form-field) .iti__country-list {
    max-height: min(300px, 55vh);
    overflow-y: auto;
}

body:has(.bl-phone-form-field) .iti__country {
    white-space: nowrap;
}

/* BL PHONE INLINE ERROR v0.2.4 */
.bl-phone-form-field .bl-phone-form-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
    line-height: 1.45;
}

.bl-phone-form-field input[type="tel"][aria-invalid="true"] {
    border-color: #b42318 !important;
}
