/* Welcart 印鑑商品オプション - front */

.wchanko-navi .wchanko-step-current {
	font-weight: bold;
}

.wchanko-intro {
	margin: 1em 0;
}

.wchanko-notice {
	margin: 1em 0;
}

.wchanko-item {
	margin: 0 0 2em;
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.wchanko-item-head {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-bottom: 1em;
	padding-bottom: .8em;
	border-bottom: 1px solid #eee;
}

.wchanko-item-thumb img {
	display: block;
	max-width: 80px;
	height: auto;
}

.wchanko-item-name {
	font-weight: bold;
}

.wchanko-item-quantity {
	font-size: .9em;
	color: #555;
}

.wchanko-unit {
	margin: 0 0 1.2em;
}

.wchanko-unit + .wchanko-unit {
	padding-top: 1em;
	border-top: 1px dashed #ddd;
}

.wchanko-unit-title {
	margin-bottom: .5em;
	font-weight: bold;
}

.wchanko-same {
	display: inline-block;
	margin-bottom: .6em;
	cursor: pointer;
}

.wchanko-field {
	margin: 0 0 1em;
}

.wchanko-field .wchanko-group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wchanko-field-label {
	display: block;
	margin-bottom: .3em;
	padding: 0;
	font-weight: bold;
}

.wchanko-required,
.wchanko-optional {
	display: inline-block;
	margin-left: .5em;
	padding: 0 .4em;
	border-radius: 2px;
	font-size: .75em;
	font-weight: normal;
	line-height: 1.6;
	vertical-align: middle;
	color: #fff;
	background: #c00;
}

.wchanko-optional {
	background: #888;
}

.wchanko-field-desc,
.wchanko-field-note {
	margin-bottom: .4em;
	font-size: .9em;
	color: #555;
}

.wchanko-field-input input[type="text"],
.wchanko-field-input textarea,
.wchanko-field-input select {
	box-sizing: border-box;
	width: 100%;
	max-width: 32em;
}

.wchanko-choice {
	display: inline-block;
	margin: 0 1.2em .3em 0;
	cursor: pointer;
}

/* Image choices */
.wchanko-image-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wchanko-image-choice {
	position: relative;
	display: block;
	width: 150px;
	margin: 0;
	cursor: pointer;
}

.wchanko-image-size-small .wchanko-image-choice {
	width: 100px;
}

.wchanko-image-size-large .wchanko-image-choice {
	width: 220px;
}

/* The native input stays focusable and usable for form validation. */
.wchanko-image-choice-input {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.wchanko-image-choice-box {
	display: block;
	box-sizing: border-box;
	height: 100%;
	padding: 6px;
	border: 2px solid #ddd;
	border-radius: 4px;
	background: #fff;
	text-align: center;
	transition: border-color .15s, box-shadow .15s;
}

.wchanko-image-choice:hover .wchanko-image-choice-box {
	border-color: #999;
}

.wchanko-image-choice-input:checked + .wchanko-image-choice-box {
	border-color: #c00;
	box-shadow: 0 0 0 1px #c00;
}

.wchanko-image-choice-input:focus-visible + .wchanko-image-choice-box {
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

.wchanko-image-choice-input:checked + .wchanko-image-choice-box::after {
	content: "\2713";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #c00;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	line-height: 22px;
	text-align: center;
}

.wchanko-image-choice-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f7f7;
}

.wchanko-image-choice-media img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wchanko-image-choice-noimage {
	font-size: .8em;
	color: #aaa;
}

.wchanko-image-choice-label {
	display: block;
	margin-top: 4px;
	font-size: .9em;
	line-height: 1.4;
	word-break: break-all;
}

.wchanko-has-error .wchanko-image-choice-box {
	border-color: #e99;
}

@media screen and (max-width: 600px) {
	.wchanko-image-choice,
	.wchanko-image-size-large .wchanko-image-choice {
		width: calc(50% - 5px);
	}

	.wchanko-image-size-small .wchanko-image-choice {
		width: calc(33.333% - 7px);
	}
}

.wchanko-counter {
	font-size: .8em;
	color: #777;
}

.wchanko-counter.is-over {
	color: #c00;
	font-weight: bold;
}

.wchanko-has-error input[type="text"],
.wchanko-has-error textarea,
.wchanko-has-error select {
	border-color: #c00;
}

.wchanko-error {
	margin-top: .3em;
	font-size: .9em;
	color: #c00;
}

.wchanko-buttons {
	margin: 2em 0;
	text-align: center;
}

/* Summary (cart / confirm / member history) */
.wchanko-summary {
	margin: .5em 0 0;
	padding: .5em .7em;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	background: #fafafa;
	font-size: .9em;
	line-height: 1.5;
	text-align: left;
}

.wchanko-summary-title {
	font-weight: bold;
}

.wchanko-summary-unit + .wchanko-summary-unit {
	margin-top: .4em;
}

.wchanko-summary-unit-label {
	font-weight: bold;
	color: #555;
}

.wchanko-summary-list {
	margin: 0;
}

.wchanko-summary-list dt {
	float: left;
	clear: left;
	margin: 0;
	font-weight: normal;
	color: #666;
}

.wchanko-summary-list dt::after {
	content: "：";
}

.wchanko-summary-list dd {
	margin: 0 0 0 7em;
	word-break: break-all;
}

.wchanko-cart-notice {
	margin-top: .3em;
	font-size: .85em;
	color: #c00;
}

@media screen and (max-width: 600px) {
	.wchanko-summary-list dt {
		float: none;
	}

	.wchanko-summary-list dd {
		margin-left: 1em;
	}
}
