.tp-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	overflow: hidden;
	pointer-events: none;
}

.tp-cart-drawer.is-open {
	pointer-events: auto;
}

.tp-native-nav__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: nowrap;
}

.tp-cart-drawer__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 42px;
	padding: 0.62rem 0.82rem;
	border: 1px solid var(--tp-product-line, #e7d5c8);
	border-radius: 999px;
	background: transparent;
	color: var(--tp-product-ink, #472d24);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.tp-cart-drawer__trigger:hover,
.tp-cart-drawer__trigger:focus-visible {
	border-color: var(--tp-product-accent, #c87350);
	color: var(--tp-product-accent, #c87350);
}

.tp-cart-drawer__trigger-count {
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding-inline: 0.22rem;
	border-radius: 999px;
	background: var(--tp-product-accent, #c87350);
	color: #fffaf4;
	font-size: 0.7rem;
	line-height: 1;
}

.tp-cart-drawer__backdrop {
	position: fixed;
	z-index: 0;
	inset: 0;
	border: 0;
	background: rgba(50, 34, 27, 0.32);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 240ms ease, visibility 240ms ease;
}

.tp-cart-drawer__panel {
	position: fixed;
	z-index: 1;
	top: 84px;
	right: 24px;
	display: flex;
	flex-direction: column;
	width: min(360px, calc(100vw - 48px));
	height: calc(100dvh - 108px);
	border: 1px solid var(--tp-product-line, #e7d5c8);
	border-radius: 16px;
	background: #fffdf9;
	box-shadow: -18px 0 42px rgba(73, 47, 35, 0.14);
	transform: translateX(105%);
	transition: transform 260ms ease;
}

.tp-cart-drawer.is-open .tp-cart-drawer__backdrop {
	opacity: 1;
	visibility: visible;
}

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

.tp-cart-drawer__header,
.tp-cart-drawer__footer {
	flex: 0 0 auto;
	padding: 1.35rem;
}

.tp-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--tp-product-line, #e7d5c8);
}

.tp-cart-drawer__title {
	margin: 0;
	color: var(--tp-product-ink, #472d24);
	font-family: var(--tp-font-heading, Georgia, serif);
	font-size: 1.45rem;
}

.tp-cart-drawer__close {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border: 1px solid var(--tp-product-line, #e7d5c8);
	border-radius: 50%;
	background: transparent;
	color: var(--tp-product-ink, #472d24);
	cursor: pointer;
	font-size: 1.2rem;
}

.tp-cart-drawer__close:hover,
.tp-cart-drawer__close:focus-visible {
	border-color: var(--tp-product-accent, #c87350);
	color: var(--tp-product-accent, #c87350);
}

.tp-cart-drawer__body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 1.1rem 1.35rem;
}

.tp-cart-drawer__empty {
	padding: 3rem 1rem;
	color: var(--tp-color-muted, #786b61);
	text-align: center;
}

.tp-cart-drawer__status {
	margin: 0 0 1rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--tp-product-line, #e7d5c8);
	border-radius: 10px;
	color: var(--tp-color-muted, #786b61);
	font-size: 0.78rem;
	line-height: 1.5;
}

.tp-cart-drawer__status.is-error {
	border-color: #d99a82;
	background: #fff4ee;
	color: #8b4937;
}

.tp-cart-drawer__items {
	display: grid;
	gap: 1rem;
}

.tp-cart-line {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	gap: 0.8rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--tp-product-line, #e7d5c8);
}

.tp-cart-line__image {
	width: 86px;
	height: 86px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--tp-product-soft, #f4e5d6);
}

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

.tp-cart-line__title,
.tp-cart-line__summary,
.tp-cart-line__price {
	margin: 0;
}

.tp-cart-line__title {
	color: var(--tp-product-ink, #472d24);
	font-size: 0.92rem;
	font-weight: 700;
}

.tp-cart-line__summary {
	margin-top: 0.25rem;
	color: var(--tp-color-muted, #786b61);
	font-size: 0.76rem;
	line-height: 1.5;
}

.tp-cart-line__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	margin-top: 0.65rem;
}

.tp-cart-line__price {
	color: var(--tp-product-accent, #c87350);
	font-size: 0.9rem;
	font-weight: 700;
}

.tp-cart-line__quantity {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.tp-cart-line__quantity button,
.tp-cart-line__remove {
	border: 0;
	background: transparent;
	color: var(--tp-color-muted, #786b61);
	cursor: pointer;
	font-size: 0.75rem;
}

.tp-cart-line__quantity button {
	display: grid;
	place-items: center;
	width: 1.65rem;
	height: 1.65rem;
	border: 1px solid var(--tp-product-line, #e7d5c8);
	border-radius: 50%;
}

.tp-cart-line__quantity button:hover,
.tp-cart-line__quantity button:focus-visible,
.tp-cart-line__remove:hover,
.tp-cart-line__remove:focus-visible {
	color: var(--tp-product-accent, #c87350);
}

.tp-cart-drawer__footer {
	border-top: 1px solid var(--tp-product-line, #e7d5c8);
	background: #fffaf4;
}

.tp-cart-drawer__summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.65rem;
	color: var(--tp-color-muted, #786b61);
	font-size: 0.82rem;
}

.tp-cart-drawer__summary-row--total {
	margin-top: 0.95rem;
	padding-top: 0.95rem;
	border-top: 1px solid var(--tp-product-line, #e7d5c8);
	color: var(--tp-product-ink, #472d24);
	font-size: 1rem;
	font-weight: 700;
}

.tp-cart-drawer__checkout,
.tp-cart-drawer__continue {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.tp-cart-drawer__checkout {
	margin-top: 1.1rem;
	background: var(--tp-product-ink, #472d24);
	color: #fffaf4;
}

.tp-cart-drawer__continue {
	margin-top: 0.6rem;
	border: 1px solid var(--tp-product-line, #e7d5c8);
	background: transparent;
	color: var(--tp-product-ink, #472d24);
	cursor: pointer;
}

.tp-cart-drawer__checkout:hover,
.tp-cart-drawer__checkout:focus-visible {
	background: #2f211b;
	color: #fffaf4;
}

.tp-product-purchase__cta.is-busy {
	opacity: 0.65;
	pointer-events: none;
}

.tp-cart-drawer__continue:hover,
.tp-cart-drawer__continue:focus-visible {
	border-color: var(--tp-product-accent, #c87350);
	color: var(--tp-product-accent, #c87350);
}

@media (max-width: 560px) {
	.tp-native-nav__cta {
		gap: 0.35rem;
	}

	.tp-cart-drawer__trigger {
		min-height: 36px;
		padding-inline: 0.65rem;
		font-size: 0.68rem;
	}

	.tp-cart-drawer__panel {
		top: 0;
		right: 0;
		width: 100vw;
		height: 100dvh;
		border: 0;
		border-radius: 0;
	}

	.tp-cart-drawer__header,
	.tp-cart-drawer__footer {
		padding: 1.1rem;
	}

	.tp-cart-drawer__body {
		padding: 1rem 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp-cart-drawer__backdrop,
	.tp-cart-drawer__panel {
		transition-duration: 0.01ms !important;
	}
}
