/*
 * International phone field: one bordered input holding the whole number, with a
 * flag chip on the left that opens the searchable country list.
 */
.maven-phone-field {
	position: relative;
	z-index: 5;
	min-width: 0;
}

.maven-phone-field > label {
	display: block;
	margin-bottom: 0.55rem;
	color: var(--maven-heading, #102a3a);
	font-size: var(--maven-small, 0.9rem);
	font-weight: 750;
}

.maven-phone-field__req {
	margin-left: 0.15rem;
	color: #d0342c;
}

.maven-phone-field__box {
	position: relative;
	display: flex;
	align-items: stretch;
	min-width: 0;
	min-height: 3.5rem;
	border: 1px solid #c7d3dc;
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.maven-phone-field__box:hover {
	border-color: #93a7b6;
}

.maven-phone-field__box:focus-within {
	border-color: var(--maven-blue, #1f6ea5);
	box-shadow: 0 0 0 3px rgba(31, 110, 165, 0.18);
}

.maven-phone-field__flagbtn {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0.35rem;
	margin: 0;
	padding: 0 0.6rem;
	border: 0;
	border-right: 1px solid #e6ecf1;
	border-radius: 4px 0 0 4px;
	background: #f7f9fa;
	color: #22303c;
	cursor: pointer;
}

.maven-phone-field__flagbtn:hover {
	background: #eef2f5;
}

.maven-phone-field__flagbtn:focus-visible {
	outline: 2px solid var(--maven-blue, #1f6ea5);
	outline-offset: -2px;
}

.maven-phone-field__flag {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(16, 42, 58, 0.16);
}

.maven-phone-field__chevron {
	width: 0;
	height: 0;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
	border-top: 5px solid #6b7c8a;
}

.maven-phone-field__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 3.4rem;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 0 4px 4px 0;
	background: transparent;
	color: #102a3a;
	font: 400 1rem/1.4 inherit;
	font-variant-numeric: tabular-nums;
}

.maven-phone-field__input:focus {
	outline: 0;
}

/* The theme form makes inputs width:100%; inside the flex box that breaks. */
.maven-inquiry-field .maven-phone-field__input {
	width: auto;
}

/* Pick list */
.maven-phone-field__panel {
	position: absolute;
	z-index: 60;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	max-height: 300px;
	overflow: hidden;
	border: 1px solid #dbe3e9;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(16, 42, 58, 0.18);
}

.maven-phone-field__panel[hidden] {
	display: none;
}

/* The theme styles every input inside .maven-inquiry-field; reset the search box. */
.maven-phone-field__search,
.maven-inquiry-field .maven-phone-field__search {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0.6rem 0.85rem;
	border: 0;
	border-bottom: 1px solid #eef2f5;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: #22303c;
	font: 400 0.95rem/1.4 inherit;
}

.maven-phone-field__search:hover,
.maven-phone-field__search:focus,
.maven-inquiry-field .maven-phone-field__search:focus {
	border-color: transparent;
	border-bottom-color: #dfe6eb;
	outline: 0;
	box-shadow: none;
}

.maven-phone-field__list {
	max-height: 260px;
	margin: 0;
	padding: 0.25rem 0;
	overflow-y: auto;
	list-style: none;
}

.maven-phone-field__list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.85rem;
	color: #22303c;
	font-size: 0.9rem;
	line-height: 1.2;
	cursor: pointer;
}

.maven-phone-field__list li .maven-phone-field__dial {
	margin-left: auto;
	color: #8b98a4;
	font-size: 0.85rem;
}

.maven-phone-field__list li.is-active,
.maven-phone-field__list li:hover {
	background: #f1f3f5;
}

.maven-phone-field__empty {
	margin: 0;
	padding: 0.75rem 0.85rem;
	color: #8b98a4;
	font-size: 0.9rem;
}

.maven-phone-field__empty[hidden] {
	display: none;
}

.maven-phone-field__error {
	margin: 0.45rem 0 0;
	color: #d0342c;
	font-size: var(--maven-small, 0.9rem);
	font-weight: 500;
}

.maven-phone-field__error[hidden] {
	display: none;
}

/* Document gate: its own labels wrap the control, ours must not. */
.maven-document-access__field > label {
	display: block;
	margin: 0 0 0.55rem;
	font-weight: 750;
}

@media (max-width: 560px) {
	.maven-phone-field__list {
		max-height: 45vh;
	}
}

/* Country combobox: same visual language as the phone field. */
.maven-country-field {
	position: relative;
	z-index: 4;
	min-width: 0;
}

.maven-country-field > label {
	display: block;
	margin-bottom: 0.55rem;
	color: var(--maven-heading, #102a3a);
	font-size: var(--maven-small, 0.9rem);
	font-weight: 750;
}

.maven-field__req {
	margin-left: 0.15rem;
	color: #d0342c;
}

.maven-field__box {
	position: relative;
	display: flex;
	align-items: stretch;
	min-width: 0;
	min-height: 3.5rem;
	border: 1px solid #c7d3dc;
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.maven-field__box:hover {
	border-color: #93a7b6;
}

.maven-field__box:focus-within {
	border-color: var(--maven-blue, #1f6ea5);
	box-shadow: 0 0 0 3px rgba(31, 110, 165, 0.18);
}

.maven-field__flagbtn {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0.35rem;
	margin: 0;
	padding: 0 0.6rem;
	border: 0;
	border-right: 1px solid #e6ecf1;
	border-radius: 4px 0 0 4px;
	background: #f7f9fa;
	color: #22303c;
	cursor: pointer;
}

.maven-field__flagbtn:hover {
	background: #eef2f5;
}

.maven-field__flagbtn .maven-field__chevron {
	transition: transform 0.15s ease;
}

.maven-field__flagbtn[aria-expanded='true'] .maven-field__chevron {
	transform: rotate(180deg);
}

.maven-field__flag {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(16, 42, 58, 0.16);
}

.maven-field__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 3.4rem;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #102a3a;
	font: 400 1rem/1.4 inherit;
}

.maven-inquiry-field .maven-field__input {
	width: auto;
}

.maven-field__input:focus {
	outline: 0;
}

.maven-field__toggle {
	display: inline-flex;
	align-items: center;
	padding: 0 0.7rem;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.maven-field__chevron {
	width: 0;
	height: 0;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
	border-top: 5px solid #6b7c8a;
}

.maven-field__panel {
	position: absolute;
	z-index: 60;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	max-height: 300px;
	overflow: hidden;
	border: 1px solid #dbe3e9;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(16, 42, 58, 0.18);
}

.maven-field__panel[hidden] {
	display: none;
}

.maven-field__search,
.maven-inquiry-field .maven-field__search {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0.6rem 0.85rem;
	border: 0;
	border-bottom: 1px solid #eef2f5;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: #22303c;
	font: 400 0.95rem/1.4 inherit;
}

.maven-field__search:hover,
.maven-field__search:focus,
.maven-inquiry-field .maven-field__search:focus {
	border-color: transparent;
	border-bottom-color: #dfe6eb;
	outline: 0;
	box-shadow: none;
}

.maven-field__list {
	max-height: 260px;
	margin: 0;
	padding: 0.25rem 0;
	overflow-y: auto;
	list-style: none;
}

.maven-field__list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.85rem;
	color: #22303c;
	font-size: 0.9rem;
	line-height: 1.2;
	cursor: pointer;
}

.maven-field__list li.is-active,
.maven-field__list li:hover {
	background: #f1f3f5;
}

.maven-field__empty {
	margin: 0;
	padding: 0.75rem 0.85rem;
	color: #8b98a4;
	font-size: 0.9rem;
}

.maven-field__empty[hidden] {
	display: none;
}

/* One look for every inline error, matching the theme's own field message. */
.maven-inquiry-field__error,
.maven-phone-field__error,
.maven-field__error {
	margin: 0.45rem 0 0;
	color: #d0342c;
	font-size: var(--maven-small, 0.9rem);
	font-weight: 650;
	line-height: 1.65;
}

.maven-field__error[hidden] {
	display: none;
}

.maven-document-access__field > label.maven-country-label {
	display: block;
}

/* `display: flex` on the rows beats the UA `[hidden] { display: none }` rule, so
   filtered-out options stayed visible. Keep this rule last. */
.maven-phone-field__list li[hidden],
.maven-field__list li[hidden] {
	display: none;
}

/* Theme rules style every [aria-hidden] arrow span inside buttons/links; keep these
   two carets as plain CSS triangles and let the open state still rotate them. */
.maven-phone-field__chevron,
.maven-field__chevron {
	display: block !important;
	flex: 0 0 auto !important;
	width: 0 !important;
	height: 0 !important;
	overflow: visible !important;
	background: none !important;
	font-size: 0;
	line-height: 0;
	border: 0 !important;
	border-right: 4px solid transparent !important;
	border-left: 4px solid transparent !important;
	border-bottom: 0 !important;
	border-top: 5px solid #6b7c8a !important;
}

.maven-phone-field__chevron::before,
.maven-phone-field__chevron::after,
.maven-field__chevron::before,
.maven-field__chevron::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
}

/* The reveal animation owns `transform` on these fields, so flip the triangle
   with borders instead of rotating it. */
.maven-field__flagbtn[aria-expanded='true'] .maven-field__chevron {
	border-top-color: transparent !important;
	border-bottom: 5px solid #6b7c8a !important;
}
