/* Корзина и оформление заказа — Figma 32:601 (ПК 1440 / моб 375). */

body.std-checkout-page #breadcrumbs {
	display: none !important;
}

body.std-checkout-page #content {
	padding: 30px 0 80px !important;
	margin: 0 !important;
	background: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.std-checkout-page #content #sidebar {
	display: none !important;
}

body.std-checkout-page #content > .row-fluid {
	display: block !important;
	margin: 0 !important;
	width: 100% !important;
}

body.std-checkout-page #content #middlecol,
body.std-checkout-page #content #middlecol.sidebar_left,
body.std-checkout-page #content #middlecol.sidebar_right {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.std-checkout-page #content #middlecol .inside {
	padding: 0 !important;
	margin: 0 !important;
}

body.std-checkout-page #jshopping_module_bottom,
body.std-checkout-page #brands,
body.std-checkout-page .container:has(> #brands) {
	display: none !important;
}

.std-co {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
}

.std-co *,
.std-co *::before,
.std-co *::after {
	box-sizing: border-box;
}

.std-co a,
.std-co a:hover,
.std-co a:focus {
	text-decoration: none;
}

.std-co img {
	display: block;
	max-width: none;
}

/* —— Крошки и заголовок —— */
.std-co__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 30px;
}

.std-co__crumb-link {
	color: #2c6fa8;
	transition: color 0.2s ease;
}

.std-co__crumb-link:hover {
	color: #0088cc;
}

.std-co__crumb-sep {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.std-co__crumb-current {
	color: #8a8a8a;
}

.std-co__head {
	display: flex;
	align-items: baseline;
	gap: 15px;
	margin: 0 0 30px;
}

.std-co .std-co__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
	text-transform: none;
	letter-spacing: 0;
}

.std-co .std-co__title--checkout {
	margin: 0 0 30px;
}

.std-co__count {
	font-size: 18px;
	color: #8a8a8a;
}

/* —— Две колонки: список/форма + итог 400px —— */
.std-co__layout {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.std-co__main {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.std-co__aside {
	flex: 0 0 400px;
	position: sticky;
	top: 20px;
}

/* —— Кнопки —— */
.std-co__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 25px;
	border: 1px solid #0088cc;
	border-radius: 5px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.std-co .std-co__btn--primary,
.std-co .std-co__btn--primary:focus {
	background: #0088cc;
	color: #fff;
}

.std-co .std-co__btn--primary:hover {
	background: #0077b3;
	border-color: #0077b3;
	color: #fff;
}

.std-co .std-co__btn--outline,
.std-co .std-co__btn--outline:focus {
	background: #fff;
	color: #0088cc;
}

.std-co .std-co__btn--outline:hover {
	background: #f5fbfe;
	color: #0088cc;
}

.std-co__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* —— Итог заказа —— */
.std-summary {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 30px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	background: #fff;
}

.std-co .std-summary__title {
	margin: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.std-co .std-summary__title--sm {
	font-size: 20px;
}

.std-summary__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 9px;
}

.std-co .std-summary__edit {
	color: #0088cc;
}

.std-co .std-summary__edit:hover {
	color: #2c6fa8;
}

.std-summary__items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.std-summary__item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin: 0;
	padding: 0;
}

.std-summary__item::before {
	display: none;
}

.std-summary__item-text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.std-summary__item-qty {
	font-size: 16px;
	line-height: 1.5;
	color: #8a8a8a;
}

.std-summary__item-sum {
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.std-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.std-summary__row > span {
	color: #707070;
}

.std-summary__row > b {
	line-height: 1.4;
	white-space: nowrap;
}

.std-co .std-summary__sep {
	width: 100%;
	height: 1px;
	margin: 0;
	border: 0;
	background: #d9d9d9;
}

.std-summary__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.std-summary__total > span {
	font-size: 20px;
}

.std-summary__total > b {
	font-size: 28px;
	white-space: nowrap;
}

.std-summary__btn {
	width: 100%;
}

.std-summary__note {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	color: #8a8a8a;
}

/* —— Корзина: таблица —— */
.std-basket {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.std-basket.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.std-basket__thead,
.std-basket__row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 0 20px;
}

.std-basket__thead {
	color: #8a8a8a;
}

.std-basket__row {
	padding: 20px;
}

.std-basket__col-product,
.std-basket__product {
	flex: 1 1 0;
	min-width: 0;
}

.std-basket__col-price,
.std-basket__price,
.std-basket__col-sum,
.std-basket__sum {
	flex: 0 0 110px;
}

.std-basket__col-qty,
.std-basket__qty {
	flex: 0 0 120px;
}

.std-basket__col-del,
.std-basket__del {
	flex: 0 0 20px;
}

.std-basket__product {
	display: flex;
	align-items: center;
	gap: 20px;
}

.std-basket__thumb {
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
	border-radius: 5px;
	overflow: hidden;
	background: #f2f2f2;
}

.std-basket__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.std-basket__info {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.std-basket__cat {
	font-size: 12px;
	line-height: 1.5;
	color: #8a8a8a;
}

.std-co .std-basket__name {
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
}

.std-co .std-basket__name:hover {
	color: #0088cc;
}

.std-basket__attrs {
	font-size: 14px;
	line-height: 1.5;
	color: #707070;
}

.std-basket__unit {
	display: none;
	color: #707070;
}

.std-basket__sum {
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.std-basket__price {
	white-space: nowrap;
}

.std-basket__del {
	display: block;
	width: 20px;
	height: 20px;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.std-basket__del:hover {
	opacity: 0.6;
}

.std-basket__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	padding: 0 20px;
}

.std-basket__back {
	display: none;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	line-height: 1.4;
}

.std-co .std-basket__back,
.std-co .std-basket__back:hover {
	color: #0088cc;
}

.std-co .std-basket__clear {
	line-height: 1.4;
	color: #8a8a8a;
}

.std-co .std-basket__clear:hover {
	color: #1a1a1a;
}

.std-basket__clear-short {
	display: none;
}

/* Количество −/+ */
.std-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 120px;
	height: 40px;
	padding: 0 4px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	background: #fff;
}

.std-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.std-co .std-qty__input {
	width: 40px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	color: #1a1a1a;
	-moz-appearance: textfield;
	appearance: textfield;
}

.std-qty__input::-webkit-outer-spin-button,
.std-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.std-co .std-qty__input:focus {
	outline: none;
	box-shadow: none;
}

/* Пустая корзина */
.std-co__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 40px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
}

.std-co__empty-text {
	margin: 0;
	font-size: 18px;
	color: #707070;
}

/* —— Оформление: шаги —— */
.std-co__steps {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.std-co__card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 30px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	background: #fff;
}

.std-co .std-co__step {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
	text-transform: none;
}

.std-co__step-num {
	display: flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	background: #0088cc;
	font-size: 16px;
	line-height: 1.4;
	color: #fff;
}

.std-co__fields {
	display: flex;
	gap: 20px;
}

.std-co__fields[hidden] {
	display: none;
}

.std-field {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	font-weight: 400;
}

.std-field__label {
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
}

.std-field__label i {
	margin-left: 3px;
	font-style: normal;
	color: #d52b1e;
}

.std-co .std-field__input {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	box-shadow: none;
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
	transition: border-color 0.2s ease;
}

.std-co .std-field__input--area {
	height: 110px;
	padding: 14px 16px;
	resize: vertical;
}

.std-co .std-field__input::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.std-co .std-field__input:focus {
	border-color: #0088cc;
	outline: none;
	box-shadow: none;
}

.std-co .std-field__input.is-invalid {
	border-color: #d52b1e;
}

.std-co__alert {
	padding: 15px 20px;
	border: 1px solid #d52b1e;
	border-radius: 5px;
	background: #fdf3f2;
	color: #d52b1e;
}

.std-co__alert[hidden] {
	display: none;
}

/* Способы получения */
.std-ship {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.std-ship__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin: 0;
	padding: 20px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	background: #fff;
	font-weight: 400;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.std-ship__item:has(.std-ship__radio:checked) {
	padding: 19px;
	border: 2px solid #0088cc;
	background: #f5fbfe;
}

.std-ship__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.std-ship__dot {
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border: 1px solid #b0b0b0;
	border-radius: 11px;
	background: #fff;
}

.std-ship__radio:checked + .std-ship__dot {
	border: 2px solid #0088cc;
}

.std-ship__radio:checked + .std-ship__dot::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	background: #0088cc;
}

.std-ship__radio:focus-visible + .std-ship__dot {
	outline: 2px solid #0088cc;
	outline-offset: 2px;
}

.std-ship__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.std-ship__name {
	font-weight: 700;
	line-height: 1.4;
}

.std-ship__descr {
	color: #707070;
}

.std-ship__price {
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.std-ship__price.is-free {
	color: #2e9e6b;
}

/* Согласие */
.std-check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #707070;
	cursor: pointer;
}

.std-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.std-check__box {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border: 1px solid #b0b0b0;
	border-radius: 4px;
	background: #fff;
}

.std-check input:checked + .std-check__box {
	border: 0;
	background: url('../images/checkout/checkbox-checked.svg') center / 20px 20px no-repeat;
}

.std-check input:focus-visible + .std-check__box {
	outline: 2px solid #0088cc;
	outline-offset: 2px;
}

.std-check input.is-invalid + .std-check__box {
	border-color: #d52b1e;
}

.std-co .std-check__text a {
	color: #707070;
	text-decoration: underline;
}

.std-co .std-check__text a:hover {
	color: #0088cc;
}

form.is-busy .std-summary__btn-text::after {
	content: '…';
}

/* —— Заказ оформлен —— */
.std-co--finish {
	padding: 50px 0;
}

.std-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 60px 40px;
	text-align: center;
}

.std-co .std-done__title {
	max-width: 800px;
	margin: 0;
	font-family: inherit;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
	text-transform: none;
}

.std-done__text {
	max-width: 620px;
	margin: 0;
	color: #707070;
}

.std-done__details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 560px;
	max-width: 100%;
	margin: 0;
	padding: 25px;
	border-radius: 5px;
	background: #f2f2f2;
	text-align: left;
}

.std-done__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.std-done__row dt {
	margin: 0;
	font-weight: 400;
	color: #707070;
	white-space: nowrap;
}

.std-done__row dd {
	margin: 0;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}


.std-done__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* —— Планшет —— */
@media (max-width: 1100px) {
	.std-co__layout {
		flex-direction: column;
		align-items: stretch;
	}

	.std-co__aside {
		flex: none;
		position: static;
	}
}

/* —— Телефон (макет 375) —— */
@media (max-width: 767px) {
	body.std-checkout-page #content {
		padding: 20px 0 40px !important;
	}

	.std-co__crumbs {
		margin-bottom: 25px;
	}

	.std-co__head,
	.std-co .std-co__title--checkout {
		margin-bottom: 25px;
	}

	.std-co .std-co__title {
		font-size: 28px;
	}

	.std-co__count {
		font-size: 16px;
	}

	.std-co__layout {
		gap: 20px;
	}

	/* Корзина: карточки */
	.std-basket {
		gap: 10px;
	}

	.std-basket__thead,
	.std-basket__price {
		display: none;
	}

	.std-basket__row {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			'product del'
			'qty sum';
		align-items: center;
		gap: 20px 12px;
		padding: 15px;
		border: 1px solid #d9d9d9;
		border-radius: 5px;
	}

	.std-basket__product {
		grid-area: product;
		align-items: flex-start;
		gap: 12px;
	}

	.std-basket__thumb {
		flex-basis: 80px;
		width: 80px;
		height: 80px;
	}

	.std-basket__info {
		gap: 4px;
	}

	.std-basket__unit {
		display: block;
	}

	.std-basket__del {
		grid-area: del;
		align-self: start;
	}

	.std-basket__qty {
		grid-area: qty;
	}

	.std-basket__sum {
		grid-area: sum;
		font-size: 18px;
		text-align: right;
	}

	.std-basket__actions {
		justify-content: space-between;
		padding: 5px 0;
	}

	.std-basket__back {
		display: flex;
	}

	.std-basket__clear-long {
		display: none;
	}

	.std-basket__clear-short {
		display: inline;
	}

	.std-basket__clear {
		line-height: 1.6;
	}

	/* Оформление */
	.std-co__steps {
		gap: 15px;
	}

	.std-co__card {
		gap: 15px;
		padding: 20px 15px;
	}

	.std-co .std-co__step {
		font-size: 18px;
	}

	.std-co__fields {
		flex-direction: column;
		gap: 15px;
	}

	.std-ship__item {
		padding: 17px;
	}

	.std-ship__item:has(.std-ship__radio:checked) {
		padding: 16px;
	}

	.std-summary {
		padding: 20px;
	}

	.std-co .std-summary__title {
		font-size: 20px;
	}

	/* Заказ оформлен */
	.std-co--finish {
		padding: 0;
	}

	.std-done {
		padding: 30px 20px;
	}

	.std-co .std-done__title {
		font-size: 24px;
	}

	.std-done__details {
		padding: 16px;
	}

	.std-done__row dd {
		max-width: 60%;
	}

	.std-done__buttons {
		flex-direction: column;
		align-self: stretch;
	}

	.std-done__buttons .std-co__btn {
		width: 100%;
	}
}
