:root {
	--tlc-sticky-cart-height: 88px;
	--tlc-sticky-cart-accent: #fabe3c;
	--tlc-sticky-cart-ink: #202020;
}

.tlc-sticky-cart[hidden] {
	display: none !important;
}

.tlc-sticky-cart {
	position: fixed;
	z-index: 9990;
	right: 0;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	padding: 10px max(20px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
	border-top: 1px solid #e3e3e3;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
	opacity: 0;
	pointer-events: none;
	transform: translateY(110%);
	transition: opacity 180ms ease, transform 220ms ease;
	visibility: hidden;
}

.tlc-sticky-cart.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.tlc-sticky-cart__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(100%, 1440px);
	min-height: 58px;
	margin: 0 auto;
}

.tlc-sticky-cart__media {
	display: grid;
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	place-items: center;
}

.tlc-sticky-cart__image {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.tlc-sticky-cart__details {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	gap: 5px;
}

.tlc-sticky-cart__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--tlc-sticky-cart-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tlc-sticky-cart__meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.tlc-sticky-cart__price,
.tlc-sticky-cart__price .amount {
	color: var(--tlc-sticky-cart-ink);
	font-size: 19px;
	font-weight: 700;
}

.tlc-sticky-cart__price del,
.tlc-sticky-cart__price del .amount {
	color: #737373;
	font-size: 14px;
	font-weight: 400;
}

.tlc-sticky-cart__quantity {
	color: #5d5d5d;
	font-size: 13px;
	white-space: nowrap;
}

.tlc-sticky-cart__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 220px;
	min-height: 50px;
	padding: 11px 24px;
	border: 2px solid var(--tlc-sticky-cart-accent);
	border-radius: 999px;
	background: var(--tlc-sticky-cart-accent);
	color: #151515;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tlc-sticky-cart__button:hover,
.tlc-sticky-cart__button:focus-visible {
	border-color: #c44a20;
	background: #c44a20;
	color: #fff;
}

.tlc-sticky-cart__button:focus-visible {
	outline: 3px solid rgba(196, 74, 32, 0.3);
	outline-offset: 3px;
}

.tlc-sticky-cart__button:active:not(:disabled) {
	transform: translateY(1px);
}

.tlc-sticky-cart__button:disabled {
	border-color: #d9d9d9;
	background: #e8e8e8;
	color: #666;
	cursor: not-allowed;
}

.tlc-sticky-cart__button.is-loading span::after {
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-left: 8px;
	border: 2px solid currentcolor;
	border-right-color: transparent;
	border-radius: 50%;
	content: '';
	vertical-align: -0.12em;
	animation: tlc-sticky-cart-spin 650ms linear infinite;
}

body.tlc-sticky-cart-is-visible {
	padding-bottom: calc(var(--tlc-sticky-cart-height) + env(safe-area-inset-bottom));
}

body.tlc-search-open .tlc-sticky-cart,
body.admin-bar .tlc-sticky-cart[aria-hidden='true'] {
	pointer-events: none;
}

@keyframes tlc-sticky-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	:root {
		--tlc-sticky-cart-height: 76px;
	}

	.tlc-sticky-cart {
		padding-top: 8px;
		padding-right: max(12px, env(safe-area-inset-right));
		padding-left: max(12px, env(safe-area-inset-left));
	}

	.tlc-sticky-cart__inner {
		gap: 10px;
		min-height: 52px;
	}

	.tlc-sticky-cart__media {
		display: none;
	}

	.tlc-sticky-cart__title {
		font-size: 13px;
		-webkit-line-clamp: 1;
	}

	.tlc-sticky-cart__meta {
		gap: 8px;
	}

	.tlc-sticky-cart__price,
	.tlc-sticky-cart__price .amount {
		font-size: 16px;
	}

	.tlc-sticky-cart__quantity {
		font-size: 12px;
	}

	.tlc-sticky-cart__button {
		flex: 0 1 48%;
		min-width: 148px;
		min-height: 48px;
		padding: 9px 14px;
		font-size: 12px;
	}
}

@media (max-width: 420px) {
	.tlc-sticky-cart__title {
		display: none;
	}

	.tlc-sticky-cart__details {
		flex: 1 1 42%;
	}

	.tlc-sticky-cart__meta {
		flex-direction: column;
		gap: 0;
	}

	.tlc-sticky-cart__button {
		flex-basis: 56%;
		min-width: 138px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tlc-sticky-cart,
	.tlc-sticky-cart__button {
		transition: none;
	}
}

@media print {
	.tlc-sticky-cart {
		display: none !important;
	}
}
