.pf-cart {
	position: relative;
	display: inline-flex;
	font-family: var(--pf-font);
}

.pf-cart.pf-cart .pf-cart__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--pf-radius-sm);
	color: #fff;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--pf-ease);
}

.pf-cart.pf-cart .pf-cart__btn--brand {
	background: var(--pf-brand);
}

.pf-cart.pf-cart .pf-cart__btn--brand:hover {
	background: var(--pf-brand-dark);
	color: #fff;
}

.pf-cart.pf-cart .pf-cart__btn--ghost {
	background: transparent;
	color: inherit;
}

.pf-cart.pf-cart .pf-cart__btn--ghost:hover {
	background: var(--pf-hover);
	color: inherit;
}

.pf-cart__icon-wrap {
	position: relative;
	display: inline-flex;
}

.pf-cart__labels {
	display: none;
	text-align: left;
	line-height: 1.25;
}

.pf-cart__label {
	display: block;
	font-size: 10.5px;
	opacity: .75;
}

.pf-cart__total {
	display: block;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pf-cart-peek {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: var(--pf-z-panel);
	width: 340px;
	padding: 16px;
	border-radius: var(--pf-radius);
	background: #fff;
	color: var(--pf-txt);
	box-shadow: var(--pf-shadow-pop), 0 0 0 1px rgba(0, 0, 0, .05);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.pf-cart.pf-cart:hover .pf-cart-peek,
.pf-cart.pf-cart:focus-within .pf-cart-peek {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.pf-cart-peek.pf-cart-peek .pf-cart-peek__title,
.pf-cart-peek.pf-cart-peek .pf-cart-peek__empty {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pf-txt-3);
}

.pf-cart-peek.pf-cart-peek .pf-cart-peek__empty {
	margin: 0;
}

.pf-cart-peek__list {
	display: grid;
	gap: 12px;
	max-height: 240px;
	overflow-y: auto;
}

.pf-cart-peek__item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pf-cart-peek__media {
	width: 44px;
	height: 44px;
	flex: none;
	overflow: hidden;
	border-radius: var(--pf-radius-sm);
	background: var(--pf-paper-2);
}

.pf-cart-peek__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pf-cart-peek__body {
	min-width: 0;
}

.pf-cart-peek__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.3;
}

.pf-cart-peek__meta {
	display: block;
	font-size: 12px;
	color: var(--pf-txt-3);
	font-variant-numeric: tabular-nums;
}

.pf-cart-peek__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 12px 0;
	padding-top: 12px;
	border-top: 1px solid var(--pf-line);
	font-size: 13.5px;
	color: var(--pf-txt-2);
}

.pf-cart-peek__foot strong {
	font-size: 16px;
	color: var(--pf-txt);
	font-variant-numeric: tabular-nums;
}

.pf-cart-progress {
	flex: none;
	padding: 14px 20px;
	border-bottom: 1px solid var(--pf-line);
	background: var(--pf-paper-2);
	font-size: 13.5px;
	color: var(--pf-txt-2);
}

.pf-cart-progress.is-off {
	display: none;
}

.pf-cart-progress.pf-cart-progress p {
	margin: 0;
}

.pf-cart-progress strong {
	color: var(--pf-txt);
	font-variant-numeric: tabular-nums;
}

.pf-cart-progress__track {
	display: block;
	height: 6px;
	margin-top: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--pf-paper-3);
}

.pf-cart-progress__bar {
	display: block;
	height: 100%;
	background: var(--pf-brand);
	transition: width .3s var(--pf-ease);
}

.pf-cart-progress.pf-cart-progress .pf-cart-progress__done {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--pf-ok);
}

.pf-cart-progress__done.pf-cart-progress__done .pf-i {
	width: 16px;
	height: 16px;
}

.pf-cart-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--pf-line-2);
}

.pf-cart-item:first-child {
	padding-top: 0;
}

.pf-cart-item__media {
	width: 78px;
	height: 78px;
	flex: none;
	overflow: hidden;
	border-radius: var(--pf-radius-sm);
	background: var(--pf-paper-2);
}

.pf-cart-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pf-cart-item__body {
	flex: 1;
	min-width: 0;
}

.pf-cart-item__brand {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pf-txt-3);
}

.pf-cart-item.pf-cart-item .pf-cart-item__name {
	margin: 2px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.pf-cart-item.pf-cart-item .pf-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.pf-cart-item.pf-cart-item .pf-cart-item__name a:hover {
	color: var(--pf-brand);
}

.pf-cart-item__row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.pf-cart-item__price {
	margin-left: auto;
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.pf-cart-item__remove {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: var(--pf-radius-sm);
	background: transparent;
	color: var(--pf-txt-3);
	cursor: pointer;
}

.pf-cart-item__remove:hover {
	background: var(--pf-brand-tint);
	color: var(--pf-brand);
}

.pf-cart-item__remove.pf-cart-item__remove .pf-i {
	width: 17px;
	height: 17px;
}

.pf-cart-item.is-busy {
	opacity: .5;
	pointer-events: none;
}

.pf-cart-foot {
	flex: none;
	display: grid;
	gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid var(--pf-line);
}

.pf-cart-foot:empty {
	display: none;
}

.pf-cart-foot__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	color: var(--pf-txt-2);
}

.pf-cart-foot__value {
	font-weight: 700;
	color: var(--pf-txt);
	font-variant-numeric: tabular-nums;
}

.pf-cart-foot__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	border-top: 1px solid var(--pf-line);
	font-size: 16px;
	font-weight: 700;
}

.pf-cart-foot__sum {
	font-family: var(--pf-display);
	font-style: italic;
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.pf-cart-empty {
	display: grid;
	place-items: center;
	text-align: center;
	padding: 48px 20px;
}

.pf-cart-empty__icon {
	width: 56px;
	height: 56px;
	color: var(--pf-paper-3);
}

.pf-cart-empty.pf-cart-empty .pf-cart-empty__title {
	margin: 16px 0 0;
	font-family: var(--pf-display);
	font-style: italic;
	font-weight: 700;
	font-size: 22px;
	text-transform: uppercase;
}

.pf-cart-empty.pf-cart-empty .pf-cart-empty__text {
	margin: 6px 0 18px;
	max-width: 30ch;
	font-size: 14px;
	color: var(--pf-txt-2);
}

@media (min-width: 1024px) {
	.pf-cart__labels {
		display: block;
	}
}

@media (max-width: 1023px) {
	.pf-cart-peek {
		display: none;
	}
}
