/* BC Search: details box + suggestion extras */
.bcs-details {
	position: fixed;
	z-index: 100050;
	display: none;
	box-sizing: border-box;
	padding: 16px;
	background: #fff;
	color: #333;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
	overflow-y: auto;
	direction: rtl;
	text-align: right;
}
.bcs-details.is-open { display: block; }
.bcs-d { display: flex; flex-direction: column; gap: 10px; }
.bcs-d-img {
	display: block;
	text-align: center;
	background: #f7f7f7;
	border-radius: 8px;
	padding: 8px;
}
.bcs-d-img img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 190px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}
.bcs-d-title { font-weight: 700; font-size: 15px; line-height: 1.6; color: inherit; }
.bcs-d-title:hover { color: var(--wd-primary-color, inherit); }
.bcs-d-sku { font-size: 12px; color: #888; }
.bcs-d-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bcs-d-price { font-weight: 700; margin: 0; }
.bcs-d-price del { opacity: .55; font-weight: 400; }
.bcs-d-stock { font-size: 12px; padding: 2px 10px; border-radius: 20px; white-space: nowrap; }
.bcs-d-stock.is-in { background: #e8f6ee; color: #1d7a45; }
.bcs-d-stock.is-out { background: #fdecec; color: #b42318; }
.bcs-d-desc { margin: 0; font-size: 13px; line-height: 1.8; color: #666; }
.bcs-d-actions { display: flex; gap: 8px; align-items: stretch; }
.bcs-details .bcs-d-qty {
	width: 64px;
	min-height: 40px;
	padding: 0 6px;
	text-align: center;
	flex: 0 0 64px;
}
.bcs-d-actions .button { flex: 1; min-height: 40px; border-radius: 8px; }
.bcs-d-loading {
	height: 140px;
	border-radius: 8px;
	background: linear-gradient(90deg, #f2f2f2 25%, #e9e9e9 50%, #f2f2f2 75%);
	background-size: 200% 100%;
	animation: bcs-shimmer 1.2s infinite;
}
@keyframes bcs-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.bcs-d-loading { animation: none; }
}

.wd-search-results .bcs-oos {
	display: inline-block;
	margin-top: 4px;
	padding: 1px 8px;
	font-size: 11px;
	border-radius: 20px;
	background: #fdecec;
	color: #b42318;
}
