/* Phone-code select2 dropdown rows (Ajax/PhoneCode/Select2.js).
   Shared by panel pages (via StylePartialView) and the public forms. */

/* The trigger is usually a narrow column, so give the list its own width. */
.select2-container--open .phone-code-dropdown {
    min-width: 250px;
    max-width: calc(100vw - 24px);
}

html[dir="rtl"] .select2-container--open .phone-code-dropdown {
    left: auto;
    right: 0;
}

.pc-opt {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    min-width: 0;
}

.pc-opt-code {
    flex: 0 0 auto;
    min-width: 3.5rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pc-opt-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: .72;
}
