#cct-app {
	max-width: 640px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
}

.cct-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 16px;
}

.cct-dropzone {
	border: 1.5px dashed #ccc;
	border-radius: 10px;
	padding: 28px 16px;
	text-align: center;
	cursor: pointer;
}

.cct-dropzone.cct-drag {
	border-color: #8a6d3b;
	background: #faf7f2;
}

.cct-dropzone-main {
	font-weight: 600;
	margin: 0 0 4px;
}

.cct-dropzone-sub {
	color: #888;
	font-size: 13px;
	margin: 0;
}

#cct-preview-row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 14px;
}

#cct-preview-img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #ddd;
}

#cct-progress {
	margin-top: 10px;
	color: #888;
}

.cct-manual-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #eee;
}

.cct-manual-row select,
.cct-manual-row input[type="text"] {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.cct-manual-row input[type="text"] {
	flex: 1;
	min-width: 120px;
}

.cct-notes {
	color: #a3541e;
	font-size: 13px;
}

.cct-cert-card {
	margin-top: 14px;
	padding: 16px;
	border: 1px solid #c9a15e;
	border-radius: 10px;
	background: #fbfaf7;
}

.cct-cert-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.cct-cert-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1e2a4a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

.cct-cert-title {
	font-size: 15px;
	font-weight: 700;
}

.cct-cert-population {
	margin: 10px 0;
	padding: 8px 12px;
	border-radius: 6px;
	background: #e6f4ea;
	color: #2f6f3e;
	font-weight: 700;
	font-size: 14px;
}

.cct-cert-fields {
	margin: 10px 0;
	border-top: 1px solid #e6dcc6;
	padding-top: 8px;
}

.cct-cert-field-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 13px;
}

.cct-cert-field-label {
	color: #888;
	flex-shrink: 0;
}

.cct-cert-field-value {
	text-align: right;
}

.cct-cert-source {
	font-size: 11px;
	font-style: italic;
	color: #888;
	margin-top: 6px;
}

.cct-cert-officiallink {
	display: inline-block;
	margin-top: 10px;
}

.cct-inventory-row {
	border-bottom: 1px solid #eee;
	padding: 10px 0;
}

.cct-inventory-row label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.cct-inventory-row img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}

.cct-item-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cct-item-title {
	font-weight: 600;
}

.cct-item-price {
	font-size: 13px;
	color: #555;
}

.cct-badge {
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
	width: fit-content;
}

.cct-badge-instock {
	background: #e6f4ea;
	color: #2f6f3e;
}

.cct-badge-outstock {
	background: #fbeee6;
	color: #a3541e;
}

.cct-badge-sold {
	background: #ececec;
	color: #666;
}

.cct-lead-form {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eee;
}

.cct-lead-form label {
	display: block;
	margin-bottom: 10px;
}

.cct-lead-form input[type="text"],
.cct-lead-form input[type="email"] {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
}

#cct-lead-message {
	margin-top: 10px;
	font-weight: 600;
}


/* ---- サイト表側用の補正: テーマのスタイルに負けないよう #cct-app で限定 ---- */
#cct-app .cct-manual-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

#cct-app .cct-manual-row select {
	width: auto;
	min-width: 90px;
	flex: 0 0 auto;
	margin: 0;
}

#cct-app .cct-manual-row input[type="text"] {
	width: auto;
	flex: 1 1 150px;
	min-width: 0;
	margin: 0;
}

#cct-app .button {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid #c9bfa8;
	border-radius: 8px;
	background: #fff;
	color: #24211c;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
}

#cct-app .button-primary {
	background: #b8935a;
	border-color: #b8935a;
	color: #fff;
	font-weight: 700;
}

#cct-app .button-primary:hover {
	opacity: 0.9;
}

#cct-app .cct-dropzone {
	box-sizing: border-box;
}

#cct-app h3 {
	margin-top: 0;
}

/* ---- v0.3.0 追加 ---- */
#cct-app .cct-privacy-note {
	font-size: 12px;
	color: #888;
	margin: 10px 0 0;
}

#cct-app .cct-lead-form label {
	display: block;
}

#cct-app .cct-lead-form input[type="text"],
#cct-app .cct-lead-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
}
