.cgt-custom-fields {
	margin: 20px 0;
	padding: 16px;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.cgt-custom-fields h4 {
	margin-top: 0;
	margin-bottom: 12px;
}

.cgt-field-wrap {
	margin-bottom: 14px;
}

.cgt-field-wrap label {
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
}

.cgt-field-wrap .required {
	color: #b32d2e;
}

.cgt-image-hint {
	display: block;
	color: #666;
	margin-top: 4px;
	font-size: 12px;
}

.cgt-field-wrap input[type="text"],
.cgt-field-wrap input[type="number"],
.cgt-field-wrap input[type="date"],
.cgt-field-wrap textarea,
.cgt-field-wrap select {
	width: 100%;
	max-width: 420px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.cgt-unit-block {
	border: 1px dashed #DDD6C8;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 12px;
}
.cgt-unit-heading {
	font-size: 12px;
	font-weight: 700;
	color: #880000;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---------- Image Choice field (e.g. Charm Selection) — dropdown with image + text ---------- */
.cgt-image-dropdown {
	position: relative;
	margin-top: 6px;
	max-width: 320px;
}
.cgt-image-dropdown-toggle {
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: #fff !important;
	color: #1F1F1F !important;
	border: 1px solid #DDD6C8 !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	cursor: pointer;
	text-align: left;
}
.cgt-image-dropdown-selected-img {
	width: 32px;
	height: 32px;
	border-radius: 5px;
	background-size: cover;
	background-position: center;
	background-color: #f2f2f2;
	flex-shrink: 0;
}
.cgt-image-dropdown-selected-label {
	flex: 1;
	font-size: 14px;
}
.cgt-image-dropdown-arrow {
	font-size: 11px;
	color: #8A8578;
	transition: transform 0.15s ease;
}
.cgt-image-dropdown.cgt-open .cgt-image-dropdown-arrow {
	transform: rotate(180deg);
}
.cgt-image-dropdown-panel {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #DDD6C8;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	max-height: 280px;
	overflow-y: auto;
	z-index: 999999;
}
.cgt-image-dropdown.cgt-open .cgt-image-dropdown-panel {
	display: block;
}
.cgt-image-dropdown-option {
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: #fff !important;
	color: #1F1F1F !important;
	border: none !important;
	border-bottom: 1px solid #F0EBE4 !important;
	border-radius: 0 !important;
	padding: 9px 14px !important;
	cursor: pointer;
	text-align: left;
}
.cgt-image-dropdown-option:last-child {
	border-bottom: none !important;
}
.cgt-image-dropdown-option:hover,
.cgt-image-dropdown-option.cgt-selected {
	background: #FBF3F1 !important;
}
.cgt-image-dropdown-option-img {
	width: 32px;
	height: 32px;
	border-radius: 5px;
	background-size: cover;
	background-position: center;
	background-color: #f2f2f2;
	flex-shrink: 0;
}
.cgt-image-dropdown-option-label {
	font-size: 14px;
}

