.phone-country-group { display: flex; position: relative; width: 100%; overflow: visible !important; }
.phone-country-group > svg { display: none; }
.phone-country-picker { position: relative; flex: 0 0 110px; min-width: 0; text-align: left; }
.phone-country-picker summary {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    box-sizing: border-box; height: 100%; min-height: 43px; padding: 8px 10px;
    border: 2px solid var(--border-color); border-radius: 25px 0 0 25px;
    background: var(--bg-secondary); color: var(--text-primary); font: inherit; cursor: pointer; list-style: none;
}
.phone-country-picker summary::-webkit-details-marker { display: none; }
.phone-country-flag { position: static !important; transform: none !important; width: 24px !important; height: 16px !important; flex: 0 0 24px; margin: 0 !important; }
.phone-country-picker summary::after { content: '⌄'; }
.phone-country-picker[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phone-country-picker.opens-above[open] summary { border-radius: 0 0 0 25px; }
.phone-country-picker.opens-above .phone-country-menu { top: auto; bottom: 100%; border-radius: 16px 16px 0 0; }
.phone-country-picker summary:hover, .phone-country-menu button:hover { background: var(--hover-bg); }
.phone-country-picker summary:focus-visible, .phone-country-menu button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: -3px; }
.phone-country-menu {
    position: absolute; z-index: 20; top: 100%; left: 0; width: 240px; max-width: 80vw;
    max-height: 220px; overflow-y: auto; border: 2px solid var(--border-color);
    border-radius: 0 0 16px 16px; background: var(--bg-primary); box-sizing: border-box;
}
.phone-country-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px;
    margin: 0; border: 0; border-radius: 0; background: transparent;
    color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; letter-spacing: normal; text-transform: none;
}
.phone-country-group .phone-code[hidden] { display: none !important; }
.phone-country-group.phone-custom-code .phone-country-picker { flex-basis: 48px; }
.phone-country-group.phone-custom-code .phone-code {
    flex: 0 0 64px; width: 64px; padding: 8px 4px; border-radius: 0 !important;
}
.phone-country-group .phone-number { min-width: 0; }
.phone-error { display: block; color: var(--delete-red, #c0392b); font-size: .85rem; text-align: left; margin: 5px 0; }
.phone-error[hidden] { display: none; }
