.wsc-premium,
.wsc-premium * {
	box-sizing: border-box;
}

.wsc-lock {
	overflow: hidden;
}

.wsc-floating-wrap {
	bottom: var(--wsc-offset);
	position: fixed;
	right: var(--wsc-offset);
	z-index: 99980;
}

.wsc-floating-button {
	align-items: center;
	background: var(--wsc-accent);
	border: 0;
	border-radius: 999px;
	box-shadow: var(--wsc-shadow);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 62px;
	justify-content: center;
	position: relative;
	transition: transform .18s ease, filter .18s ease;
	width: 62px;
}

.wsc-floating-button:hover,
.wsc-floating-button:focus-visible {
	filter: brightness(.98);
	transform: translateY(-1px);
}

.wsc-floating-button svg {
	fill: currentColor;
	height: 29px;
	width: 29px;
}

.wsc-badge {
	align-items: center;
	background: #fff;
	border: 2px solid var(--wsc-badge);
	border-radius: 999px;
	color: var(--wsc-badge);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	height: 23px;
	justify-content: center;
	line-height: 1;
	min-width: 23px;
	padding: 0 5px;
	position: absolute;
	right: -5px;
	top: -4px;
}

.wsc-badge.is-hidden {
	display: none;
}

.wsc-overlay {
	background: rgba(17, 24, 39, .38);
	inset: 0;
	position: fixed;
	z-index: 99988;
}

.wsc-drawer {
	background: #f7f8fa;
	box-shadow: -18px 0 52px rgba(31, 35, 40, .18);
	height: 100dvh;
	max-width: 100vw;
	position: fixed;
	right: 0;
	top: 0;
	transform: translateX(102%);
	transition: transform .24s ease;
	width: var(--wsc-width);
	z-index: 99989;
}

.wsc-premium.is-open .wsc-drawer {
	transform: translateX(0);
}

.wsc-drawer__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.wsc-header {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #e7e9ee;
	display: flex;
	flex: 0 0 auto;
	justify-content: space-between;
	padding: 18px 20px;
}

.wsc-header h2 {
	color: #17191f;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.wsc-close,
.wsc-remove {
	align-items: center;
	background: #f0f1f4;
	border: 0;
	border-radius: 8px;
	color: #4b5563;
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	width: 36px;
}

.wsc-remove {
	background: transparent;
	color: #8b93a1;
	height: 28px;
	width: 28px;
}

.wsc-close:focus-visible,
.wsc-remove:focus-visible,
.wsc-qty button:focus-visible,
.wsc-checkout:focus-visible,
.wsc-cart-link:focus-visible,
.wsc-empty__link:focus-visible {
	outline: 3px solid rgba(232, 63, 99, .28);
	outline-offset: 2px;
}

.wsc-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	position: relative;
}

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

.wsc-item {
	background: #fff;
	border: 1px solid #e9ebf0;
	border-radius: min(var(--wsc-radius), 18px);
	display: grid;
	gap: 12px;
	grid-template-columns: 76px minmax(0, 1fr);
	margin-bottom: 12px;
	padding: 12px;
}

.wsc-item__image img {
	aspect-ratio: 1;
	border-radius: 12px;
	display: block;
	height: auto;
	object-fit: cover;
	width: 76px;
}

.wsc-item__main {
	min-width: 0;
}

.wsc-item__top {
	align-items: flex-start;
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.wsc-item h3 {
	color: #17191f;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.3;
	margin: 0;
	overflow-wrap: anywhere;
}

.wsc-item__meta {
	color: #697181;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 5px;
}

.wsc-item__meta dt,
.wsc-item__meta dd {
	display: inline;
	margin: 0;
}

.wsc-item__meta dt::after {
	content: ": ";
}

.wsc-item__meta dd::after {
	content: " · ";
}

.wsc-item__meta dd:last-child::after {
	content: "";
}

.wsc-item__bottom {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
}

.wsc-qty {
	align-items: center;
	background: #f5f6f8;
	border: 1px solid #e4e7ec;
	border-radius: 999px;
	display: inline-flex;
	min-height: 34px;
}

.wsc-qty button {
	background: transparent;
	border: 0;
	color: #242832;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	height: 34px;
	width: 36px;
}

.wsc-qty span {
	color: #17191f;
	font-size: 13px;
	font-weight: 800;
	min-width: 24px;
	text-align: center;
}

.wsc-item__price {
	color: #17191f;
	font-size: 14px;
	font-weight: 800;
}

.wsc-footer {
	background: #fff;
	border-top: 1px solid #e7e9ee;
	box-shadow: 0 -10px 24px rgba(31, 35, 40, .06);
	flex: 0 0 auto;
	padding: 16px;
}

.wsc-free-shipping {
	background: #e9f8ef;
	border: 1px solid #bfe8cd;
	border-radius: 12px;
	color: #15713a;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
	margin-bottom: 13px;
	padding: 10px 12px;
	text-align: center;
}

.wsc-totals {
	border-top: 1px solid #edf0f3;
	color: #4b5563;
	font-size: 14px;
}

.wsc-totals div {
	align-items: center;
	border-bottom: 1px solid #edf0f3;
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
}

.wsc-totals strong {
	color: #17191f;
	font-weight: 800;
}

.wsc-totals small {
	color: #818998;
	display: block;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.35;
	margin-top: 2px;
}

.wsc-totals .wsc-total {
	color: #17191f;
	font-size: 17px;
	font-weight: 850;
}

.wsc-checkout {
	background: var(--wsc-checkout);
	border-radius: min(var(--wsc-radius), 18px);
	color: #fff;
	display: block;
	font-size: 16px;
	font-weight: 850;
	margin-top: 14px;
	padding: 14px 18px;
	text-align: center;
	text-decoration: none;
}

.wsc-checkout:hover {
	color: #fff;
	filter: brightness(.97);
}

.wsc-cart-link {
	color: #5b6472;
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-top: 11px;
	text-align: center;
	text-decoration: none;
}

.wsc-empty,
.wsc-loading,
.wsc-error {
	align-items: center;
	color: #4b5563;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	padding: 28px;
	text-align: center;
}

.wsc-empty__icon {
	align-items: center;
	background: #fff;
	border: 1px solid #eceff3;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(31, 35, 40, .08);
	color: var(--wsc-accent);
	display: inline-flex;
	font-size: 28px;
	height: 68px;
	justify-content: center;
	margin-bottom: 14px;
	width: 68px;
}

.wsc-empty p {
	color: #17191f;
	font-size: 17px;
	font-weight: 750;
	margin: 0 0 14px;
}

.wsc-empty__link {
	background: var(--wsc-accent);
	border-radius: min(var(--wsc-radius), 18px);
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	padding: 12px 18px;
	text-decoration: none;
}

.wsc-premium.is-busy .wsc-body::after {
	background: rgba(255, 255, 255, .55);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

@media (max-width: 767px) {
	.wsc-floating-wrap {
		bottom: var(--wsc-offset-mobile);
		right: var(--wsc-offset-mobile);
	}

	.wsc-floating-button {
		height: 58px;
		width: 58px;
	}

	.wsc-drawer {
		width: var(--wsc-width-mobile);
	}

	.wsc-item {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.wsc-item__image img {
		width: 68px;
	}

	.wsc-no-mobile .wsc-floating-wrap {
		display: none;
	}
}

@media (min-width: 768px) {
	.wsc-no-desktop .wsc-floating-wrap {
		display: none;
	}
}
