.phone-dropdown {
    position: relative;
    flex-shrink: 0;
}

.phone-dropdown__bar {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.phone-dropdown__primary {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    z-index: 31;
}

.phone-dropdown__primary:hover {
    color: var(--brand);
}

.phone-dropdown__icon {
    display: flex;
    color: var(--text);
    width: 1.2rem;
    height: 1.2rem;
    align-items: center;
    justify-content: center;
}

.phone-dropdown__primary:hover .phone-dropdown__icon {
    color: var(--brand);
}

.phone-dropdown__caret {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s ease-in-out;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5" fill="none"><path d="M5 5L0 0H10L5 5Z" fill="%231C1B1F"/></svg>');
    background-position: center;
    background-size: 10px;
    background-repeat: no-repeat;
    position: relative;
    z-index: 31;
}

.phone-dropdown.has-extra:hover .phone-dropdown__caret,
.phone-dropdown.has-extra:focus-within .phone-dropdown__caret {
    transform: rotateX(180deg);
}

.phone-dropdown__panel-wrap {
    position: absolute;
    z-index: 30;
    top: 100%;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(1rem);
    border-radius: 0 0 1.2rem 1.2rem;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}


.phone-dropdown__panel-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -0.4rem;
    height: 0.4rem;
}

.phone-dropdown__panel-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200%;
    width: calc(100% + 2.4rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-muted);
    border-radius: 0 0 1.2rem 1.2rem;
}

.phone-dropdown.has-extra:hover .phone-dropdown__panel-wrap,
.phone-dropdown.has-extra:focus-within .phone-dropdown__panel-wrap {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.phone-dropdown__panel {
    position: relative;
    margin: 0;
    padding: 1.2rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 31;
}

.phone-dropdown__item {
    padding-left: calc(1.2rem + .2rem);
}


.phone-dropdown__link {
    display: flex;
    flex-direction: column;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
    font-size: 1rem;
}


.phone-dropdown__name {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.phone-dropdown__number {
    font-weight: 500;
}

.phone-dropdown__link:hover {
    color: var(--brand);
}

.phone-dropdown__link:hover .phone-dropdown__name {
    color: var(--brand-muted);
}

@media (prefers-reduced-motion: reduce) {

    .phone-dropdown__caret,
    .phone-dropdown__panel-wrap {
        transition: none;
    }
}