.product-related-section {
	margin: 28px 0;
	padding-top: 18px;
	border-top: 1px solid #e5e7eb;
}

.product-related-heading {
	margin: 0 0 14px;
	color: #334155;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.product-related-grid {
	display: grid;
	grid-template-columns: 1fr !important;
	gap: 12px;
}

.product-related-card {
	display: flex;
	gap: 12px;
	min-height: 112px;
	padding: 12px;
	border: 1px solid #dbe3ec;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-related-card:hover,
.product-related-card:focus {
	border-color: #9fc5e8;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	color: inherit;
	text-decoration: none;
}

.product-related-thumb {
	flex: 0 0 78px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 96px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
	background: #f8fafc;
}

.product-related-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-related-thumb-fallback {
	padding: 0 8px;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.product-related-body {
	flex: 1 1 auto;
	display: block;
	min-width: 0;
}

.product-related-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 6px;
}

.product-related-badge {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eef5ff;
	color: #2a6fb2;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
}

.product-related-badge--book {
	background: #25a77b;
	color: #ffffff;
}

.product-related-badge--pdf {
	background: #d93030;
	color: #ffffff;
}

.product-related-badge--web {
	background: #0f66c3;
	color: #ffffff;
}

.product-related-badge--sub {
	background: #f5f5f5;
	color: #555;
}

.product-related-title {
	display: block;
	color: #1f2937;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.55;
	word-break: break-word;
}

.product-related-summary {
	display: block;
	margin-top: 5px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.6;
}

.product-related-setting-control {
	position: relative;
	max-width: 760px;
	margin-bottom: 12px;
}

.product-related-picker-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #b9cfe3;
	border-radius: 6px;
	background: #fff;
	color: #23435f;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}

.product-related-picker-button:hover,
.product-related-picker-button:focus {
	border-color: #6ea6d5;
	outline: none;
	box-shadow: 0 0 0 3px rgba(110, 166, 213, 0.18);
}

.product-related-picker-button .fas {
	flex: 0 0 auto;
	color: #2a6fb2;
	transition: transform 0.15s ease;
}

.product-related-setting-control.is-open .product-related-picker-button .fas {
	transform: rotate(180deg);
}

.product-related-picker-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	width: 100%;
	border: 1px solid #b9cfe3;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.product-related-picker-search-wrap {
	padding: 10px;
	border-bottom: 1px solid #edf1f5;
}

.product-related-picker-search {
	height: 38px;
}

.product-related-setting-list {
	max-width: 760px;
	max-height: 300px;
	overflow-y: auto;
	background: #fff;
}

.product-related-setting-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid #edf1f5;
	font-weight: normal;
	line-height: 1.6;
	cursor: pointer;
}

.product-related-setting-item:last-child {
	border-bottom: 0;
}

.product-related-setting-item input {
	margin-top: 4px;
}

.product-related-setting-type {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-width: 88px;
	justify-content: center;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eef5ff;
	color: #2a6fb2;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.product-related-setting-type--book {
	background: #25a77b;
	color: #ffffff;
}

.product-related-setting-type--pdf {
	background: #d93030;
	color: #ffffff;
}

.product-related-setting-type--web {
	background: #0f66c3;
	color: #ffffff;
}

.product-related-setting-title {
	flex: 1 1 auto;
	min-width: 0;
	color: #334155;
	word-break: break-word;
}

.product-related-picker-empty {
	padding: 14px 12px;
	color: #64748b;
	font-size: 13px;
}

.product-related-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.product-related-selected-chip {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 26px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eef5ff;
	color: #285f91;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
}

.product-related-selected-chip--more {
	background: #f5f5f5;
	color: #555;
}

@media (max-width: 767px) {
	.product-related-card {
		min-height: 0;
	}

	.product-related-thumb {
		flex-basis: 68px;
		width: 68px;
		height: 84px;
	}

	.product-related-setting-item {
		align-items: flex-start;
	}

	.product-related-setting-type {
		min-width: 76px;
	}

	.product-related-picker-panel {
		position: static;
		margin-top: 6px;
	}
}
