@import "../../scss/variables";

.intl-tel-input {
	position: relative;
	border-color: #e1e6f1;

	.hide {
		display: none;
	}

	.flag-dropdown {
		position: absolute;
		z-index: 1;
		cursor: pointer;
		height: 40px;
		line-height: 40px;

		.selected-flag {
			margin: 1px 2px 1px 1px;
			padding: 11px 16px 10px 6px;
			background: #f2f5ff;

			&:hover {
				background-color: #eaeef9;
			}
		}
	}
}

.country-list .highlight {
	float: inherit;
}

.intl-tel-input {
	.flag-dropdown {
		.selected-flag .down-arrow {
			top: 6px;
			position: relative;
			left: 20px;
			width: 0;
			height: 0;
			border-left: 4px solid transparent;
			border-right: 4px solid transparent;
			border-top: 4px solid black;
		}

		.country-list {
			list-style: none;
			padding: 0;
			margin: 0;
			z-index: 1;
			overflow-y: scroll;
			box-shadow: 1px 1px 4px rgb(209, 212, 231);
			background-color: white;
			border: 0;
			position: absolute;
			top: 42px;
			width: 250px;
			max-height: 200px;
			box-shadow: 0px 12px 41px 0px rgba(108, 119, 138, 0.3);

			.divider {
				padding-bottom: 5px;
				margin-bottom: 5px;
				border-bottom: 1px solid #eaf0ff;
			}

			.country {
				line-height: 16px;
				padding: 10px 10px;
				font-size: 14px;

				.dial-code {
					color: #9097b5;
				}

				&.highlight {
					background-color: rgb(238, 242, 253);
					font-size: 14px;
					border: 0;
					border-radius: 0;
					margin: 0;
				}
			}

			.flag {
				display: inline-block;
				vertical-align: bottom;
				margin-right: 6px;
			}

			.country-name {
				margin-right: 6px;
			}
		}
	}

	input {
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		height: 39px;
		padding-left: 47px;
		position: relative;
		z-index: 0;
		border: 1px solid $border;
		width: 250px;

		&:focus {
			outline: none;
		}
	}
}

/* originally from https://github.com/lafeber/world-flags-sprite */

.f16 {
	.flag {
		width: 16px;
		height: 16px;
		background: url("../../plugins/telephoneinput/img/flags16.png") no-repeat;
	}

	._African_Union {
		background-position: 0 -16px;
	}

	._Arab_League {
		background-position: 0 -32px;
	}

	._ASEAN {
		background-position: 0 -48px;
	}

	._CARICOM {
		background-position: 0 -64px;
	}

	._CIS {
		background-position: 0 -80px;
	}

	._Commonwealth {
		background-position: 0 -96px;
	}

	._England {
		background-position: 0 -112px;
	}

	._European_Union {
		background-position: 0 -128px;
	}

	._Islamic_Conference {
		background-position: 0 -144px;
	}

	._Kosovo {
		background-position: 0 -160px;
	}

	._NATO {
		background-position: 0 -176px;
	}

	._Northern_Cyprus {
		background-position: 0 -192px;
	}

	._Northern_Ireland {
		background-position: 0 -208px;
	}

	._Olimpic_Movement {
		background-position: 0 -224px;
	}

	._OPEC {
		background-position: 0 -240px;
	}

	._Red_Cross {
		background-position: 0 -256px;
	}

	._Scotland {
		background-position: 0 -272px;
	}

	._Somaliland {
		background-position: 0 -288px;
	}

	._Tibet {
		background-position: 0 -304px;
	}

	._United_Nations {
		background-position: 0 -320px;
	}

	._Wales {
		background-position: 0 -336px;
	}

	.ad {
		background-position: 0 -352px;
	}

	.ae {
		background-position: 0 -368px;
	}

	.af {
		background-position: 0 -384px;
	}

	.ag {
		background-position: 0 -400px;
	}

	.ai {
		background-position: 0 -416px;
	}

	.al {
		background-position: 0 -432px;
	}

	.am {
		background-position: 0 -448px;
	}

	.an {
		background-position: 0 -464px;
	}

	.ao {
		background-position: 0 -480px;
	}

	.aq {
		background-position: 0 -496px;
	}

	.ar {
		background-position: 0 -512px;
	}

	.as {
		background-position: 0 -528px;
	}

	.at {
		background-position: 0 -544px;
	}

	.au {
		background-position: 0 -560px;
	}

	.aw {
		background-position: 0 -576px;
	}

	.az {
		background-position: 0 -592px;
	}

	.ba {
		background-position: 0 -608px;
	}

	.bb {
		background-position: 0 -624px;
	}

	.bd {
		background-position: 0 -640px;
	}

	.be {
		background-position: 0 -656px;
	}

	.bf {
		background-position: 0 -672px;
	}

	.bg {
		background-position: 0 -688px;
	}

	.bh {
		background-position: 0 -704px;
	}

	.bi {
		background-position: 0 -720px;
	}

	.bj {
		background-position: 0 -736px;
	}

	.bm {
		background-position: 0 -752px;
	}

	.bn {
		background-position: 0 -768px;
	}

	.bo {
		background-position: 0 -784px;
	}

	.br {
		background-position: 0 -800px;
	}

	.bs {
		background-position: 0 -816px;
	}

	.bt {
		background-position: 0 -832px;
	}

	.bw {
		background-position: 0 -848px;
	}

	.by {
		background-position: 0 -864px;
	}

	.bz {
		background-position: 0 -880px;
	}

	.ca {
		background-position: 0 -896px;
	}

	.cg {
		background-position: 0 -912px;
	}

	.cf {
		background-position: 0 -928px;
	}

	.cd {
		background-position: 0 -944px;
	}

	.ch {
		background-position: 0 -960px;
	}

	.ci {
		background-position: 0 -976px;
	}

	.ck {
		background-position: 0 -992px;
	}

	.cl {
		background-position: 0 -1008px;
	}

	.cm {
		background-position: 0 -1024px;
	}

	.cn {
		background-position: 0 -1040px;
	}

	.co {
		background-position: 0 -1056px;
	}

	.cr {
		background-position: 0 -1072px;
	}

	.cu {
		background-position: 0 -1088px;
	}

	.cv {
		background-position: 0 -1104px;
	}

	.cy {
		background-position: 0 -1120px;
	}

	.cz {
		background-position: 0 -1136px;
	}

	.de {
		background-position: 0 -1152px;
	}

	.dj {
		background-position: 0 -1168px;
	}

	.dk {
		background-position: 0 -1184px;
	}

	.dm {
		background-position: 0 -1200px;
	}

	.do {
		background-position: 0 -1216px;
	}

	.dz {
		background-position: 0 -1232px;
	}

	.ec {
		background-position: 0 -1248px;
	}

	.ee {
		background-position: 0 -1264px;
	}

	.eg {
		background-position: 0 -1280px;
	}

	.eh {
		background-position: 0 -1296px;
	}

	.er {
		background-position: 0 -1312px;
	}

	.es {
		background-position: 0 -1328px;
	}

	.et {
		background-position: 0 -1344px;
	}

	.fi {
		background-position: 0 -1360px;
	}

	.fj {
		background-position: 0 -1376px;
	}

	.fm {
		background-position: 0 -1392px;
	}

	.fo {
		background-position: 0 -1408px;
	}

	.fr {
		background-position: 0 -1424px;
	}

	.ga {
		background-position: 0 -1440px;
	}

	.gb {
		background-position: 0 -1456px;
	}

	.gd {
		background-position: 0 -1472px;
	}

	.ge {
		background-position: 0 -1488px;
	}

	.gg {
		background-position: 0 -1504px;
	}

	.gh {
		background-position: 0 -1520px;
	}

	.gi {
		background-position: 0 -1536px;
	}

	.gl {
		background-position: 0 -1552px;
	}

	.gm {
		background-position: 0 -1568px;
	}

	.gn {
		background-position: 0 -1584px;
	}

	.gp {
		background-position: 0 -1600px;
	}

	.gq {
		background-position: 0 -1616px;
	}

	.gr {
		background-position: 0 -1632px;
	}

	.gt {
		background-position: 0 -1648px;
	}

	.gu {
		background-position: 0 -1664px;
	}

	.gw {
		background-position: 0 -1680px;
	}

	.gy {
		background-position: 0 -1696px;
	}

	.hk {
		background-position: 0 -1712px;
	}

	.hn {
		background-position: 0 -1728px;
	}

	.hr {
		background-position: 0 -1744px;
	}

	.ht {
		background-position: 0 -1760px;
	}

	.hu {
		background-position: 0 -1776px;
	}

	.id,
	.mc {
		background-position: 0 -1792px;
	}

	.ie {
		background-position: 0 -1808px;
	}

	.il {
		background-position: 0 -1824px;
	}

	.im {
		background-position: 0 -1840px;
	}

	.in {
		background-position: 0 -1856px;
	}

	.iq {
		background-position: 0 -1872px;
	}

	.ir {
		background-position: 0 -1888px;
	}

	.is {
		background-position: 0 -1904px;
	}

	.it {
		background-position: 0 -1920px;
	}

	.je {
		background-position: 0 -1936px;
	}

	.jm {
		background-position: 0 -1952px;
	}

	.jo {
		background-position: 0 -1968px;
	}

	.jp {
		background-position: 0 -1984px;
	}

	.ke {
		background-position: 0 -2000px;
	}

	.kg {
		background-position: 0 -2016px;
	}

	.kh {
		background-position: 0 -2032px;
	}

	.ki {
		background-position: 0 -2048px;
	}

	.km {
		background-position: 0 -2064px;
	}

	.kn {
		background-position: 0 -2080px;
	}

	.kp {
		background-position: 0 -2096px;
	}

	.kr {
		background-position: 0 -2112px;
	}

	.kw {
		background-position: 0 -2128px;
	}

	.ky {
		background-position: 0 -2144px;
	}

	.kz {
		background-position: 0 -2160px;
	}

	.la {
		background-position: 0 -2176px;
	}

	.lb {
		background-position: 0 -2192px;
	}

	.lc {
		background-position: 0 -2208px;
	}

	.li {
		background-position: 0 -2224px;
	}

	.lk {
		background-position: 0 -2240px;
	}

	.lr {
		background-position: 0 -2256px;
	}

	.ls {
		background-position: 0 -2272px;
	}

	.lt {
		background-position: 0 -2288px;
	}

	.lu {
		background-position: 0 -2304px;
	}

	.lv {
		background-position: 0 -2320px;
	}

	.ly {
		background-position: 0 -2336px;
	}

	.ma {
		background-position: 0 -2352px;
	}

	.md {
		background-position: 0 -2368px;
	}

	.me {
		background-position: 0 -2384px;
	}

	.mg {
		background-position: 0 -2400px;
	}

	.mh {
		background-position: 0 -2416px;
	}

	.mk {
		background-position: 0 -2432px;
	}

	.ml {
		background-position: 0 -2448px;
	}

	.mm {
		background-position: 0 -2464px;
	}

	.mn {
		background-position: 0 -2480px;
	}

	.mo {
		background-position: 0 -2496px;
	}

	.mq {
		background-position: 0 -2512px;
	}

	.mr {
		background-position: 0 -2528px;
	}

	.ms {
		background-position: 0 -2544px;
	}

	.mt {
		background-position: 0 -2560px;
	}

	.mu {
		background-position: 0 -2576px;
	}

	.mv {
		background-position: 0 -2592px;
	}

	.mw {
		background-position: 0 -2608px;
	}

	.mx {
		background-position: 0 -2624px;
	}

	.my {
		background-position: 0 -2640px;
	}

	.mz {
		background-position: 0 -2656px;
	}

	.na {
		background-position: 0 -2672px;
	}

	.nc {
		background-position: 0 -2688px;
	}

	.ne {
		background-position: 0 -2704px;
	}

	.ng {
		background-position: 0 -2720px;
	}

	.ni {
		background-position: 0 -2736px;
	}

	.nl {
		background-position: 0 -2752px;
	}

	.no {
		background-position: 0 -2768px;
	}

	.np {
		background-position: 0 -2784px;
	}

	.nr {
		background-position: 0 -2800px;
	}

	.nz {
		background-position: 0 -2816px;
	}

	.om {
		background-position: 0 -2832px;
	}

	.pa {
		background-position: 0 -2848px;
	}

	.pe {
		background-position: 0 -2864px;
	}

	.pf {
		background-position: 0 -2880px;
	}

	.pg {
		background-position: 0 -2896px;
	}

	.ph {
		background-position: 0 -2912px;
	}

	.pk {
		background-position: 0 -2928px;
	}

	.pl {
		background-position: 0 -2944px;
	}

	.pr {
		background-position: 0 -2960px;
	}

	.ps {
		background-position: 0 -2976px;
	}

	.pt {
		background-position: 0 -2992px;
	}

	.pw {
		background-position: 0 -3008px;
	}

	.py {
		background-position: 0 -3024px;
	}

	.qa {
		background-position: 0 -3040px;
	}

	.re {
		background-position: 0 -3056px;
	}

	.ro {
		background-position: 0 -3072px;
	}

	.rs {
		background-position: 0 -3088px;
	}

	.ru {
		background-position: 0 -3104px;
	}

	.rw {
		background-position: 0 -3120px;
	}

	.sa {
		background-position: 0 -3136px;
	}

	.sb {
		background-position: 0 -3152px;
	}

	.sc {
		background-position: 0 -3168px;
	}

	.sd {
		background-position: 0 -3184px;
	}

	.se {
		background-position: 0 -3200px;
	}

	.sg {
		background-position: 0 -3216px;
	}

	.si {
		background-position: 0 -3232px;
	}

	.sk {
		background-position: 0 -3248px;
	}

	.sl {
		background-position: 0 -3264px;
	}

	.sm {
		background-position: 0 -3280px;
	}

	.sn {
		background-position: 0 -3296px;
	}

	.so {
		background-position: 0 -3312px;
	}

	.sr {
		background-position: 0 -3328px;
	}

	.st {
		background-position: 0 -3344px;
	}

	.sv {
		background-position: 0 -3360px;
	}

	.sy {
		background-position: 0 -3376px;
	}

	.sz {
		background-position: 0 -3392px;
	}

	.tc {
		background-position: 0 -3408px;
	}

	.td {
		background-position: 0 -3424px;
	}

	.tg {
		background-position: 0 -3440px;
	}

	.th {
		background-position: 0 -3456px;
	}

	.tj {
		background-position: 0 -3472px;
	}

	.tl {
		background-position: 0 -3488px;
	}

	.tm {
		background-position: 0 -3504px;
	}

	.tn {
		background-position: 0 -3520px;
	}

	.to {
		background-position: 0 -3536px;
	}

	.tr {
		background-position: 0 -3552px;
	}

	.tt {
		background-position: 0 -3568px;
	}

	.tv {
		background-position: 0 -3584px;
	}

	.tw {
		background-position: 0 -3600px;
	}

	.tz {
		background-position: 0 -3616px;
	}

	.ua {
		background-position: 0 -3632px;
	}

	.ug {
		background-position: 0 -3648px;
	}

	.us {
		background-position: 0 -3664px;
	}

	.uy {
		background-position: 0 -3680px;
	}

	.uz {
		background-position: 0 -3696px;
	}

	.va {
		background-position: 0 -3712px;
	}

	.vc {
		background-position: 0 -3728px;
	}

	.ve {
		background-position: 0 -3744px;
	}

	.vg {
		background-position: 0 -3760px;
	}

	.vi {
		background-position: 0 -3776px;
	}

	.vn {
		background-position: 0 -3792px;
	}

	.vu {
		background-position: 0 -3808px;
	}

	.ws {
		background-position: 0 -3824px;
	}

	.ye {
		background-position: 0 -3840px;
	}

	.za {
		background-position: 0 -3856px;
	}

	.zm {
		background-position: 0 -3872px;
	}

	.zw {
		background-position: 0 -3888px;
	}
}

.telephone-input {
	.btn {
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
		line-height: 1.4;
	}

	.sp-container button {
		line-height: 1.4;
	}
}
