/* Native Astra drawer override */
html.we-cart-enhanced #astra-mobile-cart-drawer,
html.we-cart-enhanced .astra-mobile-cart-overlay {
	display: none !important;
}

/* Drawer shell */
body.we-cart-open {
	overflow: hidden;
}

.we-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: none;
	background: rgba(21, 25, 29, 0.76);
	opacity: 0;
	transition: opacity 180ms ease;
}

.we-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 999999;
	width: min(94vw, 760px);
	height: 100vh;
	background: #fff;
	color: #28352c;
	box-shadow: -18px 0 46px rgba(0, 0, 0, 0.16);
	overflow: hidden;
	transform: translateX(102%);
	transition: transform 240ms ease;
}

.we-cart-drawer__inner {
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

body.we-cart-open .we-cart-overlay {
	display: block;
	opacity: 1;
}

body.we-cart-open .we-cart-drawer {
	transform: translateX(0);
}

.we-cart-shell {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	height: 100%;
	min-height: 0;
	overflow: hidden;
	font-family: "Karla", sans-serif;
}

/* Suggestions column */
.we-cart-suggestions {
	padding: 22px 16px;
	border-right: 1px solid #e2e5e4;
	background: #fbfbfb;
	overflow: auto;
}

.we-cart-suggestions__title {
	margin: 0 0 20px;
	color: #28352c;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.we-cart-suggestions__empty,
.we-cart-empty p {
	color: #7d8585;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.we-cart-suggestion {
	text-align: center;
}

.we-cart-suggestion + .we-cart-suggestion {
	margin-top: 26px;
}

.we-cart-suggestion__image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 1px solid #d9dde7;
	border-radius: 10px;
	background: #fff;
	text-decoration: none !important;
}

.we-cart-suggestion__image img {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: contain;
}

.we-cart-suggestion__brand,
.we-cart-item__brand {
	margin-bottom: 6px;
	color: #9ca3a7;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.we-cart-suggestion__name {
	display: block;
	margin: 12px 0 8px;
	color: #28352c !important;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.01em;
	line-height: 1.28;
	text-decoration: none !important;
	text-transform: uppercase;
}

.we-cart-suggestion__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 7px;
	color: #28352c;
	font-size: 12px;
	font-weight: 900;
}

.we-cart-suggestion__price del,
.we-cart-item__price del {
	color: #28352c;
	font-weight: 800;
	opacity: 1;
}

.we-cart-suggestion__price span {
	color: #a7dd66;
}

.we-cart-suggestion__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	min-height: 34px;
	margin-top: 12px;
	padding: 7px 14px;
	border: 2px solid #28352c;
	border-radius: 999px;
	background: transparent;
	color: #28352c;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	cursor: pointer;
}

.we-cart-suggestion__add:hover,
.we-cart-suggestion__add:focus {
	background: #28352c;
	color: #fff;
}

/* Header and reward milestones */
.we-cart-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: 100%;
	overflow: hidden;
	background: #fff;
}

.we-cart-header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px 8px;
}

.we-cart-header h2 {
	margin: 0;
	color: #28352c;
	font-size: 19px;
	font-weight: 900;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
}

.we-cart-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #28352c !important;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.we-cart-close:hover,
.we-cart-close:focus {
	background: transparent !important;
	box-shadow: none !important;
	color: #a7dd66 !important;
	outline: none;
}

.we-cart-rewards {
	flex: 0 0 auto;
	padding: 0 24px 12px;
}

.we-cart-rewards__message {
	margin: 0 0 10px;
	color: #858694;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
}

.we-cart-rewards__track {
	position: relative;
	height: 46px;
	padding-top: 12px;
}

.we-cart-rewards__track::before,
.we-cart-rewards__fill {
	position: absolute;
	top: 18px;
	left: 0;
	height: 7px;
	border-radius: 999px;
	content: "";
}

.we-cart-rewards__track::before {
	right: 0;
	background: #e6ece2;
}

.we-cart-rewards__fill {
	background: #aee070;
}

.we-cart-rewards__milestone {
	position: absolute;
	top: 0;
	left: var(--we-reward-position, 50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 82px;
	color: #28352c;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	transform: translateX(-50%);
}

.we-cart-rewards__milestone--discount {
	left: var(--we-reward-position, 48%);
}

.we-cart-rewards__milestone--gift {
	left: var(--we-reward-position, 94%);
}

.we-cart-rewards__icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #aee070;
	color: #fff;
	font-size: 19px;
	font-weight: 900;
	line-height: 1;
}

.we-cart-rewards__milestone:not(.is-unlocked) .we-cart-rewards__icon {
	background: #d9e5cf;
}

/* Gift chooser */
.we-cart-gifts {
	flex: 0 0 auto;
	padding: 0 24px 12px;
}

.we-cart-gifts__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	color: #28352c;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.we-cart-gifts__head span {
	display: none;
	color: #9ca3a7;
	font-size: 10px;
}

.we-cart-gifts__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.we-cart-gift {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	min-width: 0;
	min-height: 104px;
	padding: 7px 6px;
	border: 1px solid #dfe3e2;
	border-radius: 10px;
	background: #fff;
	color: #28352c;
	cursor: pointer;
}

.we-cart-gift.is-selected {
	border-color: #a0d85c;
	background: #f4fbeb;
	box-shadow: inset 0 0 0 1px #a0d85c;
}

.we-cart-gift__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
}

.we-cart-gift__image img {
	display: block;
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.we-cart-gift__name {
	display: -webkit-box;
	width: 100%;
	min-height: 24px;
	overflow: hidden;
	color: #28352c;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.we-cart-gift__status {
	color: #9ad653;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

/* Cart items */
.we-cart-items {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 24px 14px;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #cbd4cf transparent;
}

.we-cart-items::-webkit-scrollbar {
	width: 6px;
}

.we-cart-items::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #cbd4cf;
}

.we-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) minmax(92px, auto);
	gap: 12px;
	align-items: start;
	padding: 12px 0 13px;
}

.we-cart-item + .we-cart-item {
	border-top: 1px solid #eef0ef;
}

.we-cart-item__remove {
	position: absolute;
	top: 4px;
	left: -10px;
	z-index: 2;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #28352c !important;
	font-size: 20px;
	font-weight: 300;
	line-height: 19px;
	cursor: pointer;
}

.we-cart-item__remove:hover,
.we-cart-item__remove:focus {
	background: transparent !important;
	box-shadow: none !important;
	color: #a7dd66 !important;
	outline: none;
}

.we-cart-item__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 66px;
	border: 1px solid #d9dde7;
	border-radius: 10px;
	background: #fff;
}

.we-cart-item__image img {
	display: block;
	width: 60px;
	height: 54px;
	object-fit: contain;
}

.we-cart-item__name {
	display: block;
	color: #28352c !important;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.28;
	text-decoration: none !important;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.we-cart-item__single {
	margin-top: 9px;
	color: #7d8585;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.we-cart-qty {
	display: inline-grid;
	grid-template-columns: 32px 40px 32px;
	height: 32px;
	margin-top: 10px;
	border: 1px solid #e0e2e2;
	border-radius: 12px;
	overflow: hidden;
}

.we-cart-qty button,
.we-cart-qty input {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: #28352c;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
}

.we-cart-qty button {
	cursor: pointer;
}

.we-cart-qty input {
	border-left: 1px solid #e0e2e2;
	border-right: 1px solid #e0e2e2;
	-moz-appearance: textfield;
}

.we-cart-qty input::-webkit-outer-spin-button,
.we-cart-qty input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.we-cart-item__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 8px;
	padding-top: 2px;
	color: #28352c;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
	text-align: right;
}

.we-cart-item__price strong {
	font-size: 14px;
}

.we-cart-item.is-gift .we-cart-item__single,
.we-cart-item.is-gift .we-cart-item__price strong {
	color: #8fcf46;
}

.we-cart-item__price span {
	flex-basis: 100%;
	color: #a7dd66;
	font-size: 12px;
	font-weight: 800;
}

/* Bottom coupon and totals */
.we-cart-bottom {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	margin-top: auto;
	border-top: 1px solid #e2e5e4;
	background: #fff;
	box-shadow: 0 -8px 18px rgba(40, 53, 44, 0.05);
}

.we-cart-coupon__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-bottom: 1px solid #e2e5e4;
	border-radius: 0;
	background: #fff;
	color: #28352c;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	text-align: left;
	cursor: pointer;
}

.we-cart-coupon__toggle span:last-child {
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
}

.we-cart-coupon__panel {
	padding: 12px 24px;
	border-bottom: 1px solid #e2e5e4;
}

.we-cart-coupon__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.we-cart-coupon__form input {
	height: 36px;
	border: 1px solid #dfe3e2;
	border-radius: 999px;
	box-shadow: none;
	font-size: 13px;
	font-weight: 700;
}

.we-cart-coupon__form button,
.we-cart-coupon__active button {
	height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: #28352c;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.we-cart-coupon__active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.we-cart-coupon__message {
	margin-top: 8px;
	color: #7d8585;
	font-size: 12px;
	font-weight: 800;
}

.we-cart-footer {
	padding: 16px 24px 18px;
}

.we-cart-footer__discount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 8px;
	color: #8fcf46;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
}

.we-cart-footer__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	color: #28352c;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.we-cart-footer__row--subtotal {
	margin-bottom: 8px;
	color: #6f7772;
	font-size: 14px;
}

.we-cart-footer__row--total {
	font-size: 17px;
}

.we-cart-footer__saved {
	margin-top: 7px;
	color: #a0d85c;
	font-size: 12px;
	font-weight: 900;
	text-align: right;
}

.we-cart-footer p {
	max-width: 520px;
	margin: 9px 0 13px;
	color: #28352c;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.we-cart-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	border-radius: 999px;
	background: #28352c;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
}

.we-cart-checkout svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.we-cart-checkout.is-disabled {
	pointer-events: none;
	opacity: 0.5;
}

/* Empty and loading states */
.we-cart-empty {
	padding: 28px 0;
	text-align: center;
}

.we-cart-empty h3 {
	margin: 0 0 10px;
	color: #28352c;
	font-size: 17px;
	font-weight: 900;
	text-transform: uppercase;
}

.we-cart-empty a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 12px;
	padding: 0 22px;
	border-radius: 999px;
	background: #28352c;
	color: #fff !important;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none !important;
	text-transform: uppercase;
}

.we-cart-drawer.is-loading::after {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.66);
	color: #28352c;
	font-size: 14px;
	font-weight: 900;
	text-transform: uppercase;
	content: "Atnaujinama";
}

/* Responsive layout */
@media (max-width: 921px) {
	.we-cart-drawer {
		width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
	}

	.we-cart-shell {
		display: flex;
		flex-direction: column;
		height: 100%;
		min-height: 0;
		overflow: hidden;
	}

	.we-cart-suggestions {
		display: none;
	}

	.we-cart-suggestions__title {
		grid-column: 1 / -1;
		margin: 0;
		font-size: 16px;
	}

	.we-cart-suggestion + .we-cart-suggestion {
		margin-top: 0;
	}

	.we-cart-suggestion__image {
		width: 82px;
		height: 82px;
	}

	.we-cart-suggestion__image img {
		width: 66px;
		height: 66px;
	}

	.we-cart-suggestion__name {
		margin: 12px 0 8px;
		font-size: 13px;
	}

	.we-cart-suggestion__brand,
	.we-cart-item__brand {
		margin-bottom: 4px;
		font-size: 9px;
	}

	.we-cart-suggestion__price {
		font-size: 13px;
	}

	.we-cart-suggestion__add {
		min-width: 0;
		min-height: 38px;
		margin-top: 12px;
		padding: 8px 16px;
		font-size: 13px;
	}

	.we-cart-main {
		min-height: 0;
		height: 100%;
		overflow: hidden;
		flex: 1 1 auto;
	}

	.we-cart-header {
		padding: 12px 14px 6px;
	}

	.we-cart-header h2 {
		font-size: 17px;
	}

	.we-cart-close {
		width: 32px;
		height: 32px;
		font-size: 28px;
	}

	.we-cart-rewards {
		padding: 0 14px 12px;
	}

	.we-cart-rewards__message {
		margin-bottom: 6px;
		font-size: 11px;
	}

	.we-cart-rewards__track {
		height: 54px;
		padding-top: 8px;
	}

	.we-cart-rewards__track::before,
	.we-cart-rewards__fill {
		top: 13px;
		height: 6px;
	}

	.we-cart-rewards__milestone {
		gap: 4px;
		width: 70px;
		font-size: 10px;
	}

	.we-cart-rewards__icon {
		width: 32px;
		height: 32px;
		font-size: 16px;
	}

	.we-cart-rewards__label {
		font-size: 10px;
	}

	.we-cart-rewards__milestone--discount {
		left: var(--we-reward-position, 50%);
	}

	.we-cart-rewards__milestone--gift {
		left: var(--we-reward-position, 88%);
	}

	.we-cart-gifts {
		padding: 0 14px 8px;
	}

	.we-cart-gifts__head span {
		display: none;
	}

	.we-cart-gifts__grid {
		gap: 6px;
	}

	.we-cart-gift {
		min-height: 96px;
		padding: 6px 4px;
	}

	.we-cart-gift__image,
	.we-cart-gift__image img {
		width: 36px;
		height: 36px;
	}

	.we-cart-items {
		padding: 0 14px 8px;
	}

	.we-cart-item {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 8px;
		padding: 8px 0 10px;
	}

	.we-cart-item__remove {
		left: -8px;
	}

	.we-cart-item__image {
		width: 54px;
		height: 52px;
	}

	.we-cart-item__image img {
		width: 44px;
		height: 42px;
	}

	.we-cart-item__name {
		font-size: 12px;
		line-height: 1.22;
	}

	.we-cart-item__single {
		margin-top: 6px;
		font-size: 10px;
	}

	.we-cart-qty {
		grid-template-columns: 28px 36px 28px;
		height: 28px;
		margin-top: 8px;
	}

	.we-cart-qty button,
	.we-cart-qty input {
		font-size: 13px;
	}

	.we-cart-item__price {
		grid-column: 2;
		justify-content: flex-start;
		padding-top: 0;
		text-align: left;
		font-size: 12px;
	}

	.we-cart-item__price strong {
		font-size: 13px;
	}

	.we-cart-item__price span {
		font-size: 11px;
	}

	.we-cart-coupon__toggle {
		min-height: 42px;
		padding: 0 14px;
		font-size: 13px;
	}

	.we-cart-coupon__panel,
	.we-cart-footer {
		padding-left: 14px;
		padding-right: 14px;
	}

	.we-cart-footer {
		padding-top: 12px;
		padding-bottom: calc(14px + env(safe-area-inset-bottom));
	}

	.we-cart-footer__discount {
		margin-bottom: 7px;
		font-size: 12px;
	}

	.we-cart-footer__row {
		font-size: 14px;
	}

	.we-cart-footer__row--subtotal {
		margin-bottom: 7px;
		font-size: 12px;
	}

	.we-cart-footer__row--total {
		font-size: 14px;
	}

	.we-cart-footer__saved {
		margin-top: 5px;
		font-size: 11px;
	}

	.we-cart-footer p {
		display: none;
	}

	.we-cart-checkout {
		min-height: 42px;
		gap: 8px;
		margin-top: 10px;
		font-size: 14px;
	}

	.we-cart-checkout svg {
		width: 17px;
		height: 17px;
	}
}
