/* Ultimate Newswire Pro Max — searchable country / dial-code picker.
   Enhances .unpm-cc-select into a button + searchable dropdown. Loads on every
   screen that renders a media-contact form (PR editor, customer portal,
   admin media-contacts). */

.unpm-cc {
	position: relative;
	display: inline-block;
	vertical-align: top;
}

/* Keep the native select submittable AND focusable (so HTML5 `required`
   validation still works) but invisible: a transparent overlay on the button,
   click-through so the button handles interaction. */
.unpm-cc .unpm-cc-native {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.unpm-cc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 132px;
	max-width: 220px;
	padding: 8px 11px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.3;
	color: #111827;
	cursor: pointer;
	text-align: left;
}

.unpm-cc-btn:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.15 );
}

.unpm-cc-btn-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Block variant for general searchable selects (e.g. admin package / add-on
   pickers): wider button + wider panel than the compact country-code picker. */
.unpm-cc--block {
	display: block;
}

.unpm-cc--block .unpm-cc-btn {
	width: 100%;
	min-width: 0;
	max-width: 460px;
}

.unpm-cc--block .unpm-cc-panel {
	width: 420px;
}

.unpm-cc-caret {
	margin-left: auto;
	color: #667085;
	font-size: 11px;
}

.unpm-cc-panel {
	position: absolute;
	z-index: 100000;
	top: calc( 100% + 4px );
	left: 0;
	width: 300px;
	max-width: 86vw;
	box-sizing: border-box;
	padding: 8px;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba( 16, 24, 40, 0.14 );
}

.unpm-cc-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	margin: 0 0 6px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font-size: 14px;
}

.unpm-cc-search:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.15 );
}

.unpm-cc-list {
	max-height: 264px;
	overflow-y: auto;
}

.unpm-cc-opt {
	padding: 7px 10px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.3;
	color: #1f2937;
	cursor: pointer;
}

.unpm-cc-opt[hidden] {
	display: none;
}

.unpm-cc-opt:hover,
.unpm-cc-opt.is-active {
	background: #f2f4f7;
}

.unpm-cc-opt.is-selected {
	font-weight: 600;
	color: #2563eb;
}
