.folklore-floating-actions,
.folklore-cart-drawer {
	--fpw-ink: #0d0b0c;
	--fpw-ink-soft: #292725;
	--fpw-paper: #f7f2e8;
	--fpw-surface: #fffdf7;
	--fpw-lime: #eff0c8;
	--fpw-wood: #d0a561;
	--fpw-wood-dark: #8a5f26;
	--fpw-line: #d6d0c6;
	--fpw-muted: #706c65;
	--fpw-font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--fpw-font-body: "Space Grotesk", Arial, sans-serif;
	box-sizing: border-box;
	font-family: var(--fpw-font-body);
}

.folklore-floating-actions *,
.folklore-cart-drawer * {
	box-sizing: border-box;
}

.folklore-floating-actions {
	position: fixed;
	z-index: 99990;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	display: grid;
	gap: 12px;
	justify-items: end;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.folklore-floating-actions__button {
	display: inline-flex;
	width: 58px;
	height: 58px;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 253, 247, 0.25);
	border-radius: 50%;
	color: var(--fpw-surface) !important;
	box-shadow: 0 10px 28px rgba(13, 11, 12, 0.2);
	cursor: pointer;
	list-style: none;
	text-decoration: none !important;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.folklore-floating-actions__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(13, 11, 12, 0.28);
}

.folklore-floating-actions__button:active {
	transform: scale(0.97);
}

.folklore-floating-actions__button:focus-visible,
.folklore-cart-drawer :where(a, button):focus-visible {
	outline: 3px solid var(--fpw-wood);
	outline-offset: 3px;
}

.folklore-floating-cart {
	position: relative;
	background: var(--fpw-ink);
}

.folklore-floating-cart:hover {
	background: var(--fpw-ink-soft);
}

.folklore-floating-cart__count {
	position: absolute;
	top: -4px;
	right: -4px;
	display: inline-flex;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--fpw-surface);
	border-radius: 999px;
	background: var(--fpw-wood);
	color: var(--fpw-ink);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.folklore-floating-cart__count.is-empty {
	display: none;
}

.folklore-product-whatsapp {
	position: relative;
	margin: 0;
}

.folklore-product-whatsapp summary {
	background: #128c7e;
}

.folklore-product-whatsapp summary:hover {
	background: #0e7468;
}

.folklore-product-whatsapp summary::-webkit-details-marker {
	display: none;
}

.folklore-floating-actions__icon {
	display: inline-flex;
	width: 25px;
	height: 25px;
	flex: 0 0 25px;
	align-items: center;
	justify-content: center;
	font-size: 25px !important;
	line-height: 1;
}

.folklore-product-whatsapp__stores {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	display: grid;
	gap: 8px;
	min-width: min(250px, calc(100vw - 28px));
	padding: 10px;
	border: 1px solid var(--fpw-line);
	border-radius: 12px;
	background: var(--fpw-surface);
	box-shadow: 0 14px 36px rgba(13, 11, 12, 0.18);
}

.folklore-product-whatsapp__stores a {
	display: block;
	padding: 12px 14px;
	border-radius: 8px;
	background: #128c7e;
	color: #ffffff !important;
	text-align: center;
	text-decoration: none !important;
}

.folklore-product-whatsapp__stores a:hover,
.folklore-product-whatsapp__stores a:focus-visible {
	background: #0e7468;
}

.folklore-floating-actions__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.folklore-cart-drawer[hidden] {
	display: none;
}

.folklore-cart-drawer {
	position: fixed;
	z-index: 100000;
	inset: 0;
	color: var(--fpw-ink-soft);
}

.folklore-cart-drawer__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(13, 11, 12, 0.66);
	opacity: 0;
	cursor: default;
	transition: opacity 240ms cubic-bezier(0.22, 0.75, 0.24, 1);
}

.folklore-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	width: min(460px, 100vw);
	height: 100%;
	max-height: 100dvh;
	flex-direction: column;
	overflow: hidden;
	background: var(--fpw-surface);
	box-shadow: -18px 0 54px rgba(13, 11, 12, 0.24);
	transform: translateX(100%);
	transition: transform 240ms cubic-bezier(0.22, 0.75, 0.24, 1);
}

.folklore-cart-drawer.is-open .folklore-cart-drawer__backdrop {
	opacity: 1;
}

.folklore-cart-drawer.is-open .folklore-cart-drawer__panel {
	transform: translateX(0);
}

.folklore-cart-drawer__header {
	display: flex;
	min-height: 88px;
	padding: max(18px, env(safe-area-inset-top)) 24px 18px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 4px solid var(--fpw-wood);
	background: var(--fpw-ink);
	color: var(--fpw-lime);
}

.folklore-cart-drawer__header h2 {
	margin: 0;
	color: inherit;
	font-family: var(--fpw-font-display);
	font-size: clamp(28px, 4vw, 36px);
	font-stretch: 82%;
	font-variation-settings: "wdth" 82, "wght" 500;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1;
}

.folklore-cart-drawer__close {
	display: inline-flex;
	min-width: 72px;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(239, 240, 200, 0.42);
	border-radius: 0;
	background: transparent;
	color: var(--fpw-lime);
	cursor: pointer;
	font: 650 11px/1 var(--fpw-font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.folklore-cart-drawer__close:hover {
	border-color: var(--fpw-wood);
	background: var(--fpw-wood);
	color: var(--fpw-ink);
}

.folklore-cart-drawer__close:active,
.folklore-cart-drawer__primary:active,
.folklore-cart-drawer__secondary:active {
	transform: translateY(1px);
}

.folklore-cart-drawer__body {
	display: flex;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	background: var(--fpw-surface);
}

.folklore-cart-drawer__items {
	width: 100%;
	max-width: 100%;
	min-height: 0;
	margin: 0;
	padding: 8px 24px 16px;
	flex: 1;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: var(--fpw-wood) var(--fpw-paper);
	scrollbar-width: thin;
}

.folklore-cart-drawer__items::-webkit-scrollbar {
	width: 8px;
}

.folklore-cart-drawer__items::-webkit-scrollbar-track {
	background: var(--fpw-paper);
}

.folklore-cart-drawer__items::-webkit-scrollbar-thumb {
	border: 2px solid var(--fpw-paper);
	border-radius: 8px;
	background: var(--fpw-wood);
}

.folklore-cart-drawer__item {
	display: grid;
	width: 100%;
	max-width: 100%;
	grid-template-columns: 84px minmax(0, 1fr);
	column-gap: 16px;
	row-gap: 10px;
	padding: 22px 0;
	align-items: center;
	border: 0;
	border-bottom: 1px solid var(--fpw-line);
	background: transparent;
}

.folklore-cart-drawer__media,
.folklore-cart-drawer__media a {
	display: grid;
	width: 84px;
	height: 84px;
	place-items: center;
	overflow: hidden;
	background: #ffffff;
}

.folklore-cart-drawer__media {
	border: 1px solid var(--fpw-line);
}

.folklore-cart-drawer__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
}

.folklore-cart-drawer__product {
	display: grid;
	min-width: 0;
	gap: 9px;
}

.folklore-cart-drawer__product-name {
	display: block;
	color: var(--fpw-ink) !important;
	font-size: 16px;
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: 1.35;
	overflow-wrap: anywhere;
	text-decoration: none !important;
}

.folklore-cart-drawer__product-name:hover {
	color: var(--fpw-wood-dark) !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px;
}

.folklore-cart-drawer__product dl.variation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 2px 6px;
	margin: 0;
	color: var(--fpw-muted);
	font-size: 11px;
	line-height: 1.35;
}

.folklore-cart-drawer__product dl.variation dt,
.folklore-cart-drawer__product dl.variation dd,
.folklore-cart-drawer__product dl.variation p {
	margin: 0;
	padding: 0;
}

.folklore-cart-drawer__quantity {
	display: block;
	color: var(--fpw-wood-dark);
	font-size: 17px;
	font-variant-numeric: tabular-nums;
	font-weight: 750;
	line-height: 1.3;
}

.folklore-cart-drawer__quantity :where(.amount, bdi, .woocommerce-Price-currencySymbol) {
	color: inherit !important;
	font: inherit !important;
	letter-spacing: inherit !important;
}

.folklore-cart-drawer .folklore-cart-drawer__remove {
	position: static !important;
	display: inline-flex !important;
	width: max-content !important;
	min-width: 44px;
	min-height: 32px;
	margin: -2px 0 0 !important;
	padding: 6px 0 !important;
	grid-column: 2;
	align-items: center;
	justify-content: flex-start;
	justify-self: start;
	border: 0;
	background: transparent;
	color: var(--fpw-muted) !important;
	font-family: var(--fpw-font-body) !important;
	font-size: 12px !important;
	font-weight: 600;
	line-height: 1.2;
	text-indent: 0 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px;
}

.folklore-cart-drawer .folklore-cart-drawer__remove::before,
.folklore-cart-drawer .folklore-cart-drawer__remove::after {
	display: none !important;
	content: none !important;
}

.folklore-cart-drawer .folklore-cart-drawer__remove:hover {
	color: var(--fpw-ink) !important;
}

.folklore-cart-drawer__summary {
	width: 100%;
	max-width: 100%;
	margin: auto 0 0;
	padding: 20px 24px max(24px, env(safe-area-inset-bottom));
	flex: 0 0 auto;
	border-top: 1px solid var(--fpw-line);
	background: var(--fpw-paper);
}

.folklore-cart-drawer__subtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	color: var(--fpw-ink);
}

.folklore-cart-drawer__subtotal span {
	font-size: 13px;
	font-weight: 650;
}

.folklore-cart-drawer__subtotal strong {
	font-size: 24px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.folklore-cart-drawer__subtotal strong :where(.amount, bdi, .woocommerce-Price-currencySymbol) {
	color: inherit !important;
	font: inherit !important;
	letter-spacing: inherit !important;
}

.folklore-cart-drawer__summary > p {
	margin: 7px 0 16px;
	color: var(--fpw-muted);
	font-size: 11px;
	line-height: 1.45;
}

.folklore-cart-drawer__actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.folklore-cart-drawer__primary,
.folklore-cart-drawer__secondary {
	display: inline-flex;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--fpw-ink);
	border-radius: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 100ms ease;
}

.folklore-cart-drawer__primary {
	background: var(--fpw-ink);
	color: var(--fpw-surface) !important;
}

.folklore-cart-drawer__primary:hover {
	border-color: var(--fpw-wood);
	background: var(--fpw-wood);
	color: var(--fpw-ink) !important;
}

.folklore-cart-drawer__secondary {
	background: transparent;
	color: var(--fpw-ink) !important;
}

.folklore-cart-drawer__secondary:hover {
	background: var(--fpw-ink);
	color: var(--fpw-surface) !important;
}

.folklore-cart-drawer__empty {
	display: flex;
	min-height: 100%;
	padding: clamp(40px, 9vh, 88px) 32px max(32px, env(safe-area-inset-bottom));
	align-items: flex-start;
	justify-content: center;
	flex: 1;
	flex-direction: column;
	background: var(--fpw-surface);
}

.folklore-cart-drawer__empty h3 {
	max-width: 10ch;
	margin: 0 0 14px;
	color: var(--fpw-ink);
	font-family: var(--fpw-font-display);
	font-size: clamp(34px, 8vw, 50px);
	font-stretch: 78%;
	font-variation-settings: "wdth" 78, "wght" 470;
	font-weight: 470;
	letter-spacing: -0.04em;
	line-height: 0.98;
}

.folklore-cart-drawer__empty p {
	max-width: 30ch;
	margin: 0 0 28px;
	color: var(--fpw-muted);
	font-size: 14px;
	line-height: 1.55;
}

.folklore-cart-drawer__empty .folklore-cart-drawer__primary {
	min-width: 190px;
}

html.folklore-cart-drawer-open,
body.folklore-cart-drawer-open {
	overflow: hidden;
}

body.folklore-cart-drawer-open {
	position: fixed;
	left: 0;
	width: 100%;
}

@media (max-width: 600px) {
	.folklore-floating-actions {
		right: max(14px, env(safe-area-inset-right));
		bottom: max(14px, env(safe-area-inset-bottom));
		gap: 10px;
	}

	.folklore-floating-actions__button {
		width: 54px;
		height: 54px;
	}

	.folklore-cart-drawer__panel {
		width: 100%;
	}

	.folklore-cart-drawer__header {
		min-height: 76px;
		padding-right: 18px;
		padding-left: 18px;
	}

	.folklore-cart-drawer__items {
		padding-right: 18px;
		padding-left: 18px;
	}

	.folklore-cart-drawer__item {
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 8px;
		padding: 18px 0;
	}

	.folklore-cart-drawer__media,
	.folklore-cart-drawer__media a {
		width: 72px;
		height: 72px;
	}

	.folklore-cart-drawer__remove {
		grid-column: 2;
		justify-self: start;
	}

	.folklore-cart-drawer__summary {
		padding: 17px 18px max(18px, env(safe-area-inset-bottom));
	}

	.folklore-cart-drawer__actions {
		grid-template-columns: 1fr;
	}

	.folklore-cart-drawer__empty {
		padding-right: 24px;
		padding-left: 24px;
	}
}

@media (max-height: 560px) and (orientation: landscape) {
	.folklore-cart-drawer__header {
		min-height: 64px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.folklore-cart-drawer__summary {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.folklore-cart-drawer__summary > p {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.folklore-floating-actions__button,
	.folklore-cart-drawer__backdrop,
	.folklore-cart-drawer__panel,
	.folklore-cart-drawer__primary,
	.folklore-cart-drawer__secondary {
		transition: none;
	}
}

@media (forced-colors: active) {
	.folklore-cart-drawer__panel,
	.folklore-cart-drawer__header,
	.folklore-cart-drawer__item,
	.folklore-cart-drawer__summary,
	.folklore-cart-drawer__primary,
	.folklore-cart-drawer__secondary,
	.folklore-cart-drawer__close {
		border-color: CanvasText;
	}
}
