/*
 * The sticky purchase bar. Brief: about 78px, white, subtle shadow, restrained 300ms slide.
 */

.akem-sticky {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 50;
	background: var(--akem-surface);
	border-block-start: 1px solid var(--akem-line);
	box-shadow: 0 -1px 12px rgb(0 0 0 / 6%);
	transform: translateY(100%);
	transition: transform 300ms ease;
}

.akem-sticky.is-visible {
	transform: translateY(0);
}

.akem-sticky__inner {
	display: flex;
	align-items: center;
	gap: var(--akem-space-3);
	min-height: 78px;
	max-width: var(--theme-normal-container-max-width);
	margin-inline: auto;
	padding-inline: var(--akem-space-3);
	padding-block-end: env(safe-area-inset-bottom);
}

.akem-sticky__name {
	flex: 1 1 auto;
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: var(--akem-leading-tight);
	color: var(--akem-ink);
}

.akem-sticky__meta {
	display: flex;
	align-items: baseline;
	gap: var(--akem-space-2);
	white-space: nowrap;
}

.akem-sticky__strength {
	font-size: var(--akem-size-micro);
	letter-spacing: var(--akem-tracking-micro);
	color: var(--akem-grey);
}

.akem-sticky__price {
	font-size: var(--akem-size-small);
	color: var(--akem-ink);
}

.akem-sticky__price del {
	display: none;
}

.akem-sticky__button {
	flex: 0 0 auto;
	min-height: var(--akem-control-height);
	padding-inline: var(--akem-space-5);
	font-size: var(--akem-size-micro);
	font-weight: 600;
	letter-spacing: var(--akem-tracking-wide);
	text-transform: uppercase;
	color: var(--akem-surface);
	background: var(--akem-ink);
	border: 1px solid var(--akem-ink);
	border-radius: var(--akem-radius-pill);
	cursor: pointer;
	transition: background 180ms ease;
}

.akem-sticky__button:hover {
	background: var(--akem-blue);
	border-color: var(--akem-blue);
}

.akem-sticky__button:focus-visible {
	outline: 3px solid var(--akem-blue-focus);
	outline-offset: 2px;
}

/* Phone: the brief allows dropping the name and price to keep the control usable. */
@media (max-width: 689px) {
	.akem-sticky__name,
	.akem-sticky__price {
		display: none;
	}

	.akem-sticky__inner {
		min-height: 68px;
	}

	.akem-sticky__button {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.akem-sticky {
		transition: none;
	}
}
