/* 国际区号选择器样式（非登录页：15px 圆角，与上下普通输入框总长一致；登录页在 loginNew.jsp 中单独覆盖为横线样式） */
/* 组织机构、个人信息等表单：约束手机号行宽度与上下输入框对齐，参考 personInfo 上传头像等字段 */

/* 保证手机号 label 与 form-element-phone 整体在同一行不换行（排除 .hidden，避免覆盖登录页用户名模式下手机号行的隐藏；登录页内样式由 loginNew.jsp 单独覆盖） */
.form-item.form-item-phone:not(.hidden),
.form-item:has(.form-element-phone):not(.hidden) {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}
.form-item.form-item-phone:not(.hidden) .form-label,
.form-item:has(.form-element-phone):not(.hidden) .form-label {
	flex-shrink: 0;
	white-space: nowrap;
}
.form-item.form-item-phone:not(.hidden) .form-element.form-element-phone,
.form-item:has(.form-element-phone):not(.hidden) .form-element.form-element-phone {
	flex: 0 0 auto;
	min-width: 0;
	margin-left: 0;
}

.form-element-phone {
	overflow: hidden;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}
.form-element-phone .phone-input-wrapper {
	max-width: 100%;
	width: 100%;
	/* 区号80px + 间距8px + 手机号最长135px = 223px，避免整行换行 */
	max-width: 223px;
}
.phone-with-country-code {
	position: relative;
	overflow: visible;
	flex-shrink: 0;
	z-index: 1;
	display: inline-block;
	width: 80px;
	min-width: 80px;
}
/* 非登录页：区号+手机号总宽 223px；登录页在 loginNew.jsp 中覆盖为 max-width: 320px */
.phone-input-wrapper,
.f-fix.phone-input-wrapper,
.phone-input-wrapper.f-fix,
.form-element .phone-input-wrapper,
.form-element .f-fix.phone-input-wrapper {
	display: flex !important;
	align-items: stretch;
	gap: 8px;
	overflow: visible !important;
	flex-wrap: nowrap !important;
	width: 100%;
	max-width: 223px;
	min-width: 0;
	box-sizing: border-box;
}
/* 输入框样式的区号选择器（非登录页 15px 圆角） */
.country-code-selector {
	position: relative;
	flex-shrink: 0;
	overflow: visible;
	z-index: 2;
	width: 80px;
	min-width: 80px;
}
.country-code-display {
	display: flex;
	align-items: center;
	padding: 0 24px 0 8px;
	height: 34px;
	line-height: 34px;
	border: 1px solid #dcdfe6;
	border-radius: 15px;
	cursor: pointer;
	user-select: none;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.3s;
	position: relative;
	z-index: 2;
	pointer-events: auto;
	background-color: #fff;
	font-size: 14px;
}
.country-code-display:hover {
	border-color: #c0c4cc;
}
.country-code-selector.active .country-code-display {
	border-color: #56A13D;
	outline: none;
}
.country-code-flag {
	font-size: 16px;
	margin-right: 6px;
}
.country-code-value {
	font-size: 14px;
	color: #606266;
	margin-right: 4px;
	flex: 1;
	min-width: 0;
}
.country-code-arrow {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 10px;
	color: #909399;
	transition: transform 0.2s;
	pointer-events: none;
}
.country-code-selector.active .country-code-arrow {
	transform: translateY(-50%) rotate(180deg);
}
/* 下拉框使用固定定位覆盖在其他元素上方，不挤占布局 */
.country-code-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10000;
	background: #fff;
	border: 1px solid #e4e7ed;
	border-radius: 4px;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
	min-width: 280px;
	max-height: 300px;
	overflow: hidden;
	margin-top: 4px;
}
/* 追加到 body 时的定位样式 */
.country-code-dropdown.country-code-dropdown-fixed {
	position: fixed;
	margin-top: 0;
}
.country-code-search {
	padding: 8px;
	border-bottom: 1px solid #e4e7ed;
}
.country-code-search-input {
	width: 100%;
	height: 32px;
	padding: 0 8px;
	border: 1px solid #dcdfe6;
	border-radius: 4px;
	font-size: 14px;
	outline: none;
}
.country-code-search-input:focus {
	border-color: #56A13D;
}
.country-code-list {
	max-height: 240px;
	overflow-y: auto;
}
.country-code-item {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	cursor: pointer;
	transition: background-color 0.2s;
}
.country-code-item:hover {
	background-color: #f5f7fa;
}
.country-code-item.selected {
	background-color: #ecf5ff;
}
.country-code-item-flag {
	font-size: 20px;
	margin-right: 8px;
	width: 24px;
	text-align: center;
}
.country-code-item-name {
	flex: 1;
	font-size: 14px;
	color: #606266;
}
.country-code-item-code {
	font-size: 14px;
	color: #909399;
	margin-left: 8px;
}
/* 手机号输入框（非登录页 15px 圆角），宽度不超过 135px，与区号选择器并排不换行 */
.phone-number-input {
	flex: 1;
	min-width: 0;
	max-width: 135px;
	height: 34px;
	line-height: 34px;
	border: 1px solid #dcdfe6;
	border-radius: 15px;
	padding: 0 10px;
	font-size: 14px;
	box-sizing: border-box;
}
.phone-number-input:focus {
	border-color: #56A13D;
	outline: none;
}
/* 原生 select 模式的区号选择器（Common.selectCountryCode，非登录页 15px 圆角） */
.country-code-simple-select {
	flex-shrink: 0;
	width: 80px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid #dcdfe6;
	border-radius: 15px;
	font-size: 14px;
	box-sizing: border-box;
	background-color: #fff;
}
.country-code-simple-select:focus {
	border-color: #56A13D;
	outline: none;
}
