/**
 * Mirna Travel -- reusable international phone input.
 *
 * Shared by every customer phone field the widget enhances (see
 * mirna-phone-input.js). Deliberately scoped to .mirna-phone-input only --
 * no selector here reaches outside the widget, so it cannot affect any
 * other part of a consuming form.
 *
 * The whole control is forced direction:ltr (matching the site's existing
 * .mirna-phone-num convention for the header's phone number display) so
 * the dial code and digits always read left-to-right, even on RTL/Arabic
 * pages -- only the digit order stays fixed; the widget's outer label
 * layout still follows the page's own RTL rules via the consuming form.
 */
.mirna-phone-input {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 6px;
	direction: ltr;
	unicode-bidi: isolate;
}

.mirna-phone-input__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 0 10px;
	border: 1px solid #dfe7f5;
	border-radius: 12px;
	background: #f8fafc;
	color: #0f172a;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	max-width: 108px;
}

.mirna-phone-input__toggle:hover {
	background: #eef2f7;
}

.mirna-phone-input__toggle:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.mirna-phone-input__flag {
	font-size: 1.05rem;
	line-height: 1;
}

.mirna-phone-input__dial {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mirna-phone-input__caret {
	font-size: 0.7rem;
	color: #64748b;
	margin-inline-start: auto;
}

.mirna-phone-input__number {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #dfe7f5;
	border-radius: 12px;
	background: #f8fafc;
	color: #0f172a;
	font: inherit;
	font-size: .95rem;
	direction: ltr;
	unicode-bidi: isolate;
}

.mirna-phone-input__number:focus {
	outline: none;
	border-color: #60a5fa;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, .11);
}

.mirna-phone-input__panel {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: min(280px, 90vw);
	max-height: 320px;
	padding: 8px;
	border: 1px solid #dfe7f5;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

/* The class rule above sets `display` unconditionally, which otherwise
   defeats the browser's own [hidden] behavior (an author-stylesheet
   `display` declaration always overrides the user-agent [hidden] rule,
   regardless of selector specificity) -- so JS toggling panel.hidden had
   no visible effect. This restores it for this one element only. */
.mirna-phone-input__panel[hidden] {
	display: none;
}

.mirna-phone-input__search {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dfe7f5;
	border-radius: 10px;
	background: #f8fafc;
	color: #0f172a;
	font: inherit;
	font-size: .88rem;
}

.mirna-phone-input__search:focus {
	outline: none;
	border-color: #60a5fa;
}

.mirna-phone-input__list {
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mirna-phone-input__option {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #0f172a;
	font: inherit;
	font-size: .85rem;
	text-align: start;
	cursor: pointer;
}

.mirna-phone-input__option:hover,
.mirna-phone-input__option:focus-visible {
	background: #eff6ff;
	outline: none;
}

.mirna-phone-input__option-name {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mirna-phone-input__option-dial {
	flex: 0 0 auto;
	color: #64748b;
	direction: ltr;
	unicode-bidi: isolate;
}

@media (max-width: 480px) {
	.mirna-phone-input {
		flex-wrap: wrap;
	}

	.mirna-phone-input__toggle {
		max-width: none;
	}

	.mirna-phone-input__number {
		flex-basis: 100%;
	}

	.mirna-phone-input__panel {
		width: min(320px, 92vw);
	}
}
