/**
 * HuPhoneInput stílusok
 * Fancy, reszponzív, kereszt-böngésző kompatibilis megjelenés a
 * magyar telefonszám mezőhöz (+36 előtaggal).
 */
.huphone {
	display: block;
	width: 100%;
	max-width: 260px;
	font-family: inherit;
}

/* Beágyazáshoz, ha a mező egy inline-block label mellett kell hogy álljon
   (pl. az egyszerű reserveframe popup form-row elrendezésében). */
.huphone--inline {
	display: inline-block;
	vertical-align: middle;
	width: 180px;
	max-width: 180px;
}

.huphone__row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: stretch;
	-ms-flex-align: stretch;
	align-items: stretch;
	width: 100%;
	background: #fff;
	border: 1px solid #b2b2b2;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 4px 0 rgba(168, 168, 168, 0.35) inset;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.huphone__prefix {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 0 8px;
	background: #eef4e5;
	color: #4c6b21;
	font-weight: 700;
	font-size: 12px;
	border-right: 1px solid #d8e0cd;
	white-space: nowrap;
	letter-spacing: 0.3px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.huphone__input {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	padding: 8px 8px;
	font-size: 13px;
	font-family: inherit;
	letter-spacing: 0.6px;
	-webkit-appearance: none;
}

.huphone__icon {
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.huphone__row:focus-within {
	border-color: #7ab52f;
	box-shadow: 0 0 0 3px rgba(122, 181, 47, 0.18);
}

.huphone.is-valid .huphone__row {
	border-color: #7ab52f;
}

.huphone.is-valid .huphone__icon {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	color: #5a9600;
}

.huphone.is-valid .huphone__icon:before {
	content: "\2713";
}

.huphone.is-invalid .huphone__row {
	border-color: #d60000;
	-webkit-animation: huphoneShake 0.32s;
	animation: huphoneShake 0.32s;
}

.huphone.is-invalid .huphone__icon {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	color: #d60000;
}

.huphone.is-invalid .huphone__icon:before {
	content: "!";
}

.huphone__msg {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.3;
	color: #888;
	min-height: 13px;
}

.huphone__msg--error {
	color: #d60000;
	font-weight: 600;
}

@-webkit-keyframes huphoneShake {
	10%, 90% { -webkit-transform: translateX(-1px); }
	20%, 80% { -webkit-transform: translateX(2px); }
	30%, 50%, 70% { -webkit-transform: translateX(-4px); }
	40%, 60% { -webkit-transform: translateX(4px); }
}

@keyframes huphoneShake {
	10%, 90% { transform: translateX(-1px); }
	20%, 80% { transform: translateX(2px); }
	30%, 50%, 70% { transform: translateX(-4px); }
	40%, 60% { transform: translateX(4px); }
}

@media (max-width: 480px) {
	.huphone {
		max-width: 100%;
	}

	.huphone__input {
		font-size: 16px;
		padding: 10px 8px;
	}
}
