#tompla .cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	width: 100%;
	height: 100%;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	isolation: isolate;
	transition:
		visibility 0s linear 140ms;
}

#tompla .cart-drawer[aria-hidden="false"] {
	visibility: visible;
	pointer-events: auto;
	transition:
		visibility 0s linear 0s;
}

#tompla .cart-drawer__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(10, 20, 26, 0.32);
	box-shadow: none;
	opacity: 0;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	appearance: none;
	cursor: default;
	transition:
		opacity 100ms ease-in;
}

#tompla .cart-drawer[aria-hidden="false"] .cart-drawer__overlay {
	opacity: 1;
	transition:
		opacity 150ms ease-out;
}

#tompla .cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 440px;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-left: 1px solid var(--border);
	background: #ffffff;
	box-shadow:
		-18px 0 50px rgba(12, 25, 32, 0.15);
	transform: translate3d(100%, 0, 0);
	will-change: transform;
	transition:
		transform 140ms cubic-bezier(0.4, 0, 1, 1);
}

#tompla .cart-drawer[aria-hidden="false"] .cart-drawer__panel {
	transform: translate3d(0, 0, 0);
	transition:
		transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

#tompla .cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	min-height: 78px;
	padding: 0 18px;
	border-bottom: 1px solid var(--border);
	background: #ffffff;
}

#tompla .cart-drawer__heading {
	display: flex;
	align-items: center;
	min-width: 0;
}

#tompla .cart-drawer__title {
	margin: 0;
	color: var(--text-heading);
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.4px;
}

#tompla .cart-drawer__close {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	color: var(--text);
	box-shadow: none;
	appearance: none;
	transition:
		border-color 120ms ease,
		background-color 120ms ease,
		color 120ms ease,
		transform 100ms ease;
}

#tompla .cart-drawer__close:hover {
	border-color: var(--border);
	background: var(--background-soft);
	color: var(--brand);
}

#tompla .cart-drawer__close:active {
	transform: scale(0.95);
}

#tompla .cart-drawer__close span {
	position: absolute;
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
}

#tompla .cart-drawer__close span:first-child {
	transform: rotate(45deg);
}

#tompla .cart-drawer__close span:last-child {
	transform: rotate(-45deg);
}

#tompla .cart-drawer__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	padding: 16px 14px 18px;
	overflow-x: hidden;
	overflow-y: auto;
	background: #ffffff;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transition:
		opacity 100ms ease;
}

#tompla .cart-drawer__body.is-loading {
	opacity: 0.48;
	pointer-events: none;
}

#tompla .cart-drawer__items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#tompla .cart-drawer__item {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 13px;
	padding: 11px;
	border: 1px solid var(--border);
	background: #ffffff;
	box-shadow:
		0 2px 8px rgba(19, 33, 41, 0.04);
	transition:
		border-color 120ms ease,
		box-shadow 120ms ease,
		transform 120ms ease;
}

#tompla .cart-drawer__item:hover {
	border-color: var(--border-strong);
	box-shadow:
		0 5px 16px rgba(19, 33, 41, 0.07);
	transform: translateY(-1px);
}

#tompla .cart-drawer__image-wrap {
	width: 82px;
	height: 82px;
	overflow: hidden;
	border: 1px solid #e1e7ea;
	background: var(--background-soft);
}

#tompla .cart-drawer__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

#tompla .cart-drawer__product-image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition:
		transform 140ms ease;
}

#tompla .cart-drawer__image-link:hover .cart-drawer__product-image {
	transform: scale(1.02);
}

#tompla .cart-drawer__item-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#tompla .cart-drawer__item-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

#tompla .cart-drawer__product-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#tompla .cart-drawer__product-name {
	display: block;
	color: var(--text-heading);
	font-size: 14px;
	line-height: 1.35;
	font-weight: 650;
	transition:
		color 120ms ease;
}

#tompla a.cart-drawer__product-name:hover {
	color: var(--brand);
}

#tompla .cart-drawer__product-meta {
	display: block;
	margin-top: 4px;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.45;
	font-weight: 500;
}

#tompla .cart-drawer__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	margin: -3px -3px 0 0;
	padding: 0;
	border: 1px solid #ead5d5;
    background: var(--error-soft);
    color: var(--error);
	box-shadow: none;
	appearance: none;
	transition:
		border-color 120ms ease,
		background-color 120ms ease,
		color 120ms ease,
		transform 100ms ease;
}

#tompla .cart-drawer__remove svg {
	width: 18px;
	height: 18px;
}

#tompla .cart-drawer__remove:active {
	transform: scale(0.94);
}

#tompla .cart-drawer__item-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
}

#tompla .cart-drawer__quantity {
	display: grid;
	grid-template-columns: 30px 32px 30px;
	align-items: center;
	height: 32px;
	border: 1px solid var(--border-strong);
	background: #ffffff;
	overflow: hidden;
}

#tompla .cart-drawer__quantity-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--text);
	box-shadow: none;
	font-size: 17px;
	line-height: 1;
	font-weight: 500;
	appearance: none;
	transition:
		background-color 100ms ease,
		color 100ms ease;
}

#tompla .cart-drawer__quantity-button:hover:not(:disabled) {
	background: var(--brand-soft);
	color: var(--brand);
}

#tompla .cart-drawer__quantity-button:active:not(:disabled) {
	background: var(--background-muted);
}

#tompla .cart-drawer__quantity-button:disabled {
	color: var(--text-subtle);
	cursor: not-allowed;
	opacity: 0.4;
}

#tompla .cart-drawer__quantity-value {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	color: var(--text-heading);
	font-size: 13px;
	line-height: 1;
	font-weight: 650;
}

#tompla .cart-drawer__quantity-static {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--border);
	background: var(--background-soft);
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1;
	font-weight: 600;
}

#tompla .cart-drawer__price {
	color: var(--text-heading);
	font-size: 15px;
	line-height: 1.3;
	font-weight: 750;
	white-space: nowrap;
}

#tompla .cart-drawer__price .amount {
	color: inherit;
	font: inherit;
}

#tompla .cart-drawer__summary {
	margin-top: auto;
	padding-top: 20px;
}

#tompla .cart-drawer__subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 18px;
    margin-bottom: 18px;
	border-top: 1px solid var(--border);
}

#tompla .cart-drawer__subtotal-label {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
}

#tompla .cart-drawer__subtotal-value {
	color: var(--text-heading);
	font-size: 21px;
	line-height: 1.25;
	font-weight: 750;
	letter-spacing: -0.4px;
	white-space: nowrap;
}

#tompla .cart-drawer__subtotal-value .amount {
	color: inherit;
	font: inherit;
}

#tompla .cart-drawer__shipping-note {
	margin: 8px 0 17px;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.5;
}

#tompla .cart-drawer__actions {
	display: grid;
	gap: 9px;
}

#tompla .cart-drawer__view-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 9px 14px;
	border: 1px solid var(--border-strong);
	background: #ffffff;
	color: var(--text);
	font-size: 14px;
	line-height: 1.3;
	font-weight: 650;
	transition:
		border-color 120ms ease,
		background-color 120ms ease,
		color 120ms ease;
}

#tompla .cart-drawer__view-cart:hover {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand);
}

#tompla .cart-drawer__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 360px;
	padding: 36px 20px;
	text-align: center;
}

#tompla .cart-drawer__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 20px;
	border: 1px solid var(--border);
	background: var(--background-soft);
	color: var(--brand);
	box-shadow:
		0 3px 10px rgba(19, 33, 41, 0.05);
}

#tompla .cart-drawer__empty-icon svg {
	width: 32px;
	height: 32px;
}

#tompla .cart-drawer__empty-title {
	margin: 0 0 7px;
	color: var(--text-heading);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.3px;
}

#tompla .cart-drawer__empty-text {
	max-width: 280px;
	margin: 0 0 22px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.55;
}

#tompla .cart-drawer__empty-button {
	min-width: 180px;
}

#tompla .cart-drawer__body {
	scrollbar-width: thin;
	scrollbar-color:
		var(--border-strong)
		transparent;
}

#tompla .cart-drawer__body::-webkit-scrollbar {
	width: 6px;
}

#tompla .cart-drawer__body::-webkit-scrollbar-track {
	background: transparent;
}

#tompla .cart-drawer__body::-webkit-scrollbar-thumb {
	background: var(--border-strong);
}

#tompla .cart-drawer__body::-webkit-scrollbar-thumb:hover {
	background: var(--accent);
}

@media (min-width: 768px) {
	#tompla .cart-drawer__panel {
		width: 460px;
		max-width: 460px;
	}

	#tompla .cart-drawer__header {
		min-height: 80px;
		padding-left: 22px;
		padding-right: 22px;
	}

	#tompla .cart-drawer__body {
		padding: 18px 18px 22px;
	}

	#tompla .cart-drawer__item {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 15px;
		padding: 12px;
	}

	#tompla .cart-drawer__image-wrap {
		width: 88px;
		height: 88px;
	}

	#tompla .cart-drawer__product-name {
		font-size: 15px;
	}

	#tompla .cart-drawer__price {
		font-size: 16px;
	}
}

@media (min-width: 1024px) {
	#tompla .cart-drawer__panel {
		width: 480px;
		max-width: 480px;
	}

	#tompla .cart-drawer__header {
		min-height: 82px;
		padding-left: 26px;
		padding-right: 26px;
	}

	#tompla .cart-drawer__body {
		padding: 20px 22px 24px;
	}

	#tompla .cart-drawer__items {
		gap: 12px;
	}

	#tompla .cart-drawer__item {
		padding: 13px;
	}
}

@media (min-width: 1280px) {
	#tompla .cart-drawer__panel {
		width: 500px;
		max-width: 500px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#tompla .cart-drawer,
	#tompla .cart-drawer__overlay,
	#tompla .cart-drawer__panel,
	#tompla .cart-drawer__body,
	#tompla .cart-drawer__item,
	#tompla .cart-drawer__product-image {
		transition: none;
	}
}