.tpc-cart-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent !important;
	color: #fff;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}

.tpc-cart-button:hover,
.tpc-cart-button:focus,
.tpc-cart-button:active {
	background: transparent !important;
	color: #fff;
	box-shadow: none !important;
}

.tpc-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent, #e95420);
	line-height: 1;
}

.tpc-cart-icon svg {
	display: block;
	width: 32px;
	height: 32px;
	fill: currentColor;
	transform: translateX(-0.5px);
}

.tpc-cart-count {
	position: absolute;
	top: 0;
	left: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 15px;
	height: 15px;
	padding: 0 5px;
	border-radius: 999px;
	background: #fff;
	color: var(--contrast, #171717);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.tpc-cart-count[hidden] {
	display: none !important;
}

.tpc-cart-text {
	color: #fff;
	font-size: 1.328125rem;
	line-height: 1;
}

/* Drawer shell */
.tpc-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
}

.tpc-cart-drawer.open {
	display: block;
}

.tpc-cart-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.tpc-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(480px, 100vw);
	height: 100%;
	background: #fff;
	color: var(--contrast, #171717);
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
}

/* Close button */
.tpc-cart-close {
	position: absolute;
	top: 32px;
	right: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent !important;
	color: var(--contrast, #171717);
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}

.tpc-cart-close:hover,
.tpc-cart-close:focus {
	background: transparent !important;
	color: var(--accent, #e95420);
}

/* Content area */
.tpc-cart-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.tpc-cart-drawer-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.tpc-cart-drawer-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 36px 64px 24px 16px;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--contrast, #171717);
}

.tpc-cart-drawer-count {
	font-size: 1em;
	font-weight: 400;
}

.tpc-cart-item-updating {
	opacity: 0.45;
	pointer-events: none;
}

.tpc-cart-item-backorder,
.tpc-cart-item-saving {
	display: inline-block;
	width: fit-content;
	background: color-mix(in srgb, currentColor 10%, transparent);
	color: var(--contrast, #171717);
	font-size: var(--wp--preset--font-size--x-small, calc(var(--wp--preset--font-size--small, 14px) * .875));
	line-height: 1.4;
	padding: 2px 4px;
	white-space: nowrap;
}

.tpc-cart-item-backorder {
	margin-top: 5px;
}

.tpc-cart-item-saving {
	display: block;
	margin-top: 6px;
	margin-left: auto;
	text-align: right;
}

.tpc-cart-items {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 0 16px 24px;
}

.tpc-cart-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	column-gap: 16px;
	row-gap: 4px;
	padding: 16px 0;
}

.tpc-cart-item-image img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	margin: 0;
}

.tpc-cart-item-main {
	min-width: 0;
}

.tpc-cart-item-title {
	display: block;
	color: var(--accent, #e95420);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.tpc-cart-item-title:hover {
	text-decoration: underline;
}

.tpc-cart-item-price {
	margin-top: 4px;
	color: var(--contrast, #171717);
	font-size: 14px;
	line-height: 1.3;
}

.tpc-cart-item-description {
	display: -webkit-box;
	margin-top: 6px;
	color: var(--contrast, #171717);
	font-size: 13px;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tpc-cart-item-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.tpc-cart-qty {
	display: inline-grid;
	grid-template-columns: 36px 48px 36px;
	align-items: center;
	min-height: 32px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	overflow: hidden;
}

.tpc-cart-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 32px;
	border: 0;
	background: #fff;
	color: var(--contrast, #171717);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.tpc-cart-qty-btn:hover,
.tpc-cart-qty-btn:focus {
	background: rgba(0, 0, 0, 0.04);
	color: var(--contrast, #171717);
}

.tpc-cart-qty-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	color: var(--contrast, #171717);
	font-size: 14px;
	line-height: 1;
}

.tpc-cart-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent !important;
	color: var(--contrast, #171717);
	cursor: pointer;
	box-shadow: none !important;
}

.tpc-cart-remove svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.tpc-cart-remove:hover,
.tpc-cart-remove:focus {
	color: var(--accent, #e95420);
	background: transparent !important;
}

.tpc-cart-item-total {
	justify-self: end;
	color: var(--contrast, #171717);
	font-size: 14px;
	line-height: 1.35;
	white-space: nowrap;
}

.tpc-cart-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.25);
	padding: 24px 16px;
}

.tpc-cart-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.tpc-cart-subtotal strong {
	font-weight: 600;
}

.tpc-cart-subtotal-note {
	margin: 6px 0 18px;
	color: var(--contrast, #171717);
	font-size: 13px;
	line-height: 1.35;
}

.tpc-cart-footer-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.tpc-cart-view-basket,
.tpc-cart-checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 14px 18px;
	border: 1px solid var(--contrast, #171717);
	background: #fff;
	color: var(--contrast, #171717);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border-radius: 0;
	box-shadow: none;
}

.tpc-cart-checkout {
	border-color: var(--accent, #e95420);
	background: var(--accent, #e95420);
	color: #fff;
}

.tpc-cart-view-basket:hover {
	background: var(--contrast, #171717);
	color: #fff;
}

.tpc-cart-checkout:hover {
	background: var(--accent-hover, var(--accent, #e95420));
	color: #fff;
}

/* Empty basket */
.tpc-cart-content .woocommerce-mini-cart__empty-message,
.tpc-cart-content .woocommerce-mini-cart__empty-message + * {
	margin: auto 16px;
	text-align: center;
	font-size: 18px;
}

/* Small screens */
@media (max-width: 480px) {
	.tpc-cart-panel {
		width: 100vw;
	}

	.tpc-cart-content::before {
		font-size: 28px;
		margin-top: 32px;
	}

	.tpc-cart-content .woocommerce-mini-cart__buttons {
		grid-template-columns: 1fr;
	}

	.tpc-cart-content .woocommerce-mini-cart-item {
		grid-template-columns: 56px 1fr auto;
		column-gap: 12px;
	}

	.tpc-cart-content .woocommerce-mini-cart-item img {
		width: 56px;
		height: 56px;
	}
}