.apss {
	--apss-accent: #111;
	--apss-stripe: #aaf4f4;
	--apss-ink: #111;
	--apss-muted: #6b6b6b;
	--apss-line: #e6e6e6;
	--apss-hover: #f5f5f5;
	position: relative;
	width: 100%;
	color: var(--apss-ink);
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
}

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

.apss-form {
	display: flex;
	align-items: center;
	height: 46px;
	margin: 0;
	border: 1px solid var(--apss-line);
	background: #fff;
}

.apss.is-focus .apss-form {
	border-color: var(--apss-accent);
	box-shadow: 0 0 0 1px var(--apss-accent);
}

.apss-field {
	position: relative;
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

.apss-field.has-marquee .apss-input::placeholder {
	color: transparent;
	opacity: 0;
}

/* Sits over the input; CSS shows it only while the input is empty. */
.apss-marquee {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 14px;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: var(--apss-muted);
	font-size: 16px;
	pointer-events: none;
}

.apss-input:not(:placeholder-shown) + .apss-marquee,
.apss.is-icon:not(.is-sheet) .apss-marquee {
	display: none;
}

.apss-marquee-track {
	display: inline-flex;
	flex: 0 0 auto;
	white-space: nowrap;
	animation: apss-marquee var(--apss-speed, 12s) linear infinite;
	will-change: transform;
}

.apss-marquee-track > span {
	min-width: 220px; /* Short placeholders must still fill the box without a gap. */
	padding-right: 3em;
}

/* Four identical copies: moving exactly one copy's width loops seamlessly. */
@keyframes apss-marquee {
	to { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
	.apss-marquee-track {
		animation: none;
	}
}

.apss .apss-input,
.apss .apss-input:focus {
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 16px; /* Below 16px, iOS Safari zooms the page on focus. */
	-webkit-appearance: none;
	appearance: none;
}

.apss .apss-clear,
.apss .apss-submit {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.apss .apss-clear[hidden] {
	display: none;
}

.apss .apss-clear {
	width: 36px;
	color: var(--apss-muted);
}

.apss .apss-clear:hover,
.apss .apss-clear:focus,
.apss .apss-submit:hover,
.apss .apss-submit:focus {
	background: transparent;
	color: var(--apss-ink);
}

.apss .apss-submit {
	position: relative;
}

.apss .apss-submit::before {
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 0;
	width: 1px;
	background: var(--apss-line);
	content: "";
}

.apss-panel {
	position: absolute;
	z-index: 2147483000; /* Above the floating Rewards and chat buttons. */
	top: calc(100% + 1px);
	left: 0;
	overflow: auto;
	width: 100%;
	min-width: 320px;
	max-height: min(76vh, 640px);
	border: 1px solid var(--apss-line);
	background: #fff;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .13);
	letter-spacing: .03em;
}

.apss-panel[hidden] {
	display: none;
}

.apss-panel.has-products {
	width: min(780px, calc(100vw - 32px));
}

.apss-panel::after {
	position: sticky;
	bottom: 0;
	display: block;
	height: 3px;
	content: "";
}

.apss-panel.is-loading::after {
	background: linear-gradient(90deg, var(--apss-stripe) 30%, var(--apss-accent) 50%, var(--apss-stripe) 70%);
	background-size: 200% 100%;
	animation: apss-load 1s linear infinite;
}

@keyframes apss-load {
	from { background-position: 200% 0; }
	to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.apss-panel.is-loading::after {
		animation: none;
	}
}

.apss-cols {
	display: flex;
	align-items: stretch;
}

.apss-col {
	flex: 1 1 0;
	min-width: 0;
	padding: 12px 0 8px;
}

.apss-col + .apss-col {
	flex: 1.6 1 0;
}

.apss-heading {
	display: flex;
	justify-content: space-between;
	margin: 0 20px 6px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--apss-line);
	color: var(--apss-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.apss-group + .apss-group .apss-heading {
	margin-top: 12px;
}

.apss .apss-heading button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--apss-muted);
	font: inherit;
	letter-spacing: normal;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

.apss a.apss-opt {
	display: block;
	padding: 8px 20px;
	color: var(--apss-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.apss a.apss-opt:hover,
.apss a.apss-opt.is-active {
	background: var(--apss-hover);
	color: var(--apss-ink);
}

.apss-typed {
	color: var(--apss-muted);
	font-weight: 400;
}

.apss-rest {
	font-weight: 700;
}

.apss a.apss-product {
	display: flex;
	align-items: center;
	gap: 12px;
}

.apss-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.apss-brand {
	display: block;
	margin-bottom: 2px;
	color: var(--apss-muted);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.apss-info {
	display: block;
	min-width: 0;
}

.apss-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font-size: 15px;
}

.apss-hint {
	display: block;
	color: var(--apss-muted);
	font-size: 12px;
}

.apss-price {
	display: block;
	margin-top: 3px;
	color: var(--apss-muted);
	font-size: 13px;
}

.apss-price del {
	margin-right: 4px;
}

.apss-price ins {
	background: none;
	color: var(--apss-ink);
	text-decoration: none;
}

.apss-soldout {
	display: inline-block;
	margin-left: 6px;
	color: var(--apss-muted);
	font-size: 12px;
	font-weight: 400;
}

.apss-note {
	margin: 0;
	padding: 10px 20px 2px;
	color: var(--apss-muted);
	font-size: 13px;
}

.apss-note strong {
	color: var(--apss-ink);
}

.apss a.apss-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--apss-line);
	padding-top: 12px;
	padding-bottom: 12px;
}

.apss-trigger,
.apss .apss-close {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.apss .apss-close:hover,
.apss .apss-close:focus {
	background: transparent;
	color: inherit;
}

.apss.is-icon {
	display: inline-block;
	width: 44px;
}

.apss.is-icon .apss-trigger {
	display: inline-flex;
	vertical-align: top;
}

/* The real input covers the icon, invisible, until tapped. */
.apss.is-icon:not(.is-sheet) .apss-body {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	width: 44px;
	height: 44px;
	opacity: 0;
}

.apss.is-icon:not(.is-sheet) .apss-form {
	height: 44px;
	border: 0;
}

.apss.is-icon:not(.is-sheet) .apss-clear,
.apss.is-icon:not(.is-sheet) .apss-submit {
	display: none;
}

.apss.is-icon:not(.is-sheet) .apss-input {
	padding: 0;
	cursor: pointer;
}

html.apss-lock,
html.apss-lock body {
	overflow: hidden;
}

.apss.is-sheet {
	z-index: 2147483000;
}

.apss.is-sheet::before {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .45);
	content: "";
}

.apss.is-sheet .apss-body {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 14px 6px 14px 14px;
	background: #fff;
}

.apss.is-sheet .apss-form {
	flex: 1 1 0;
	min-width: 0;
	border: 2px solid var(--apss-accent);
	box-shadow: none;
}

.apss.is-sheet .apss-close {
	display: inline-flex;
	margin-left: 4px;
}

.apss.is-sheet .apss-panel,
.apss.is-sheet .apss-panel.has-products {
	position: static;
	flex: 0 0 auto;
	width: calc(100% + 20px);
	min-width: 0;
	max-height: calc(var(--apss-vh, 100vh) - 74px);
	margin: 14px -6px -14px -14px;
	border: 0;
	border-top: 1px solid var(--apss-line);
	box-shadow: none;
}

@media (max-width: 640px) {
	.apss-panel,
	.apss-panel.has-products {
		width: 100%;
		min-width: 0;
		max-height: 70vh;
	}

	.apss-cols {
		display: block;
	}

	.apss-col + .apss-col {
		border-top: 1px solid var(--apss-line);
	}
}
