/* Active Shop — search overlay. */

:root {
	--acs-q-accent: #6a005d;
	--acs-q-ink: color-mix(in srgb, var(--acs-q-accent) 85%, #000);
	--acs-q-soft: color-mix(in srgb, var(--acs-q-accent) 6%, #fff);
	--acs-q-text: #221a20;
	--acs-q-muted: #6b6168;
	--acs-q-line: #ece3ea;
}

.acs-q {
	position: fixed;
	inset: 0;
	z-index: 2147482100;
	font-size: 16px;
	line-height: 1.4;
	color: var(--acs-q-text);
}

.acs-q[hidden] {
	display: none !important;
}

.acs-q *,
.acs-q *::before,
.acs-q *::after {
	box-sizing: border-box;
}

.acs-q-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 10, 25, .45);
	opacity: 0;
	transition: opacity .18s;
}

.acs-q.is-open .acs-q-backdrop {
	opacity: 1;
}

.acs-q-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(720px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 80px));
	margin: 48px auto 0;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 64px rgba(30, 10, 25, .25);
	overflow: hidden;
	transform: translateY(-8px);
	opacity: 0;
	transition: transform .18s, opacity .18s;
}

.acs-q.is-open .acs-q-panel {
	transform: none;
	opacity: 1;
}

.acs-q-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 10px 10px 18px;
	border-bottom: 1px solid var(--acs-q-line);
}

.acs-q-ico {
	flex: none;
	color: var(--acs-q-accent);
}

.acs-q input.acs-q-input {
	flex: 1;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--acs-q-text);
	font: inherit;
	font-size: 18px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.acs-q-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.acs-q-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--acs-q-muted);
	cursor: pointer;
}

.acs-q-close:hover {
	background: var(--acs-q-soft);
	color: var(--acs-q-accent);
}

.acs-q-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 6px 18px 18px;
}

.acs-q-h {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 8px;
	padding: 0;
	color: var(--acs-q-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.acs-q-h span {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--acs-q-soft);
	color: var(--acs-q-accent);
	letter-spacing: 0;
}

.acs-q-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

a.acs-q-chip {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--acs-q-line);
	border-radius: 999px;
	background: #fff;
	color: var(--acs-q-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

a.acs-q-chip:hover {
	border-color: var(--acs-q-accent);
	color: var(--acs-q-accent);
	background: var(--acs-q-soft);
}

.acs-q-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.acs-q-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border-radius: 12px;
	list-style: none;
}

.acs-q-item::before {
	display: none;
}

.acs-q-item:hover,
.acs-q-item.is-active {
	background: var(--acs-q-soft);
}

a.acs-q-link {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	color: var(--acs-q-text);
	text-decoration: none;
}

.acs-q-link img,
.acs-q-noimg {
	flex: none;
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 10px;
	border: 1px solid var(--acs-q-line);
	background: #fff;
}

.acs-q-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.acs-q-brand {
	color: var(--acs-q-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
}

.acs-q-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.acs-q-price {
	font-size: 13px;
}

.acs-q-price del {
	color: var(--acs-q-muted);
	margin-right: 4px;
}

.acs-q-off {
	flex: none;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--acs-q-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

a.acs-q-add {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-right: 8px;
	border: 1px solid var(--acs-q-accent);
	border-radius: 50%;
	background: #fff;
	color: var(--acs-q-accent);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

a.acs-q-add:hover,
a.acs-q-add.is-added {
	background: var(--acs-q-accent);
	color: #fff;
}

a.acs-q-add.added::after,
a.acs-q-add + .added_to_cart {
	display: none !important;
}

a.acs-q-all {
	display: block;
	margin: 12px 0 0;
	padding: 14px;
	border-radius: 12px;
	background: var(--acs-q-accent);
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

a.acs-q-all:hover {
	filter: brightness(1.12);
}

.acs-q-none,
.acs-q-loading {
	padding: 18px 4px;
	color: var(--acs-q-muted);
}

.acs-q-none p {
	margin: 0 0 8px;
	padding: 0;
}

.acs-q-none strong {
	color: var(--acs-q-text);
}

@media (max-width: 600px) {
	.acs-q-panel {
		width: 100%;
		max-height: none;
		height: 100%;
		margin: 0;
		border-radius: 0;
	}

	.acs-q-form {
		padding-top: calc(10px + env(safe-area-inset-top));
	}

	.acs-q-body {
		padding-bottom: calc(24px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.acs-q-panel,
	.acs-q-backdrop {
		transition: none;
	}
}
