.ds-cart-wrap {
	max-width: 1176px;
	margin: 0 auto;
	padding: 0 16px 48px;
	color: #333333;
}

.ds-cart-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}

.ds-cart-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 22px;
	padding-left: 16px;
}

.ds-cart-check-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.ds-cart-check {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #86995a;
	cursor: pointer;
	outline: none !important;
}

/* Удаление выбранных товаров */
.ds-cart-remove-selected {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-left: auto;
	padding: 8px 10px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #747474 !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition:
		color .25s ease,
		background-color .25s ease,
		opacity .25s ease,
		transform .25s ease,
		box-shadow .25s ease;
}

.ds-cart-remove-selected svg,
.ds-cart-remove-selected svg path,
.ds-cart-remove-selected span,
.ds-cart-remove-selected::before,
.ds-cart-remove-selected::after {
	color: inherit !important;
	fill: currentColor;
	stroke: currentColor;
	transition:
		color .25s ease,
		fill .25s ease,
		stroke .25s ease,
		opacity .25s ease;
}

.ds-cart-remove-selected:hover {
	background-color: #f4f7ef;
	color: #86995a !important;
	transform: translateY(-1px);
}

.ds-cart-remove-selected:active {
	transform: translateY(0);
	opacity: .8;
}

.ds-cart-remove-selected:focus {
	outline: none !important;
}

.ds-cart-remove-selected:focus-visible {
	color: #86995a !important;
	box-shadow: 0 0 0 3px rgba(134, 153, 90, .18);
}

.ds-cart-remove-selected:disabled {
	opacity: .45;
	cursor: default;
	pointer-events: none;
}

.ds-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 18px 95px minmax(86px, 1fr) 292px 1fr 32px;
	gap: 16px;
	align-items: start;
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(51, 51, 51, 0.04);
	transition:
		opacity .18s ease,
		transform .18s ease,
		border-color .18s ease,
		box-shadow .18s ease;
}

.ds-cart-item:hover {
	border-color: #cfd7c5;
	box-shadow: 0 14px 34px rgba(51, 51, 51, 0.07);
}

.ds-cart-item.is-loading {
	opacity: .65;
	pointer-events: none;
}

.ds-cart-item.is-disabled {
	opacity: .6;
}

.ds-cart-item-check {
	display: flex;
	align-items: center;
	width: 18px;
	padding-top: 1px;
	cursor: pointer;
}

.ds-cart-thumb {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 95px;
	min-height: 80px;
}

.ds-cart-thumb img {
	width: 95px;
	max-height: 95px;
	object-fit: contain;
}

.ds-cart-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ds-cart-name {
	font-size: 14px;
	line-height: 1.35;
	color: #333333;
	font-weight: 500;
	transition: color .18s ease;
}

.ds-cart-name a:hover {
	color: #86995a;
}

.ds-cart-category {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.3;
	color: #747474;
}

.ds-cart-category a:hover {
	color: #86995a;
}

.ds-cart-sku {
	margin-top: auto;
	padding-top: 12px;
	font-size: 12px;
	line-height: 1.3;
	color: #9a9a9a;
}

.ds-cart-packs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.ds-cart-line {
	display: grid;
	grid-template-columns: 95px 95px 32px;
	gap: 16px;
	align-items: center;
	transition:
		opacity .18s ease,
		transform .18s ease;
}

.ds-cart-pack-name {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #86995a;
	border-radius: 5px;
	background: #fff;
	color: #333333;
	font-size: 14px;
	line-height: 1;
}

.ds-cart-qty {
	display: grid;
	grid-template-columns: 38px 1fr 38px;
	height: 40px;
	border: 1px solid #86995a;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
}

.ds-cart-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #fff;
	color: #333333;
	font-size: 22px;
	line-height: 1;
	transition:
		background-color .18s ease,
		color .18s ease;
}

.ds-cart-qty-btn:hover:not(:disabled) {
	background: #f4f7ef;
	color: #86995a;
}

.ds-cart-qty-btn:disabled {
	color: #bbb;
	cursor: default;
}

.ds-cart-qty-value {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	color: #333333;
}

/* Крестик удаления фасовки */
.ds-cart-line-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #9a9a9a !important;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition:
		color .25s ease,
		background-color .25s ease,
		opacity .25s ease,
		transform .25s ease,
		box-shadow .25s ease;
}

.ds-cart-line-remove svg,
.ds-cart-line-remove svg path,
.ds-cart-line-remove span,
.ds-cart-line-remove::before,
.ds-cart-line-remove::after {
	color: inherit !important;
	fill: currentColor;
	stroke: currentColor;
	transition:
		color .25s ease,
		fill .25s ease,
		stroke .25s ease,
		opacity .25s ease;
}

.ds-cart-line-remove:hover {
	background-color: #f4f7ef;
	color: #86995a !important;
	transform: translateY(-1px);
}

.ds-cart-line-remove:active {
	transform: translateY(0) scale(.96);
	opacity: .8;
}

.ds-cart-line-remove:focus {
	outline: none !important;
}

.ds-cart-line-remove:focus-visible {
	color: #86995a !important;
	box-shadow: 0 0 0 3px rgba(134, 153, 90, .18);
}

.ds-cart-line-remove:disabled {
	opacity: .45;
	cursor: default;
	pointer-events: none;
}

.ds-cart-add-pack {
	position: relative;
}

.ds-cart-add-pack-toggle,
.ds-cart-add-pack-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 95px;
	height: 40px;
	padding: 0;
	border: 1px solid #86995a;
	border-radius: 5px;
	background: #fff;
	color: #333333;
	font-size: 24px;
	line-height: 1;
	transition:
		background-color .18s ease,
		color .18s ease;
}

.ds-cart-add-pack-toggle:hover,
.ds-cart-add-pack-submit:hover {
	background: #f4f7ef;
	color: #86995a;
}

.ds-cart-add-pack-fields {
	display: none;
	grid-template-columns: 95px 95px;
	gap: 16px;
	align-items: center;
}

.ds-cart-add-pack.is-open .ds-cart-add-pack-toggle {
	display: none;
}

.ds-cart-add-pack.is-open .ds-cart-add-pack-fields {
	display: grid;
}

.ds-cart-add-pack-select {
	width: 95px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #86995a;
	border-radius: 5px;
	background: #fff;
	color: #333333;
	font-size: 14px;
	line-height: 1;
}

.ds-cart-add-pack-select + .ds-cart-add-pack-submit {
	display: none;
}

.ds-cart-item-total {
	padding-left: 14px;
	font-size: 16px;
	line-height: 33px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}

.ds-cart-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 112px;
}

/* Крестик удаления всего товара */
.ds-cart-remove-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #9a9a9a !important;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition:
		color .25s ease,
		background-color .25s ease,
		opacity .25s ease,
		transform .25s ease,
		box-shadow .25s ease;
}

.ds-cart-remove-item svg,
.ds-cart-remove-item svg path,
.ds-cart-remove-item span,
.ds-cart-remove-item::before,
.ds-cart-remove-item::after {
	color: inherit !important;
	fill: currentColor;
	stroke: currentColor;
	transition:
		color .25s ease,
		fill .25s ease,
		stroke .25s ease,
		opacity .25s ease;
}

.ds-cart-remove-item:hover {
	background-color: #f4f7ef;
	color: #86995a !important;
	transform: translateY(-1px);
}

.ds-cart-remove-item:active {
	transform: translateY(0) scale(.96);
	opacity: .8;
}

.ds-cart-remove-item:focus {
	outline: none !important;
}

.ds-cart-remove-item:focus-visible {
	color: #86995a !important;
	box-shadow: 0 0 0 3px rgba(134, 153, 90, .18);
}

.ds-cart-remove-item:disabled {
	opacity: .45;
	cursor: default;
	pointer-events: none;
}

/* Избранное */
.ds-cart-fav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #9a9a9a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition:
		color .25s ease,
		background-color .25s ease,
		transform .25s ease;
}

.ds-cart-fav svg,
.ds-cart-fav svg path {
	color: inherit;
	fill: currentColor;
	stroke: currentColor;
	transition:
		color .25s ease,
		fill .25s ease,
		stroke .25s ease;
}

.ds-cart-fav:hover {
	background-color: #f4f7ef;
	color: #86995a;
	transform: translateY(-1px);
}

.ds-cart-fav:active {
	transform: translateY(0) scale(.96);
}

.ds-cart-section-title {
	margin: 32px 0 16px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 500;
	color: #333333;
}

.ds-cart-summary {
	position: sticky;
	top: 24px;
	padding: 24px;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(51, 51, 51, 0.07);
}

.ds-cart-summary h3 {
	margin: 0 0 24px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
	color: #1f1f1f;
}

.ds-cart-summary-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	font-size: 16px;
	line-height: 1.4;
	color: #333333;
}

.ds-cart-summary-row strong {
	font-weight: 600;
	white-space: nowrap;
}

.ds-cart-summary-total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 22px 0 28px;
	padding-top: 20px;
	border-top: 1px solid #e6e6e6;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: #1f1f1f;
}

.ds-cart-summary-total strong {
	text-align: right;
	white-space: nowrap;
}

.ds-cart-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	border-radius: 5px;
	background: #86995a;
	color: #fff !important;
	font-size: 16px;
	line-height: 1;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 10px 22px rgba(134, 153, 90, 0.18);
	transition:
		background-color .18s ease,
		opacity .18s ease,
		box-shadow .18s ease,
		transform .18s ease;
}

.ds-cart-checkout:hover {
	background: #9fb273;
	color: #fff !important;
	box-shadow: 0 12px 26px rgba(159, 178, 115, 0.24);
	transform: translateY(-1px);
}

.ds-cart-checkout.is-disabled {
	opacity: .55;
	cursor: not-allowed;
}

.ds-cart-checkout.is-loading {
	opacity: .7;
	pointer-events: none;
}

.ds-cart-hidden-actions {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ds-cart-notice {
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px solid #f0d6d6;
	border-radius: 4px;
	background: #fff6f6;
	color: #b3261e;
	font-size: 14px;
	opacity: 0;
	transform: translateY(-4px);
	transition:
		opacity .18s ease,
		transform .18s ease;
}

.ds-cart-notice.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1023px) {
	.ds-cart-grid {
		grid-template-columns: 1fr;
	}

	.ds-cart-summary {
		position: static;
		max-width: 420px;
	}
}

@media (max-width: 767px) {
	.ds-cart-wrap {
		padding-left: 12px;
		padding-right: 12px;
	}

	.ds-cart-toolbar {
		padding-left: 0;
		margin-bottom: 16px;
	}

	.ds-cart-item {
		grid-template-columns: 18px 70px minmax(0, 1fr) 32px;
		gap: 12px;
		padding: 14px;
	}

	.ds-cart-thumb,
	.ds-cart-thumb img {
		width: 70px;
	}

	.ds-cart-packs {
		grid-column: 1 / -1;
		padding-left: 30px;
	}

	.ds-cart-line {
		grid-template-columns: minmax(0, 1fr) 95px 32px;
		gap: 10px;
	}

	.ds-cart-add-pack-fields {
		grid-template-columns: minmax(0, 1fr) 95px;
		gap: 10px;
	}

	.ds-cart-add-pack-toggle,
	.ds-cart-add-pack-select {
		width: 100%;
	}

	.ds-cart-add-pack-submit {
		width: 95px;
	}

	.ds-cart-item-total {
		grid-column: 2 / 4;
		grid-row: 2;
		text-align: left;
		line-height: 1.3;
		padding: 0;
	}

	.ds-cart-actions {
		grid-column: 4;
		grid-row: 1 / span 2;
		min-height: 100%;
	}

	.ds-cart-sku {
		display: none;
	}

	.ds-cart-summary-total {
		font-size: 24px;
	}
}

@media (max-width: 420px) {
	.ds-cart-line {
		grid-template-columns: 1fr 1fr 32px;
	}

	.ds-cart-pack-name,
	.ds-cart-qty,
	.ds-cart-add-pack-toggle,
	.ds-cart-add-pack-select,
	.ds-cart-add-pack-submit {
		height: 38px;
	}
}