﻿/* 商品選択全体 */
.cms-product-select {
	margin: 20px auto;
	padding: 0;
	max-width: 760px;
}

/* タイトル */
.cms-product-select-title {
	text-align: center;
	margin: 0 0 18px;
}

.cms-product-select-title h2 {
	margin: 0;
	font-size: 24px;
	font-weight: bold;
}

/* 各セクション */
.cms-product-select-section {
	margin: 0 0 24px;
}

.cms-product-select-section-title {
	text-align: center;
	margin: 0 0 12px;
}

.cms-product-select-section-title h3,
.cms-product-select-selected-title h3 {
	margin: 0;
	font-size: 18px;
	font-weight: bold;
}

/* 商品・プレゼント一覧 */
.cms-product-select-products,
.cms-product-select-presents {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	justify-content: center;
	align-items: stretch;
}

/* 選択肢 */
.cms-product-select-item {
	position: relative;
	box-sizing: border-box;
	flex: 1 1 0;
	max-width: 240px;
	cursor: pointer;
	border: 3px solid transparent;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

/* 画像 */
.cms-product-select-item img {
	width: 100%;
	height: auto;
	display: block;
	box-sizing: border-box;
	border: 3px solid transparent;
	border-radius: 8px;
}

/* 選択中 */
.cms-product-select-item.active {
	border-color: transparent;
}

/* 選択中マーク */
/*.cms-product-select-item.active:after {
	content: "選択中";
	position: absolute;
	top: 6px;
	right: 6px;
	padding: 3px 8px;
	background: #0ccfcb;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	border-radius: 12px;
}
*/

/* 詳細リンク */
.cms-product-select-popup-link {
	margin-top: 6px;
	text-align: center;
	font-size: 13px;
}

.cms-product-select-popup-link a {
	color: #0066cc;
	text-decoration: underline;
}

/* 選択結果 */
.cms-product-select-selected {
	width: 100%;
	max-width: 100%;
	margin: 24px auto 0;
	text-align: center;
	box-sizing: border-box;
}

.cms-product-select-selected-title {
	margin: 20px 0 20px;
	text-align: center;
}

.cms-product-select-selected-title h3 {
	background-color: #f26178;
	display: block;
	padding: 10px 20px;
	font-weight: bold;
	font-size: 18px;
	color: #fff;
	margin: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* 商品・プレゼントの見出し帯 */
.cms-product-select-section-title h3 {
	background-color: #0ccfcb;
	display: block;
	padding: 10px 20px;
	font-weight: bold;
	font-size: 18px;
	color: #fff;
	margin: 0 0 20px;
	max-width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.cms-product-select-combination {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.cms-product-select-selected-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 10px;
	box-sizing: border-box;
}

.cms-product-select-item.active img {
	border-color: #0ccfcb;
}

/* スマホで横並び維持しつつ詰める */
@media screen and (max-width: 480px) {
	.cms-product-select {
		max-width: 100%;
	}

	.cms-product-select-products,
	.cms-product-select-presents {
		gap: 5px;
	}

	.cms-product-select-item {
		border-width: 2px;
		border-radius: 6px;
	}

	.cms-product-select-item.active:after {
		top: 4px;
		right: 4px;
		font-size: 10px;
		padding: 2px 6px;
	}

	.cms-product-select-title h2 {
		font-size: 20px;
	}

	.cms-product-select-section-title h3,
	.cms-product-select-selected-title h3 {
		font-size: 15px;
		padding: 9px 10px;
	}

}