/* Country Selector Styles */
.ionmara-phone-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ionmara-phone-code {
    flex: 0 0 200px;
    position: relative;
}

.ionmara-country-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    cursor: pointer;
}

/* Ensure emoji flags render (JS uses emoji, not image sprites) */
.ionmara-country-select,
.ionmara-country-select option {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji',
                  'Android Emoji', 'EmojiSymbols', 'Segoe UI Symbol',
                  system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Focus state */
.ionmara-country-select:focus {
    outline: none;
    border-color: #EF4136;
    box-shadow: 0 0 0 3px rgba(239, 65, 54, 0.1);
}

/* Phone number field */
.ionmara-phone-number {
    flex: 1;
}

/* For Firefox */
@-moz-document url-prefix() {
    .ionmara-country-select {
        text-indent: 2px;
        text-overflow: '';
        padding-left: 8px;
    }
}

/* For IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .ionmara-country-select {
        padding-right: 30px;
    }
    .ionmara-country-select::-ms-expand {
        display: none;
    }
}

/* For Edge */
@supports (-ms-ime-align: auto) {
    .ionmara-country-select {
        padding-right: 30px;
    }
}
