.mk-country-picker {
    position: relative;
}

.mk-country-picker-field {
    position: relative;
    display: flex;
    align-items: stretch;
}

.mk-country-picker-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mk-muted, #6b7280);
    pointer-events: none;
    z-index: 2;
}

.mk-country-picker-search {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.35rem;
    border: 1px solid var(--mk-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.mk-country-picker-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--mk-muted, #6b7280);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-country-picker-toggle:hover,
.mk-country-picker-toggle:focus {
    background: rgba(0, 0, 0, 0.06);
    color: var(--mk-primary, #c45c26);
    outline: none;
}

.mk-country-picker.is-open .mk-country-picker-toggle svg {
    transform: rotate(180deg);
}

.mk-country-picker-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.mk-country-picker-list[hidden] {
    display: none !important;
}

.mk-country-picker-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.mk-country-picker-option:hover,
.mk-country-picker-option.is-focused {
    background: rgba(196, 92, 38, 0.08);
}

.mk-country-picker-option.is-selected {
    background: rgba(196, 92, 38, 0.12);
    font-weight: 600;
}

.mk-country-picker-option-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-country-picker-option-meta {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--mk-muted, #6b7280);
}

.mk-country-picker-empty {
    padding: 0.75rem 0.85rem;
    color: var(--mk-muted, #6b7280);
    font-size: 0.9rem;
}

.mk-country-detect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
}

.mk-country-detect[hidden] {
    display: none !important;
}

.mk-country-detect-btn {
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid var(--mk-border);
    background: #fff;
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.mk-country-picker-hint {
    font-size: 0.8rem;
    color: var(--mk-muted, #6b7280);
    margin: 0.35rem 0 0;
}

.mk-phone-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.mk-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: var(--mk-bg, #f6f3ef);
    border: 1px solid var(--mk-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--mk-text);
    white-space: nowrap;
}

.mk-phone-row input {
    flex: 1;
    min-width: 0;
    border-radius: 0 10px 10px 0 !important;
}
