/* Spc/Stickers v1.1.1 — glass-minimal, theme-neutral */

.spc-StickerPicker {
	position: fixed;
	width: 320px;
	height: 360px;
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
	display: flex;
	flex-direction: column;
	z-index: 99999;
	overflow: hidden;
	font-family: inherit;
	color: rgba(255, 255, 255, 0.86);
	opacity: 0;
	transform: translateY(6px);
	animation: spcSpFade 140ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes spcSpFade {
	to { opacity: 1; transform: translateY(0); }
}

/* Body */
.spc-StickerPicker-body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 8px 6px;
	scrollbar-width: thin;
	scrollbar-color: #3a3a3a transparent;
}
.spc-StickerPicker-body::-webkit-scrollbar {
	width: 8px;
	background: transparent;
}
.spc-StickerPicker-body::-webkit-scrollbar-track,
.spc-StickerPicker-body::-webkit-scrollbar-track-piece,
.spc-StickerPicker-body::-webkit-scrollbar-corner {
	background: transparent;
}
.spc-StickerPicker-body::-webkit-scrollbar-thumb {
	background: #3a3a3a;
	border-radius: 4px;
	border: none;
}
.spc-StickerPicker-body::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }

.spc-StickerPicker-section + .spc-StickerPicker-section {
	margin-top: 4px;
}

.spc-StickerPicker-sectionHeader {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.5);
	padding: 8px 2px 4px;
	letter-spacing: 0;
	text-transform: none;
}

.spc-StickerPicker-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
}

.spc-StickerPicker-empty {
	text-align: center;
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	padding: 16px 8px;
	grid-column: 1 / -1;
}

.spc-StickerPicker-loading {
	padding: 50px 8px;
}

.spc-StickerPicker-item {
	background: transparent;
	border: 0;
	border-radius: 5px;
	padding: 3px;
	cursor: pointer;
	transition: background-color 80ms ease;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.spc-StickerPicker-item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	pointer-events: none;
}
.spc-StickerPicker-item:hover {
	background: rgba(255, 255, 255, 0.06);
}
.spc-StickerPicker-item:active {
	background: rgba(255, 255, 255, 0.1);
}

/* Bottom nav */
.spc-StickerPicker-nav {
	display: flex;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	overflow-x: auto;
	padding: 6px;
	gap: 2px;
	flex-shrink: 0;
	scrollbar-width: none;
}
.spc-StickerPicker-nav::-webkit-scrollbar { display: none; }

.spc-StickerPicker-navItem {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.4);
	padding: 4px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	transition: background-color 80ms ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
}
.spc-StickerPicker-navItem img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	opacity: 0.7;
	transition: opacity 80ms ease;
}
.spc-StickerPicker-navItem:hover {
	background: rgba(255, 255, 255, 0.05);
}
.spc-StickerPicker-navItem:hover img {
	opacity: 1;
}
.spc-StickerPicker-navItem.is-active {
	background: rgba(255, 255, 255, 0.08);
}
.spc-StickerPicker-navItem.is-active img {
	opacity: 1;
}

/* Autocomplete — same glassy aesthetic */
.spc-StickerAC {
	position: fixed;
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
	padding: 4px;
	display: flex;
	gap: 1px;
	z-index: 100000;
	max-width: 380px;
	overflow-x: auto;
	scrollbar-width: none;
	opacity: 0;
	transform: translateY(-3px);
	animation: spcAcFade 120ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes spcAcFade {
	to { opacity: 1; transform: translateY(0); }
}
.spc-StickerAC::-webkit-scrollbar { display: none; }

.spc-StickerAC-item {
	background: transparent;
	border: 0;
	border-radius: 5px;
	padding: 3px;
	cursor: pointer;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 80ms ease;
}
.spc-StickerAC-item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	pointer-events: none;
}
.spc-StickerAC-item:hover {
	background: rgba(255, 255, 255, 0.06);
}
.spc-StickerAC-item.is-active {
	background: rgba(255, 255, 255, 0.1);
}

.menu.spc-stickers-suppressed {
	display: none !important;
}
