.tpmo-cart-trigger-host {
	position: relative;
}

.tpmo-cart-badge {
	align-items: center;
	background: var(--wd-primary-color, #f6931f);
	border: 2px solid #fff;
	border-radius: 99px;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .16);
	color: #fff;
	display: inline-flex;
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
	height: 20px;
	justify-content: center;
	line-height: 1;
	min-width: 20px;
	pointer-events: none;
	position: absolute;
	right: -8px;
	top: -8px;
	z-index: 3;
}

.tpmo-cart-badge.is-empty {
	display: none;
}

.tpmo-cart-overlay {
	background: rgba(20, 20, 20, .48);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity .28s ease;
	z-index: 99998;
}

.tpmo-cart-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.tpmo-cart-canvas {
	background: #fff;
	bottom: 0;
	box-shadow: 18px 0 50px rgba(0, 0, 0, .18);
	direction: rtl;
	display: flex;
	left: 0;
	max-width: calc(100vw - 24px);
	position: fixed;
	top: 0;
	transform: translateX(-105%);
	transition: transform .32s cubic-bezier(.22, .8, .25, 1);
	width: 410px;
	z-index: 99999;
}

.tpmo-cart-canvas.is-open {
	transform: translateX(0);
}

html.tpmo-cart-open,
html.tpmo-cart-open body {
	overflow: hidden;
}

.tpmo-cart-fragment {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.tpmo-cart-header {
	align-items: center;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	min-height: 82px;
	padding: 17px 22px;
}

.tpmo-cart-header > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tpmo-cart-header strong {
	color: #242424;
	font-size: 18px;
	font-weight: 800;
}

.tpmo-cart-header span {
	color: #888;
	font-size: 12px;
}

.tpmo-cart-close {
	align-items: center;
	background: #f5f5f5;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	color: #555;
	cursor: pointer;
	display: flex;
	height: 38px;
	justify-content: center;
	padding: 0;
	transition: background .2s ease, color .2s ease, transform .2s ease;
	width: 38px;
}

.tpmo-cart-close:hover,
.tpmo-cart-close:focus {
	background: #ececec;
	color: #111;
	transform: none !important;
}

.tpmo-cart-close span {
	display: block;
	font-family: Arial, sans-serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
}

.tpmo-cart-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 22px 18px;
}

.tpmo-cart-empty {
	align-items: center;
	color: #8a8a8a;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	min-height: 320px;
	padding: 32px 18px;
	text-align: center;
}

.tpmo-cart-empty svg {
	fill: #dedede;
	height: 78px;
	margin-bottom: 20px;
	width: 78px;
}

.tpmo-cart-empty strong {
	color: #3f3f3f;
	font-size: 18px;
	margin-bottom: 7px;
}

.tpmo-cart-empty span {
	font-size: 13px;
	line-height: 1.8;
}

.tpmo-cart-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tpmo-cart-item {
	align-items: center;
	border-bottom: 1px solid #eee;
	display: grid;
	gap: 12px;
	grid-template-columns: 74px minmax(0, 1fr) 26px;
	margin: 0;
	padding: 16px 0;
	position: relative;
}

.tpmo-cart-thumb {
	background: #f7f7f7;
	border-radius: 9px;
	display: block;
	overflow: hidden;
}

.tpmo-cart-thumb img {
	display: block;
	height: 74px;
	margin: 0;
	object-fit: cover;
	width: 74px;
}

.tpmo-cart-item-info {
	min-width: 0;
}

.tpmo-cart-item-name {
	color: #333;
	display: -webkit-box;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tpmo-cart-item-info .variation {
	color: #888;
	font-size: 11px;
	margin: 5px 0 0;
}

.tpmo-cart-item-info .variation dt,
.tpmo-cart-item-info .variation dd {
	display: inline;
	float: none;
	margin: 0 0 0 3px;
}

.tpmo-cart-item-meta {
	align-items: center;
	display: flex;
	font-size: 12px;
	gap: 10px;
	justify-content: space-between;
	margin-top: 8px;
}

.tpmo-cart-item-meta span {
	color: #888;
}

.tpmo-cart-item-meta strong {
	color: var(--wd-primary-color, #f6931f);
	font-weight: 800;
}

.tpmo-cart-remove {
	align-items: center;
	background: #f5f5f5;
	border-radius: 50%;
	color: #999;
	display: flex;
	font-family: Arial, sans-serif;
	font-size: 20px;
	height: 25px;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	width: 25px;
}

.tpmo-cart-remove:hover {
	background: #fff0ee;
	color: #d33;
}

.tpmo-cart-footer {
	background: #fff;
	border-top: 1px solid #eee;
	box-shadow: 0 -7px 22px rgba(0, 0, 0, .035);
	padding: 17px 22px 20px;
}

.tpmo-cart-subtotal {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 14px;
}

.tpmo-cart-subtotal span {
	color: #555;
	font-size: 13px;
}

.tpmo-cart-subtotal strong {
	color: #222;
	font-size: 16px;
	font-weight: 800;
}

.tpmo-cart-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}

.tpmo-cart-button {
	align-items: center;
	border: 1px solid var(--wd-primary-color, #f6931f);
	border-radius: 9px;
	display: flex;
	font-size: 13px;
	font-weight: 800;
	justify-content: center;
	min-height: 46px;
	padding: 8px 10px;
	text-align: center;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.tpmo-cart-button.is-cart {
	background: #fff;
	color: var(--wd-primary-color, #f6931f);
}

.tpmo-cart-button.is-checkout {
	background: var(--wd-primary-color, #f6931f);
	color: #fff;
}

.tpmo-cart-button.is-disabled {
	background: #ddd;
	border-color: #ddd;
	color: #888;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 480px) {
	.tpmo-cart-canvas {
		max-width: none;
		width: min(88vw, 380px);
	}

	.tpmo-cart-header {
		padding-inline: 18px;
	}

	.tpmo-cart-body,
	.tpmo-cart-footer {
		padding-inline: 18px;
	}

	.tpmo-cart-actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpmo-cart-canvas,
	.tpmo-cart-overlay {
		transition: none;
	}
}
