.avpf {
	--avpf-brand: #131921;
	--avpf-brand-soft: #232f3e;
	--avpf-accent: #ff9900;
	--avpf-accent-deep: #e47911;
	--avpf-surface: #ffffff;
	--avpf-surface-soft: #f7f9fc;
	--avpf-surface-strong: #eef2f6;
	--avpf-ink: #0f1720;
	--avpf-muted: #556274;
	--avpf-line: #d8dee7;
	--avpf-chip: #ecf3fb;
	--avpf-shadow: 0 20px 48px rgba(19, 25, 33, 0.13);
	color: var(--avpf-ink);
	font-family: inherit;
	margin: 1rem 0 1.5rem;
	position: relative;
}

.avpf__toolbar {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: flex-start;
	margin-bottom: 0;
}

.avpf__toggle,
.avpf__clear,
.avpf__close,
.avpf__pill {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
}

.avpf__toggle {
	align-items: center;
	background: linear-gradient(135deg, var(--avpf-brand) 0%, var(--avpf-brand-soft) 100%);
	border-radius: 999px;
	box-shadow: 0 16px 24px rgba(19, 25, 33, 0.24);
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	gap: 0.7rem;
	padding: 0.85rem 1.15rem;
}

.avpf__toggle-icon {
	background: linear-gradient(180deg, #fff 0%, #d9e3ef 100%);
	border-radius: 999px;
	display: block;
	height: 0.85rem;
	position: relative;
	width: 0.85rem;
}

.avpf__toggle-icon::before,
.avpf__toggle-icon::after {
	background: var(--avpf-brand);
	border-radius: 999px;
	content: '';
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.avpf__toggle-icon::before {
	height: 2px;
	width: 0.65rem;
}

.avpf__toggle-icon::after {
	height: 0.65rem;
	width: 2px;
}

.avpf__panel {
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
	border-right: 1px solid var(--avpf-line);
	box-shadow: 20px 0 48px rgba(19, 25, 33, 0.18);
	bottom: 0;
	left: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1.35rem 1.15rem 2rem;
	position: fixed;
	right: auto;
	top: 0;
	transform: translateX(-104%);
	transition: transform 0.28s ease;
	width: min(92vw, 420px);
	z-index: 2147483001;
}

.avpf__panel::before {
	background: linear-gradient(90deg, var(--avpf-brand) 0%, var(--avpf-accent) 100%);
	content: '';
	height: 100%;
	inset: 0 auto 0 0;
	position: absolute;
	width: 6px;
}

.avpf.is-open .avpf__panel {
	transform: translateX(0);
}

.avpf__panel-header {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.15rem;
	padding-top: 0.2rem;
}

.avpf__eyebrow {
	color: var(--avpf-accent-deep);
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 0.35rem;
	text-transform: uppercase;
}

.avpf__title {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.15;
	margin: 0;
}

.avpf__panel-actions {
	align-items: center;
	display: flex;
	gap: 0.65rem;
}

.avpf__clear {
	background: transparent;
	color: var(--avpf-brand-soft);
	font-size: 0.93rem;
	font-weight: 700;
	padding: 0.2rem 0;
	text-decoration: underline;
	text-underline-offset: 0.15rem;
}

.avpf__close {
	align-items: center;
	background: var(--avpf-surface-strong);
	border-radius: 999px;
	color: var(--avpf-brand);
	display: none;
	font-size: 1.3rem;
	height: 2.2rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 2.2rem;
}

.avpf__status-card {
	background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
	border: 1px solid #d7e4f2;
	border-radius: 18px;
	color: var(--avpf-brand);
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.45;
	margin-bottom: 1rem;
	padding: 0.9rem 1rem;
}

.avpf__active-wrap {
	background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
	border: 1px solid var(--avpf-line);
	border-radius: 20px;
	margin-bottom: 1rem;
	padding: 0.95rem;
}

.avpf__active-title {
	color: var(--avpf-muted);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.avpf__active {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.avpf__pill {
	align-items: center;
	background: var(--avpf-chip);
	border: 1px solid #cfe0f5;
	border-radius: 999px;
	color: var(--avpf-brand);
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 700;
	gap: 0.45rem;
	padding: 0.5rem 0.85rem;
}

.avpf__pill-close {
	color: var(--avpf-accent-deep);
	font-size: 1rem;
	line-height: 1;
}

.avpf__groups {
	display: grid;
	gap: 0.9rem;
}

.avpf__group {
	background: var(--avpf-surface);
	border: 1px solid var(--avpf-line);
	border-radius: 20px;
	padding: 1rem;
}

.avpf__group-title {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 0.9rem;
}

.avpf__options {
	display: grid;
	gap: 0.6rem;
}

.avpf__option {
	align-items: center;
	background: var(--avpf-surface-soft);
	border: 1px solid transparent;
	border-radius: 16px;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 0.7rem 0.85rem;
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.avpf__option:hover {
	background: #fff8ee;
	border-color: #ffd6a2;
	transform: translateY(-1px);
}

.avpf__option.is-disabled {
	opacity: 0.5;
}

.avpf__option input {
	accent-color: var(--avpf-accent-deep);
	height: 1rem;
	margin: 0;
	width: 1rem;
}

.avpf__option-label {
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.35;
	min-width: 0;
}

.avpf__option-count {
	background: #fff;
	border: 1px solid #d1dae6;
	border-radius: 999px;
	color: var(--avpf-muted);
	display: inline-flex;
	font-size: 0.84rem;
	font-weight: 800;
	justify-content: center;
	min-width: 2.1rem;
	padding: 0.2rem 0.55rem;
}

.avpf__empty {
	background: #fffaf2;
	border: 1px dashed #f3c071;
	border-radius: 20px;
	color: #7a4e05;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0;
	padding: 1rem 1.1rem;
}

.avpf__backdrop {
	background: rgba(9, 18, 30, 0.42);
	inset: 0;
	position: fixed;
	z-index: 2147483000;
}

.avpf-badge-host {
	position: relative;
}

.avpf__card-badge {
	align-items: center;
	background: #d9534f;
	border: 3px solid #fff;
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(15, 23, 32, 0.2);
	color: #fff;
	display: inline-flex;
	font-size: 0.74rem;
	font-weight: 800;
	justify-content: center;
	left: 14px;
	letter-spacing: 0.05em;
	min-height: 74px;
	min-width: 74px;
	padding: 0.65rem;
	position: absolute;
	text-align: center;
	text-transform: uppercase;
	top: 14px;
	z-index: 6;
}

.avpf__card-badge--outlet {
	background: #d9534f;
}

.avpf-hidden {
	display: none !important;
}

.avpf-product-data {
	display: none !important;
}

body.avpf-panel-open {
	overflow: hidden;
}

@media (max-width: 980px) {
	.avpf {
		margin-bottom: 1rem;
	}

	.avpf__panel {
		width: min(92vw, 390px);
	}

	.avpf__card-badge {
		left: 10px;
		min-height: 64px;
		min-width: 64px;
		padding: 0.55rem;
		top: 10px;
	}

	.avpf__close {
		display: inline-flex;
	}
}

@media (min-width: 981px) {
	.avpf__close {
		display: inline-flex;
	}
}
