:root {
	--stcc-primary: #007032;
	--stcc-primary-dark: #00542b;
	--stcc-border: #e5e8e6;
	--stcc-text: #151915;
	--stcc-muted: #6c736e;
	--stcc-soft: #f5f7f5;
	--stcc-max-width: 1380px;
	--stcc-drawer-width: 390px;
}

body.stcc-enabled .cart-widget-side,
body.stcc-enabled .wd-dropdown-cart {
	display: none !important;
}

.stcc-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.stcc-drawer {
	position: fixed;
	inset: 0;
	z-index: 100001;
	visibility: hidden;
	pointer-events: none;
	font-family: Inter, Arial, Helvetica, sans-serif;
}

.stcc-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.stcc-drawer__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(9, 18, 13, .34);
	opacity: 0;
	transition: opacity .22s ease;
	cursor: default;
}

.stcc-drawer.is-open .stcc-drawer__overlay { opacity: 1; }

.stcc-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(var(--stcc-drawer-width), 94vw);
	height: 100vh;
	height: 100dvh;
	background: #fff;
	box-shadow: -16px 0 42px rgba(0, 0, 0, .16);
	transform: translate3d(102%, 0, 0);
	transition: transform .28s cubic-bezier(.22, .8, .22, 1);
	color: var(--stcc-text);
}

.stcc-drawer.is-open .stcc-drawer__panel { transform: translate3d(0, 0, 0); }

.stcc-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--stcc-border);
}

.stcc-drawer__header h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #0b0d0b;
}

.stcc-drawer__close {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: transparent;
	color: #171a18;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 0 8px 8px;
	cursor: pointer;
}

.stcc-drawer__close span:first-child {
	font-size: 28px;
	font-weight: 300;
	line-height: 14px;
}

.stcc-drawer__body {
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 6px 18px 18px;
}

.stcc-drawer__items { display: grid; }

.stcc-drawer-item {
	position: relative;
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--stcc-border);
}

.stcc-drawer-item__image {
	width: 70px;
	height: 70px;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.stcc-drawer-item__image a { display: block; width: 100%; height: 100%; }
.stcc-drawer-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	margin: 0;
}

.stcc-drawer-item__content { min-width: 0; }
.stcc-drawer-item__top { display: flex; align-items: flex-start; gap: 8px; }
.stcc-drawer-item__name { flex: 1 1 auto; font-size: 15px; line-height: 1.35; font-weight: 600; }
.stcc-drawer-item__name a { color: #111512; text-decoration: none; }
.stcc-drawer-item__name a:hover { color: var(--stcc-primary); }

.stcc-item-remove,
.stcc-cart-remove,
.stcc-review-remove {
	appearance: none;
	border: 0;
	background: transparent;
	color: #777d79;
	font: inherit;
	font-size: 20px;
	line-height: 1;
	padding: 1px 2px;
	cursor: pointer;
}
.stcc-item-remove:hover,
.stcc-cart-remove:hover,
.stcc-review-remove:hover { color: #b42318; }

.stcc-sku {
	margin-top: 7px;
	font-size: 11.5px;
	line-height: 1.35;
	color: #3e4540;
	word-break: break-word;
}
.stcc-sku strong { font-weight: 700; }

.stcc-drawer-item__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.stcc-drawer-item__price {
	font-size: 13px;
	font-weight: 700;
	color: var(--stcc-primary-dark);
	white-space: nowrap;
}
.stcc-drawer-item__price > span { color: #a3aaa5; font-weight: 500; }

.stcc-qty {
	display: inline-grid;
	grid-template-columns: 28px 34px 28px;
	height: 34px;
	border: 1px solid #171a18;
	background: #fff;
}
.stcc-qty__button,
.stcc-qty__input {
	appearance: none;
	min-width: 0 !important;
	width: 100% !important;
	height: 32px !important;
	min-height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #101310 !important;
	text-align: center !important;
	font: inherit !important;
	font-size: 13px !important;
	line-height: 32px !important;
}
.stcc-qty__button { cursor: pointer; font-size: 17px !important; }
.stcc-qty__button:first-child { border-right: 1px solid #171a18 !important; }
.stcc-qty__button:last-child { border-left: 1px solid #171a18 !important; }
.stcc-qty__button:hover { background: var(--stcc-soft) !important; }
.stcc-qty__button:disabled { opacity: .45; cursor: wait; }
.stcc-qty__input { -moz-appearance: textfield !important; }
.stcc-qty__input::-webkit-outer-spin-button,
.stcc-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stcc-qty-static { font-weight: 600; }

.stcc-drawer__footer {
	padding: 15px 18px 17px;
	border-top: 1px solid var(--stcc-border);
	background: #fff;
	box-shadow: 0 -10px 26px rgba(0, 0, 0, .035);
}

.stcc-drawer__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	margin-bottom: 13px;
	font-size: 18px;
}
.stcc-drawer__subtotal span { font-weight: 700; }
.stcc-drawer__subtotal strong { color: var(--stcc-primary-dark); font-size: 19px; }

.stcc-primary-button,
a.stcc-primary-button,
button.stcc-primary-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	margin: 0 0 10px;
	padding: 11px 18px;
	border: 1px solid var(--stcc-primary);
	border-radius: 4px;
	background: var(--stcc-primary);
	color: #fff !important;
	text-decoration: none !important;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	box-shadow: none;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.stcc-primary-button:hover { background: var(--stcc-primary-dark); border-color: var(--stcc-primary-dark); }
.stcc-primary-button:active { transform: translateY(1px); }
.stcc-primary-button--dark { background: var(--stcc-primary-dark); border-color: var(--stcc-primary-dark); }
.stcc-drawer__footer .stcc-primary-button:last-child { margin-bottom: 0; }

.stcc-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 10px 14px;
	border: 1px solid var(--stcc-primary);
	border-radius: 4px;
	color: var(--stcc-primary) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.stcc-drawer__empty {
	display: grid;
	place-items: center;
	align-content: center;
	min-height: 55vh;
	text-align: center;
	color: var(--stcc-muted);
}
.stcc-drawer__empty strong { color: var(--stcc-text); font-size: 17px; }
.stcc-drawer__empty-icon { margin-bottom: 10px; font-size: 32px; }

.stcc-cart-button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.stcc-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 20px;
	background: var(--stcc-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 19px;
}

body.stcc-drawer-open { overflow: hidden; }

@media (max-width: 480px) {
	.stcc-drawer__header { padding-inline: 15px; }
	.stcc-drawer__body { padding-inline: 15px; }
	.stcc-drawer__footer { padding-inline: 15px; }
	.stcc-drawer-item { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
	.stcc-drawer-item__image { width: 62px; height: 62px; }
	.stcc-drawer-item__name { font-size: 14px; }
	.stcc-drawer__close span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.stcc-drawer__overlay,
	.stcc-drawer__panel,
	.stcc-primary-button { transition: none; }
}

.stcc-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100010;
	max-width: min(460px, calc(100vw - 28px));
	padding: 11px 16px;
	border-radius: 5px;
	background: #1d2520;
	color: #fff;
	font: 600 13px/1.4 Inter, Arial, sans-serif;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .18s ease, transform .18s ease;
}
.stcc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.stcc-drawer-item.is-updating,
.stcc-cart-row.is-updating,
.stcc-review-item.is-updating { opacity: .58; }
