/**
 * 口座メモリ
 *
 * 既存の見た目へ影響しないよう、追加した要素にだけ効かせる。
 */

.bm-consent {
	/* 申込ボタンと同じ幅・同じ位置に揃える */
	box-sizing: border-box;
	max-width: 750px;
	margin: 16px auto;
	padding: 12px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fafafa;
	text-align: left;
	line-height: 1.6;
}

.bm-consent label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	font-weight: bold;
}

/*
 * テーマ側が「フォーム内の input は幅576px・余白10px」と指定しているため、
 * そのままではチェックボックスが極端に大きくなり、文言が細長く潰れる。
 * ここだけ打ち消す。!important はテーマの指定に勝つために必要。
 */
/*
 * テーマは確認画面のチェックボックスを黒丸に加工している。
 *
 *   appearance: none / border-radius: 20px / background: #333
 *
 * その結果、チェックの有無が見た目で分からなくなる。
 * ここだけ標準のチェックボックスへ戻す。
 */
.bm-consent input[type="checkbox"] {
	-webkit-appearance: checkbox !important;
	-moz-appearance: checkbox !important;
	appearance: checkbox !important;

	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: initial !important;
	box-shadow: none !important;

	width: 16px !important;
	min-width: 16px;
	height: 16px !important;
	padding: 0 !important;
	margin: 4px 8px 0 0 !important;
	flex: 0 0 auto;
	box-sizing: border-box;
	cursor: pointer;
}

.bm-consent label > span {
	flex: 1 1 auto;
	min-width: 0;
}

.bm-consent .bm-note {
	display: block;
	margin-top: 6px;
	font-size: 0.85em;
	font-weight: normal;
	color: #666;
}

/* 「前回と同じ口座」で復元した内容の確認表示 */
.bm-restored {
	margin: 10px 0;
	padding: 10px 12px;
	border: 1px solid #1772ba;
	border-radius: 4px;
	background: #f4f9fd;
	line-height: 1.7;
}

.bm-restored .bm-title {
	display: block;
	margin-bottom: 4px;
	font-weight: bold;
	color: #1772ba;
}

.bm-restored dl {
	margin: 0;
}

.bm-restored dt {
	display: inline-block;
	width: 6em;
	color: #666;
	font-size: 0.9em;
}

.bm-restored dd {
	display: inline;
	margin: 0;
}

.bm-restored dd::after {
	content: "";
	display: block;
}

/* 銀行・支店の候補表示 */
.bm-bank-input {
	box-sizing: border-box;
}

.bm-suggest {
	display: none;
	position: relative;
	z-index: 10;
	max-height: 240px;
	overflow-y: auto;
	margin-top: 2px;
	border: 1px solid #bbb;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bm-suggest-item {
	padding: 8px 12px;
	cursor: pointer;
	line-height: 1.5;
	border-bottom: 1px solid #eee;
}

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

.bm-suggest-item:hover {
	background: #eaf4fc;
}

.bm-suggest-empty {
	padding: 8px 12px;
	color: #888;
	font-size: 0.9em;
}

/* 確定した項目 */
.bm-input.bm-fixed,
input.bm-fixed {
	background: #f3f7fb;
	border-color: #1772ba;
	font-weight: bold;
}

.bm-picked {
	display: none;
	margin: 6px 0 0;
	line-height: 1.6;
}

.bm-picked-label {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	background: #1772ba;
	color: #fff;
	font-size: 0.9em;
}

.bm-change {
	margin-left: 8px;
	padding: 3px 12px;
	border: 1px solid #bbb;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-size: 0.85em;
	cursor: pointer;
}

.bm-change:hover {
	background: #f2f2f2;
}

/* 前の項目が決まるまで触れない状態 */
input:disabled {
	background: #f5f5f5;
	color: #999;
}

/* 入力例（既存の注意書きの上に出す） */
.bm-example {
	margin: 6px 0 2px;
	line-height: 1.7;
}

.bm-example-title {
	display: block;
	font-size: 0.9em;
	color: #666;
}

/* 例として並べる確定表示。実際に確定したときと同じ見た目にする */
.bm-example .bm-picked-label {
	display: inline-block;
	margin: 2px 6px 2px 0;
}

/* 確定した銀行・支店（注意書きの直前にまとめて出す） */
.bm-confirmed {
	margin: 6px 0 2px;
}

.bm-confirmed-row {
	display: block;
	line-height: 1.8;
	font-weight: bold;
	color: #1a7f37;
}
