:root {
	--vsce-cart-blue: #1565a0;
	--vsce-cart-blue-dark: #0f3d5c;
	--vsce-cart-ink: #1f2d3d;
	--vsce-cart-muted: #7c8792;
	--vsce-cart-border: #e7ebef;
	--vsce-cart-soft: #f3f5f7;
	--vsce-cart-danger: #d9424e;
}

body.vsce-cart-drawer-open {
	overflow: hidden;
}

.vsce-floating-cart,
.vsce-cart-drawer,
.vsce-cart-drawer * {
	box-sizing: border-box;
}

.vsce-floating-cart {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100001;
	display: inline-flex;
	width: 72px;
	height: 72px;
	padding: 17px;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255, 255, 255, 0.94);
	border-radius: 50%;
	background: var(--vsce-cart-blue);
	box-shadow: 0 11px 28px rgba(15, 61, 92, 0.28);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vsce-floating-cart:hover {
	background: var(--vsce-cart-blue-dark);
	box-shadow: 0 14px 32px rgba(15, 61, 92, 0.34);
	transform: translateY(-2px);
}

.vsce-floating-cart:focus-visible,
.vsce-cart-drawer button:focus-visible,
.vsce-cart-drawer a:focus-visible {
	outline: 2px solid rgba(21, 101, 160, 0.68);
	outline-offset: 3px;
}

.vsce-floating-cart > svg {
	display: block;
	width: 34px;
	height: 34px;
}

.vsce-floating-cart__count {
	position: absolute;
	top: -4px;
	left: -4px;
	display: inline-flex;
	width: 22px;
	min-width: 22px;
	height: 22px;
	padding: 0 4px;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--vsce-cart-danger);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.vsce-floating-cart__count[hidden] {
	display: none;
}

.vsce-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	visibility: hidden;
	justify-content: flex-end;
	pointer-events: none;
	font-family: 'Poppins', sans-serif;
	transition: visibility 0s linear .26s;
}

.vsce-cart-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.vsce-cart-drawer__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0 !important;
	background: rgba(20, 35, 45, 0.18) !important;
	box-shadow: none !important;
	color: transparent !important;
	cursor: default;
	opacity: 0;
	transform: none !important;
	appearance: none;
	transition: opacity .24s ease;
}

.vsce-cart-drawer__backdrop:hover,
.vsce-cart-drawer__backdrop:focus,
.vsce-cart-drawer__backdrop:active {
	border: 0 !important;
	background: rgba(20, 35, 45, 0.18) !important;
	box-shadow: none !important;
	color: transparent !important;
	transform: none !important;
}

.vsce-cart-drawer.is-open .vsce-cart-drawer__backdrop {
	opacity: 1;
}

.vsce-cart-drawer__panel {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(400px, 86vw);
	max-width: calc(100vw - 24px);
	height: 100dvh;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px 0 0 16px;
	background: #fff;
	box-shadow: -12px 0 32px rgba(15, 30, 40, 0.18);
	color: var(--vsce-cart-ink);
	transform: translateX(104%);
	transition: transform .26s cubic-bezier(.22, .75, .25, 1);
}

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

.vsce-cart-drawer__header {
	display: flex;
	min-height: 60px;
	padding: 0 12px 0 16px;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	gap: 12px;
	border-bottom: 1px solid var(--vsce-cart-border);
	background: #fff;
}

.vsce-cart-drawer__header h2 {
	margin: 0;
	color: #17588f;
	font-family: 'Poppins', sans-serif;
	font-size: 17px;
	font-weight: 750;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.vsce-cart-drawer__close {
	display: inline-flex;
	min-height: 40px;
	padding: 7px 9px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	border-radius: 9px;
	background: var(--vsce-cart-soft);
	color: var(--vsce-cart-ink);
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s ease;
}

.vsce-cart-drawer__close:hover {
	background: #e8ebee;
}

.vsce-cart-drawer__dynamic {
	position: relative;
	display: flex;
	min-height: 0;
	flex: 1;
	flex-direction: column;
	background: #fff;
}

.vsce-cart-drawer__dynamic.is-loading {
	pointer-events: none;
}

.vsce-cart-drawer__dynamic.is-loading::after {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: rgba(255, 255, 255, 0.62);
	content: '';
}

.vsce-cart-drawer__shipping {
	padding: 10px 16px 12px;
	flex: 0 0 auto;
	border-bottom: 1px solid var(--vsce-cart-border);
	background: #fff;
	color: #4a545e;
	font-size: 12.5px;
	line-height: 1.35;
}

.vsce-cart-drawer__shipping.is-complete {
	color: #2f6083;
	font-weight: 750;
}

.vsce-cart-drawer__shipping > span:first-child {
	display: block;
}

.vsce-cart-drawer__shipping-track {
	display: block;
	height: 6px;
	margin-top: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: #e3e9ee;
}

.vsce-cart-drawer__shipping-track i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--vsce-cart-blue);
	transition: width .25s ease;
}

.vsce-cart-drawer__items {
	min-height: 0;
	padding: 6px 16px 0;
	flex: 1;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.vsce-cart-item {
	display: grid;
	padding: 12px 0;
	grid-template-columns: 68px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	border-bottom: 1px solid var(--vsce-cart-border);
}

.vsce-cart-item:last-child {
	border-bottom: 0;
}

.vsce-cart-item__image,
.vsce-cart-item__image a,
.vsce-cart-item__image img {
	display: block;
	width: 68px;
	height: 68px;
}

.vsce-cart-item__image img {
	margin: 0;
	border: 1px solid var(--vsce-cart-border);
	border-radius: 12px;
	background: #f4f6f8;
	object-fit: contain;
}

.vsce-cart-item__content {
	display: flex;
	min-width: 0;
	min-height: 68px;
	flex-direction: column;
	gap: 9px;
}

.vsce-cart-item__top,
.vsce-cart-item__bottom {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.vsce-cart-item__bottom {
	margin-top: auto;
	align-items: center;
}

.vsce-cart-item__name {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	color: var(--vsce-cart-ink);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vsce-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.vsce-cart-item__name a:hover {
	color: #17588f;
}

.vsce-cart-item__remove {
	display: inline-flex;
	width: 38px;
	height: 38px;
	padding: 6px;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	border: 0;
	border-radius: 8px;
	background: var(--vsce-cart-soft);
	color: var(--vsce-cart-muted);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.vsce-cart-item__remove:hover {
	background: #fbeaec;
	color: #bd3340;
}

.vsce-cart-item__remove svg {
	width: 18px;
	height: 18px;
}

.vsce-cart-item__quantity {
	display: inline-grid;
	grid-template-columns: 36px 36px 36px;
	height: 38px;
	overflow: hidden;
	border: 1px solid #d6dde3;
	border-radius: 8px;
}

.vsce-cart-item__quantity button,
.vsce-cart-item__quantity span {
	display: flex;
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--vsce-cart-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
}

.vsce-cart-item__quantity button {
	background: var(--vsce-cart-soft);
	cursor: pointer;
}

.vsce-cart-item__quantity button:hover:not(:disabled) {
	background: #e8ebee;
}

.vsce-cart-item__quantity button:disabled {
	cursor: default;
	opacity: .42;
}

.vsce-cart-item__single {
	color: var(--vsce-cart-muted);
	font-size: 12px;
	font-weight: 600;
}

.vsce-cart-item__price {
	color: var(--vsce-cart-ink);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.25;
	white-space: nowrap;
}

.vsce-cart-item__price .woocommerce-Price-amount,
.vsce-cart-drawer__subtotal .woocommerce-Price-amount {
	font-weight: inherit;
}

.vsce-cart-drawer__footer {
	padding: 12px 16px max(16px, env(safe-area-inset-bottom));
	flex: 0 0 auto;
	border-top: 1px solid var(--vsce-cart-border);
	background: #fff;
}

.vsce-cart-drawer__subtotal {
	display: flex;
	margin-bottom: 10px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--vsce-cart-ink);
	font-size: 15px;
	font-weight: 750;
}

.vsce-cart-drawer__subtotal strong {
	font-size: 17px;
	font-weight: 750;
}

.vsce-cart-drawer__subtotal .tax_label {
	display: none;
}

.vsce-cart-drawer__checkout,
.vsce-cart-drawer__empty > a {
	display: flex;
	width: 100%;
	min-height: 50px;
	padding: 10px 14px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	background: var(--vsce-cart-blue);
	color: #fff;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .18s ease;
}

.vsce-cart-drawer__checkout:hover,
.vsce-cart-drawer__empty > a:hover {
	background: #115688;
	color: #fff;
}

.vsce-cart-drawer__empty {
	display: flex;
	padding: 36px 20px max(16px, env(safe-area-inset-bottom));
	align-items: center;
	justify-content: center;
	flex: 1;
	flex-direction: column;
	color: var(--vsce-cart-muted);
	text-align: center;
}

.vsce-cart-drawer__empty > svg {
	margin-bottom: 14px;
	color: #c3cbd2;
}

.vsce-cart-drawer__empty > strong {
	margin-bottom: 5px;
	color: var(--vsce-cart-ink);
	font-size: 17px;
	font-weight: 750;
}

.vsce-cart-drawer__empty > p {
	margin: 0 0 20px;
	color: var(--vsce-cart-muted);
	font-size: 14px;
	line-height: 1.45;
}

.vsce-cart-drawer__empty > a {
	min-height: 44px;
	margin-top: auto;
	background: var(--vsce-cart-soft);
	color: #17588f;
	font-size: 13.5px;
}

.vsce-cart-drawer__empty > a:hover {
	background: #e8ebee;
	color: #17588f;
}

.vsce-cart-drawer__error,
.vsce-cart-drawer__notice {
	margin: 16px;
	padding: 11px 12px;
	border-radius: 9px;
	background: #fbeaec;
	color: #9f2e38;
	font-size: 13px;
	font-weight: 650;
}

@media (max-width: 599px) {
	.vsce-floating-cart {
		right: 15px;
		bottom: max(15px, env(safe-area-inset-bottom));
		width: 66px;
		height: 66px;
		padding: 15px;
	}

	.vsce-floating-cart > svg {
		width: 31px;
		height: 31px;
	}

	.vsce-cart-drawer__panel {
		width: min(400px, 86vw);
		max-width: calc(100vw - 12px);
	}

	.vsce-cart-drawer__header {
		padding-inline: 12px;
	}

	.vsce-cart-drawer__header h2 {
		font-size: 16px;
	}

	.vsce-cart-drawer__close {
		min-height: 40px;
		padding-inline: 7px;
		font-size: 11.5px;
	}

	.vsce-cart-item__remove {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}

	.vsce-cart-item__quantity {
		grid-template-columns: 36px 36px 36px;
		height: 38px;
	}

	.vsce-cart-item__quantity button,
	.vsce-cart-item__quantity span {
		height: 36px;
	}

	.vsce-cart-drawer__items {
		padding-inline: 12px;
	}

	.vsce-cart-drawer__shipping,
	.vsce-cart-drawer__footer {
		padding-inline: 12px;
	}
}

@media (max-width: 359px) {
	.vsce-cart-drawer__close span {
		display: none;
	}

	.vsce-cart-drawer__close {
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.vsce-cart-item {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 9px;
	}

	.vsce-cart-item__image,
	.vsce-cart-item__image a,
	.vsce-cart-item__image img {
		width: 58px;
		height: 58px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vsce-floating-cart,
	.vsce-cart-drawer,
	.vsce-cart-drawer__backdrop,
	.vsce-cart-drawer__panel,
	.vsce-cart-drawer__shipping-track i {
		transition: none;
	}
}
