.phone-number {
    display: flex;
    position: relative;
}

.phone-number__row {
    display: flex;
    align-items: center;
}

.phone-number__dropdown-button {
    background-color: white;
    border: 1px solid rgb(170, 170, 170) !important;
    border-radius: 4px;
    padding: 5px;
    color: black;
    position: relative;
    vertical-align: middle;
    height: 22px;
    box-sizing: border-box;
    position: relative;
    max-width: 150px;
    display: flex;
    align-items: center;
}

.phone-number__dropdown-button:disabled {
    opacity: 0.7;
}

.phone-number__dropdown-button:active {
    background-color: rgb(240, 240, 240);
}

.phone-number__flag {
    width: 15px;
    margin-right: 3px;
}

.phone-number__dropdown-button > * {
    font-size: 12px;
}

.phone-number__input {
    font-size: 12px;
    border: 1px solid rgb(170, 170, 170) !important;
    border-radius: 4px;
    padding: 2px 4px 3px 4px;
    width: 145px;
    height: 22px;
    margin-left: 5px;
}

.phone-number__dropdown {
    background-color: white;
    border: 1px solid rgb(170, 170, 170);
    border-radius: 4px;
    visibility: hidden;
    width: 305px;
    box-shadow: 0 7px 15px 0 rgba(0, 0, 0, .1);
    z-index: 10;
}

.phone-number__menu-items {
    max-height: 370px;
    overflow-y: auto;
}

.phone-number__menu-items > hr {
    margin: 0;
}

.phone-number__search {
    border: 1px solid rgb(170, 170, 170);
    border-radius: 4px;
    padding: 1px 2px 1px 2px;
    position: relative;
    margin: 10px;
    font-size: 12px;
}

.phone-number__search > input {
    border: none;
    width: calc(100% - 20px);
}

.phone-number__search > i {
    position: absolute;
    font-size: 16px;
    right: 1px;
    top: calc(50% - 8px);
    color: grey;
}

.phone-number__menu-item {
    width: 100%;
    display: block;
    background-color: white;
    border: none;
    text-align: left;
    padding: 10px;
    color: grey;
}

.phone-number__menu-item .material-icons {
    width: 15px;
    height: 20px;
    margin-right: 2px;
    position: relative;
    right: 2px;
    font-size: 20px;
    color: grey;
}

.phone-number__dropdown-button .international-icon {
    color: grey;
    font-size: 20px;
}

.phone-number__menu-item:hover {
    background-color: rgba(242, 242, 242, 0.857);
}

.phone-number__menu-item > * {
    vertical-align: middle;
    font-size: 12px;
}

.phone-number__error {
    display: inline-block;
    opacity: 0;
    transition: opacity .5s ease;
    width: 50px;
}

.phone-number__error > div {
    background-color: rgb(253, 222, 227);
    border: 1px solid rgb(146, 71, 71);
    color: rgb(146, 71, 71);
    border-radius: 4px;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .1);
    padding: 10px 40px;
    max-width: 300px;
}

.phone-number__error > i {
    color: rgb(146, 71, 71);
    font-size: 24px;
    vertical-align: middle;
}

.phone-number__error > div > i {
    color: rgb(146, 71, 71);
    position: absolute;
    top: calc(50% - 15px);
    font-size: 30px;
    left: 5px;
    height: 30px;
    width: 30px;
}

.phone-number__error > div:before {
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    position: absolute;
    left: calc(50% - 20px);
    top: -11px;
    background-color: rgb(253, 222, 227);
    content: '';
    border: 1px solid rgb(146, 71, 71);
    z-index: 1;
    border-right: none;
    border-bottom: none;
}

.phone-number__empty-results {
    display: none;
    text-align: center;
    margin-top: 10px;
    color: grey;
    margin-bottom: 5px;
}

.phone-number__empty-results > i {
    font-size: 32px;
}

img[src=""],
img:not([src]) {
    visibility: hidden;
}
