/*
 * GSC — Gasket Profile image dropdown styles.
 * Paired with assets/js/gsc-gasket-profile.js. Class names must stay in sync.
 */

.gp-custom-dd { position: relative; font-family: inherit; width: 100%; }

.gp-current {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #ccc;
	background: #fff;
	padding: 10px 14px;
	border-radius: 4px;
	cursor: pointer;
	min-height: 60px;
}
.gp-current .gp-img {
	flex-shrink: 0;
	background: #f5f5f5;
	border-radius: 3px;
	object-fit: contain;
	display: block;
	width: 64px;
	height: 64px;
}
.gp-opt .gp-img {
	flex-shrink: 0;
	background: #f5f5f5;
	border-radius: 3px;
	object-fit: contain;
	display: block;
	width: 80px;
	height: 80px;
}
.gp-current .gp-text { flex: 1; min-width: 0; line-height: 1.3; }
.gp-current .gp-name {
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gp-current .gp-meta {
	font-size: 11px;
	color: #666;
	margin-top: 3px;
	line-height: 1.4;
	word-break: break-word;
}
.gp-arrow { margin-left: 8px; font-size: 10px; color: #888; flex-shrink: 0; }

.gp-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	max-height: 480px;
	overflow-y: auto;
	z-index: 9999;
	display: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
	border-radius: 0 0 4px 4px;
}
.gp-list.open { display: block; }

.gp-search {
	padding: 8px;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}
.gp-search input {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 13px;
	box-sizing: border-box;
}

.gp-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 14px;
	cursor: pointer;
	border-bottom: 1px solid #f3f3f3;
}
.gp-opt:hover { background: #f6f8fa; }
.gp-opt .gp-text { flex: 1; min-width: 0; padding-top: 2px; }
.gp-opt .gp-name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.gp-opt .gp-meta {
	font-size: 11px;
	color: #555;
	line-height: 1.5;
	word-break: break-word;
	white-space: normal;
}

.gp-empty { padding: 12px; text-align: center; color: #888; font-size: 13px; }
