/* 検索ページ専用スタイル（サジェスト・カラーカード・トースト） */

/* カラーカード（検索結果一覧） */
.color-card-item {
	overflow: hidden;
	background: #fff;
	border: 1px solid #ccc;
}

.color-card-swatch {
	height: 110px;
	padding: 12px;
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.color-card-swatch-top {
	display: flex;
	justify-content: flex-end;
}

.color-card-footer {
	padding: 10px 14px;
	background: #fff;
	display: flex;
	flex-direction: column;
	border-top: 1px solid #f0f0f0;
}

.color-card-info {
	min-width: 0;
}

.color-card-info-name {
	font-size: 13px;
	font-weight: bold;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.color-card-info-code {
	font-size: 11px;
	color: #888;
	margin-top: 2px;
}

.color-card-copy-group {
	margin-top: 8px;
	display: flex;
}

.color-card-copy-group .btn {
	flex: 1;
}

/* サジェスト（オートコンプリート）ドロップダウン */
.search-suggest-box {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1000;
	background: #fff;
	border: 1px solid #ccc;
	max-height: 360px;
	overflow-y: auto;
	margin-top: 2px;
}

.search-suggest-header {
	padding: 6px 12px;
	background: #f7f9fa;
	border-bottom: 1px solid #eee;
	font-size: 11px;
	color: #888;
	font-weight: bold;
}

.suggest-item {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.15s;
	background: #fff;
}

.suggest-item:hover,
.suggest-item.is-active {
	background: #f0f7ff;
}

.suggest-item-swatch {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	margin-right: 10px;
	flex-shrink: 0;
}

.suggest-item-body {
	flex-grow: 1;
	min-width: 0;
}

.suggest-item-name {
	font-weight: bold;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.suggest-item-code {
	font-size: 11px;
	color: #888;
}

/* コピー完了トースト */
.color-copy-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	background: #222;
	color: #fff;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: bold;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.color-copy-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}
