input.phone-invalid {
	border: 1px solid #e53935 !important;
	box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.25);
}

.phone-field-anchor {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}

.phone-field-anchor input[name=author_personal_mobile] {
	display: block;
	width: auto;
	min-width: 220px;
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.phone-field-anchor {
		display: block;
		width: 100%;
	}

	.phone-field-anchor input[name=author_personal_mobile] {
		width: 100%;
	}
}

.phone-verify-hint {
	display: none;
	position: absolute;
	z-index: 50;
	right: 0;
	left: auto;
	bottom: calc(100% + 8px);
	max-width: 320px;
	padding: 12px 32px 12px 14px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #ccc;
	color: #000;
	font-size: 13px;
	line-height: 1.4;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.phone-verify-hint--floating {
	position: fixed;
	z-index: 10050;
	right: auto;
	left: 0;
	bottom: auto;
}

.phone-verify-hint.is-visible {
	display: block;
}

.phone-verify-hint__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #000;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}

.phone-verify-hint__close:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.06);
}

.phone-verify-hint__text {
	display: block;
	padding-right: 4px;
}

.phone-verify-hint::after {
	content: '';
	position: absolute;
	right: 24px;
	bottom: -6px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	transform: rotate(45deg);
}

.phone-verify-hint--floating.phone-verify-hint--below::after {
	top: -6px;
	bottom: auto;
	border-right: 1px solid #ccc;
	border-bottom: none;
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	transform: rotate(45deg);
}
