/* Peak Labs — quantity hot bar + sticky cart bar. */

:root {
	--pk-accent: #85353F;
	--pk-accent-hover: #c22a22;
	--pk-accent-active: #a3251e;
	--pk-accent-tint: rgba(229, 52, 43, 0.06);
	--pk-ink: #181818;
	--pk-border: rgba(24, 24, 24, 0.16);
	--pk-divider: rgba(24, 24, 24, 0.1);
	--pk-surface: #fafafa;
	--pk-surface-2: #f7f7f7;
	--pk-success: #1f7a3d;
	--pk-radius: 0px;
	--pk-radius-pill: 9999px;
}

.pk-qty-bar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	background: var(--pk-surface);
	border: 1px solid rgba(24, 24, 24, 0.12);
	border-radius: var(--pk-radius);
}

.pk-qty-bar__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.pk-qty-bar__title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.pk-qty-bar__note {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pk-accent);
}

.pk-qty-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.pk-qty-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 0;
	min-height: 112px;
	padding: 28px 8px 14px;
	font-family: inherit;
	color: var(--pk-ink);
	background: #fff;
	border: 1px solid var(--pk-border);
	border-radius: var(--pk-radius);
	cursor: pointer;
	transition: background 140ms ease, border-color 140ms ease;
}

.pk-qty-card:hover {
	background: var(--pk-surface-2);
	border-color: rgba(24, 24, 24, 0.45);
}

.pk-qty-card.is-active {
	background: var(--pk-accent-tint);
	border: 2px solid var(--pk-accent);
}

.pk-qty-card.is-active::after {
	content: "\2713";
	position: absolute;
	right: -1px;
	bottom: -1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 13px;
	line-height: 1;
	color: #fff;
	background: var(--pk-accent);
}

.pk-qty-card[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

.pk-qty-card__ribbon {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: #f0f0f0;
	color: rgba(24, 24, 24, 0.55);
}

.pk-qty-card__ribbon--popular {
	background: var(--pk-ink);
	color: #fff;
}

.pk-qty-card__ribbon--save {
	background: var(--pk-accent);
	color: #fff;
}

.pk-qty-card__qty {
	margin-top: 14px;
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1;
}

.pk-qty-card__sub {
	font-size: 12px;
	font-weight: 500;
	color: rgba(24, 24, 24, 0.6);
}

.pk-qty-card__per {
	font-size: 12px;
	font-weight: 600;
}

.pk-qty-summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px dashed rgba(24, 24, 24, 0.18);
}

.pk-qty-summary__row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: rgba(24, 24, 24, 0.7);
}

.pk-qty-summary__row--discount {
	font-weight: 600;
	color: var(--pk-accent-hover);
}

.pk-qty-summary__row--total {
	align-items: baseline;
	padding-top: 8px;
	border-top: 1px solid rgba(24, 24, 24, 0.12);
	color: var(--pk-ink);
}

.pk-qty-summary__row--total dt,
.pk-qty-summary__label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pk-qty-summary__total {
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.is-struck {
	text-decoration: line-through;
	color: rgba(24, 24, 24, 0.45);
}

.pk-cart .single_add_to_cart_button {
	width: 100%;
	height: 60px;
	background: var(--pk-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 0;
	border-radius: var(--pk-radius);
}

.pk-cart .single_add_to_cart_button:hover {
	background: var(--pk-accent-hover);
}

.pk-cart .single_add_to_cart_button:active {
	background: var(--pk-accent-active);
}

.pk-cart .quantity {
	display: flex;
	align-items: center;
	height: 60px;
	border: 1px solid rgba(24, 24, 24, 0.2);
}

.pk-cart .quantity input.qty {
	width: 56px;
	height: 100%;
	border: 0;
	border-left: 1px solid var(--pk-divider);
	border-right: 1px solid var(--pk-divider);
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	-moz-appearance: textfield;
}

.pk-cart .quantity input.qty::-webkit-outer-spin-button,
.pk-cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pk-cart__step {
	width: 52px;
	height: 100%;
	border: 0;
	background: #fff;
	font-size: 20px;
	color: var(--pk-ink);
	cursor: pointer;
}

.pk-sticky-cart {
	display: none;
}

@media (max-width: 767px) {
	.pk-qty-cards {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.pk-qty-card {
		min-height: 96px;
		padding: 24px 6px 12px;
	}

	.pk-qty-card__qty {
		font-size: 26px;
		margin-top: 12px;
	}

	.pk-qty-bar {
		padding: 16px;
	}

	.pk-sticky-cart {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 50;
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 12px 16px 16px;
		background: #fff;
		border-top: 1px solid rgba(24, 24, 24, 0.14);
		box-shadow: 0 -8px 24px rgba(24, 24, 24, 0.08);
	}

	.pk-sticky-cart__line {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		font-size: 12px;
		color: rgba(24, 24, 24, 0.6);
	}

	.pk-sticky-cart__subtotal {
		font-size: 17px;
		font-weight: 600;
		letter-spacing: -0.02em;
		color: var(--pk-ink);
	}

	.pk-sticky-cart button {
		height: 56px;
		border: 0;
		background: var(--pk-accent);
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		cursor: pointer;
	}

	body.single-product {
		padding-bottom: 104px;
	}
}

.pk-qty-card:focus-visible,
.pk-cart button:focus-visible,
.pk-cart input:focus-visible,
.pk-sticky-cart button:focus-visible {
	outline: 2px solid var(--pk-accent);
	outline-offset: 2px;
}
