.ecAdulationBtnBorderAdd {
	border-bottom: solid 1px #d3d3d3;
}

.ecCartDivColumnType2 div {
	margin: 5px 0 5px 0;
}

.ecCartDivSubscription {
	border: solid 1px #d3d3d3;
	font-size: 85%;
}

.item-checkbox {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
}

.form .btn {
	line-height: unset !important;
}

@media screen and (min-width: 641px) {

	.ecAdulationAddSpace {
		width: 960px;
		height: 50px;
	}

	.ecAdulationBtnBlockAdd {
		top: 88px !important;
		position: fixed;
	}

	.ecCartDivColumnType1 img {
		border: 1px solid #efefef;
	}

	.ecCartDivColumnType1 {
		display: flex;
		width: 25%;
	}

	.ecCartDivColumnType2 {
		display: flex;
		/* 子要素を横並びに */
		justify-content: space-between;
		/* 両端に配置 */
		align-items: center;
		/* 必要に応じて縦中央揃え */

		text-align: center;
		width: 75%;
		margin-right: 20px;
	}

	.ecCartDivChildColumnType1 {
		display: flex;
		text-align: center;
		white-space: nowrap;
		width: 100%;
		margin: auto;
	}

	.ecCartDivChildColumnType2 {
		text-align: left;
		width: 65%;
		margin: auto;
	}

	.ecSpDispDivColumnType2 {
		width: 25% !important;
		align-items: center;
	}
}

@media screen and (max-width: 640px) {

	.ecItemBox {
		display: flex;
	}

	.ecAdulationAddSpace {
		width: 302px;
		height: 102px;
	}

	.ecAdulationBtnBlockAdd {
		top: 135px !important;
		position: fixed;
	}

	.ecSpDispDivColumnType2 {
		width: 35% !important;
		align-items: center;
	}

	.ecCartDivColumnType1 {
		display: flex;
		width: 50%;
		margin: auto;
		padding: 5px;
	}

	.ecCartDivColumnType2 {
		display: flex;
		text-align: center;
		width: 100% !important;
		margin: auto;
		height: auto;
		align-items: center;
		flex-direction: column;
	}

	.ecCartDivChildColumnType1 {
		display: flex;
		text-align: center;
		white-space: nowrap;
		width: 100%;
		margin: auto;
	}

	.ecCartDivChildColumnType2 {
		text-align: left;
		width: 100%;
		margin: auto;
	}

	.ecCartDivColumnType1 img {
		width: 90%;
		border: 1px solid #efefef;
		height: auto;
	}

	.ecBtnCommon {
		margin: 0 !important;
	}

	.item-checkbox {
		width: 40px !important;
	}

	.ecCartDivColumnType2 .ecSpDispDivColumnType2 {
		display: flex;
		flex-direction: column;
		/* 縦方向に積む */
		justify-content: flex-end;
		width: 100% !important;
		/*		align-items: flex-end;*/
	}

}

/* 商品選択デザイン */
/* ラベル全体をタップ可能に */
.custom-checkbox {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin-bottom: 8px;
	user-select: none;
}

/* input を隠さず、デフォルト appearance を使う */
.custom-checkbox input {
	position: relative;
	opacity: 1;
	width: auto;
	height: auto;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	/* 一度リセットしたうえで再指定 */
	display: inline-block;
	vertical-align: middle;
	background-color: #fff;
	border: 1px solid #777;
}

/* ✔️チェックボックスをブラウザ標準表示に戻す */
.custom-checkbox input {
	-webkit-appearance: checkbox;
	-moz-appearance: checkbox;
	appearance: checkbox;
}

/* ホバー時だけ枠色をわずかに暗くしてフィードバック */
.custom-checkbox:hover input {
	border-color: #333;
}

/* 数量デザイン */
.quantity-control {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	/* 背景色はお好みで */
	background: #f5f5f5;
}

.qty-btn {
	width: 28px;
	border: none;
	background: transparent;
	font-size: 16px;
	cursor: pointer;
	/* ボタン部だけ薄いグレー背景にしたい場合 */
	background: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qty-input {
	width: 30px;
	border: none;
	text-align: center;
	font-size: 14px;
	/* 外側の .quantity-control の背景が表示されるよう透明に */
	background: transparent;
	/* スピンボタンを非表示 */
	-moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* quantity-control 全体を赤枠に */
.quantity-control.is-invalid-group {
	border: 1px solid #dc3545;
	/* Bootstrap の danger 赤 */
	border-radius: 0.25rem;
	/* 好きな角丸に */
}

.qty-err {
	font-size: 80%;
}

h3 {
	margin-top: 30px;
}

/* グレーアウト用クラス */
/* 画像リンク部分のみグレーアウト */
.ecItemBox.disabled-item .ecCartDivChildColumnType1 a,
.ecItemBox.disabled-item .ecCartDivChildColumnType1 img {
	opacity: 0.5;
	filter: grayscale(100%);
}

/* 商品情報部分をグレーアウト＆操作無効化 */
.ecItemBox.disabled-item .ecCartDivChildColumnType2 {
	opacity: 0.5;
	filter: grayscale(100%);
	pointer-events: none;
}

/* 数量操作部だけグレーアウト＆操作無効化 */
.ecItemBox.disabled-item .quantity-control {
	opacity: 0.5;
	filter: grayscale(100%);
	pointer-events: none;
}

/* ローディング時に要素を淡く */
.loading-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* スピナーアニメーション */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}
