/* PP加工選択モーダル（共通） */
.jq_pp_modal_overlay{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 10px;
	box-sizing: border-box;
}
.jq_pp_modal_container{
	background: white;
	border-radius: 10px;
	box-shadow: 0 10px 15px 0 rgba(0, 0, 0, .3);
	padding: 16px 8px 20px;
	box-sizing: border-box;
	width: 100%;
	max-width: min(1350px, 92vw);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

@media screen and (min-width: 481px){
	.jq_pp_modal_container{
		padding: 20px 16px 24px;
	}
}

.jq_pp_modal_header{
	font-weight: bold;
	margin-bottom: 12px;
	padding-left: 8px;
	font-size: 1.05em;
}

/* 縦並びリスト（表2・3印刷モーダル等で共用） */
.jq_pp_option_list{
	list-style: none;
	padding: 0;
	margin: 0;
}

/* PP一覧：用紙モーダルに近いカードグリッド */
.jq_pp_option_list.jq_pp_option_grid{
	padding: 0 8px 8px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	justify-content: center;
}

@media screen and (min-width: 481px){
	.jq_pp_option_list.jq_pp_option_grid{
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 14px;
		padding: 0 12px 12px;
	}
}

#jq_pp_modal_wrapper .jq_pp_option_btn.jq_pp_card{
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border-radius: 8px;
	cursor: pointer;
	list-style: none;
	box-shadow: 0px 5px 10px 0 rgba(0, 0, 0, .3);
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
}

#jq_pp_modal_wrapper .jq_pp_option_btn.jq_pp_card:hover{
	box-shadow: 0px 6px 14px 0 rgba(0, 0, 0, .35);
}

#jq_pp_modal_wrapper .jq_pp_card_inner{
	display: flex;
	flex-direction: column;
	min-height: 0;
}

#jq_pp_modal_wrapper .jq_pp_card_image_wrap{
	width: 100%;
	background: #eee;
	overflow: hidden;
}

#jq_pp_modal_wrapper .jq_pp_card_image_wrap--placeholder{
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #e5e5e5 0%, #f4f4f4 55%, #ebebeb 100%);
}

@media screen and (max-width: 480px){
	#jq_pp_modal_wrapper .jq_pp_card_image_wrap--placeholder{
		min-height: 140px;
	}
}

/* 幅はカードに合わせ、高さは画像の縦横比に追随（左右切り抜き・天地の余白なし） */
#jq_pp_modal_wrapper .jq_pp_option_img{
	width: 100%;
	height: auto;
	vertical-align: middle;
	display: block;
}

#jq_pp_modal_wrapper .jq_pp_card_name{
	padding: 10px 12px;
	font-size: 0.95em;
	line-height: 1.35;
	text-align: center;
	background: #fff;
	color: #333;
	word-break: break-word;
}

#jq_pp_modal_wrapper .jq_pp_option_btn.jq_pp_card.jq_pp_option_selected{
	box-shadow: 0px 5px 10px 0 rgba(0, 0, 0, .28), 0 0 0 3px #1e90ff;
}

#jq_pp_modal_wrapper .jq_pp_option_btn.jq_pp_card.jq_pp_option_selected .jq_pp_card_name{
	background: #e8f4fd;
	font-weight: 600;
}

/* 表2・3印刷モーダル用（PPと共有コンテナ、PPのclickハンドラとの衝突回避） */
.jq_h23_option_btn{
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	margin: 5px 0;
	border-radius: 6px;
	cursor: pointer;
}
.jq_h23_option_btn:hover{
	background: #f0f0f0;
}
.jq_h23_option_btn.jq_pp_option_selected{
	background: #e8f4fd;
}
/* 箔押し不適合のPP選択肢をグレーアウト */
.jq_pp_option_btn.unselectable-foil-pp{
	opacity: 0.4;
	filter: grayscale(100%);
	cursor: not-allowed;
}
.jq_pp_option_btn.unselectable-foil-pp:hover{
	box-shadow: 0px 5px 10px 0 rgba(0, 0, 0, .3);
}
/* 小口染めあり時：表紙PPの「なし」をグレーアウト */
.jq_pp_option_btn.unselectable-edge-dyeing-pp{
	opacity: 0.4;
	filter: grayscale(100%);
	cursor: not-allowed;
}
.jq_pp_option_btn.unselectable-edge-dyeing-pp:hover{
	box-shadow: 0px 5px 10px 0 rgba(0, 0, 0, .3);
}
/* カバー用紙PP不適合時：なし以外のPP選択肢をグレーアウト */
.jq_pp_option_btn.unselectable-cover-paper-pp{
	opacity: 0.4;
	filter: grayscale(100%);
	cursor: not-allowed;
}
.jq_pp_option_btn.unselectable-cover-paper-pp:hover{
	box-shadow: 0px 5px 10px 0 rgba(0, 0, 0, .3);
}
/* PP選択エリア（select風） */
.css_selected_pp_container{
	display: block;
	min-width: 140px;
	max-width: 100%;
	min-height: 2em;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	line-height: 1.4;
	margin-bottom: 0;
	box-sizing: border-box;
}
.css_selected_pp_container:hover{
	background-color: #f9f9f9;
}
.css_selected_pp_container .css_selected_pp_name{
	display: block;
}
