/**
 * 申込フォーム拡張
 *
 * 既存のフォームデザインを壊さないよう、追加する要素だけにスタイルを当てる。
 * 既存のクラス・要素セレクタには一切触れない。
 */

.tfe-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.tfe-suggest {
	position: absolute;
	z-index: 9999;
	top: 100%;
	left: 0;
	min-width: 100%;
	max-width: 420px;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	text-align: left;
}

.tfe-suggest-item {
	padding: 10px 12px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
	border-bottom: 1px solid #eee;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tfe-suggest-item:last-child {
	border-bottom: none;
}

.tfe-suggest-item:hover {
	background: #f0f6fa;
}

.tfe-suggest-note {
	padding: 9px 12px;
	font-size: 12px;
	line-height: 1.5;
	color: #777;
	background: #fafafa;
}

/*
 * 「選択済み」表示の集約領域
 *
 * 銀行欄・支店欄は横並びの構成のため、各欄の直下に出すと
 * スマートフォンでレイアウトが崩れる。
 * 1 か所へまとめ、幅いっぱいの独立した行として左寄せで表示する。
 */
.tfe-picked-area {
	width: 100%;
	flex-basis: 100%;
	margin: 6px 0 2px;
	text-align: left;
}

.tfe-picked {
	display: none;
	margin: 2px 0;
	font-size: 12px;
	line-height: 1.6;
	color: #1d6f42;
	font-weight: bold;
	text-align: left;
}

.tfe-picked:before {
	content: "\2713";
	margin-right: 4px;
}

input.tfe-input-picked {
	border-color: #1d6f42 !important;
	background-color: #f4fbf7 !important;
}

/* 候補にない支店名を入力したときの案内 */
.tfe-error {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.5;
	color: #b32d2e;
	font-weight: bold;
}

@media screen and (max-width: 640px) {
	.tfe-wrap {
		display: block;
	}

	.tfe-suggest {
		max-width: 100%;
		max-height: 220px;
	}

	.tfe-suggest-item {
		padding: 12px;
		font-size: 15px;
	}
}
