/*
 * MIR LAMINATA — УПРОЩЁННОЕ ОФОРМЛЕНИЕ ЗАКАЗА
 * Файл: simple-checkout.css
 * Версия: 1.0
 */

.ml-simple-checkout {
	--ml-blue: #014782;
	--ml-blue-dark: #003660;
	--ml-pink: #D42F7B;
	--ml-pink-dark: #b72164;
	--ml-text: #172331;
	--ml-muted: #667382;
	--ml-line: #dfe5eb;
	--ml-surface: #f6f8fa;
	--ml-error: #b42318;
	font-family: 'Manrope', 'MontserratRegular', Arial, sans-serif;
	color: var(--ml-text);
	padding-bottom: 54px;
}

.ml-simple-checkout *,
.ml-simple-checkout *::before,
.ml-simple-checkout *::after {
	box-sizing: border-box;
}

.ml-simple-checkout [hidden] {
	display: none !important;
}

.ml-simple-checkout__breadcrumb {
	margin-bottom: 24px;
}

.ml-simple-checkout__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin: 8px 0 28px;
}

.ml-simple-checkout__header h1,
.ml-simple-checkout__empty h1,
.ml-simple-checkout__success h1 {
	font-family: 'Manrope', 'MontserratRegular', Arial, sans-serif;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	color: var(--ml-blue);
	margin: 5px 0 8px;
}

.ml-simple-checkout__header p {
	font-size: 16px;
	line-height: 1.55;
	color: var(--ml-muted);
	margin: 0;
}

.ml-simple-checkout__kicker {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--ml-pink);
}

.ml-simple-checkout__secure-note {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--ml-blue);
	background: #eaf4fb;
	border-radius: 999px;
	padding: 10px 15px;
}

.ml-simple-checkout__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(330px, .75fr);
	align-items: start;
	gap: 28px;
}

.ml-simple-checkout__cart,
.ml-simple-checkout__form-card,
.ml-simple-checkout__empty,
.ml-simple-checkout__success {
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(1, 71, 130, .07);
}

.ml-simple-checkout__cart {
	overflow: hidden;
}

.ml-simple-checkout__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 22px 24px;
	border-bottom: 1px solid var(--ml-line);
}

.ml-simple-checkout__section-head h2,
.ml-simple-checkout__form-card h2 {
	font-family: 'Manrope', 'MontserratRegular', Arial, sans-serif;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--ml-blue);
	margin: 0;
}

.ml-simple-checkout__section-head span {
	font-size: 13px;
	font-weight: 700;
	color: var(--ml-muted);
	background: var(--ml-surface);
	border-radius: 999px;
	padding: 6px 10px;
}

.ml-simple-checkout__product {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) 154px;
	gap: 18px;
	align-items: center;
	padding: 22px 24px;
	border-bottom: 1px solid var(--ml-line);
	transition: opacity .2s ease;
}

.ml-simple-checkout__product--loading {
	opacity: .48;
	pointer-events: none;
}

.ml-simple-checkout__product-image {
	display: block;
	width: 110px;
	height: 110px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ml-surface);
}

.ml-simple-checkout__product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ml-simple-checkout__product-name {
	display: inline-block;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
	color: var(--ml-blue);
	text-decoration: none;
	margin-bottom: 7px;
}

.ml-simple-checkout__product-name:hover,
.ml-simple-checkout__product-name:focus {
	color: var(--ml-pink);
	text-decoration: none;
}

.ml-simple-checkout__product-meta,
.ml-simple-checkout__unit-price {
	font-size: 12px;
	line-height: 1.5;
	color: var(--ml-muted);
}

.ml-simple-checkout__stock-warning {
	font-size: 12px;
	font-weight: 700;
	color: var(--ml-error);
	margin-top: 6px;
}

.ml-simple-checkout__product-controls {
	text-align: right;
}

.ml-simple-checkout__quantity {
	display: inline-grid;
	grid-template-columns: 34px 48px 34px;
	height: 36px;
	border: 1px solid #cad3dc;
	border-radius: 9px;
	overflow: hidden;
	margin: 7px 0 9px;
}

.ml-simple-checkout__quantity button,
.ml-simple-checkout__quantity input {
	width: 100%;
	height: 34px;
	border: 0;
	background: #fff;
	text-align: center;
	font: inherit;
	color: var(--ml-text);
	padding: 0;
}

.ml-simple-checkout__quantity button {
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.ml-simple-checkout__quantity button:hover,
.ml-simple-checkout__quantity button:focus {
	background: #edf5fb;
	color: var(--ml-blue);
}

.ml-simple-checkout__quantity input {
	font-size: 13px;
	font-weight: 800;
	border-left: 1px solid #dce2e8;
	border-right: 1px solid #dce2e8;
	-moz-appearance: textfield;
}

.ml-simple-checkout__quantity input::-webkit-inner-spin-button,
.ml-simple-checkout__quantity input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ml-simple-checkout__product-total {
	font-size: 17px;
	font-weight: 800;
	color: var(--ml-text);
}

.ml-simple-checkout__product-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 7px;
}

.ml-simple-checkout__product-actions button {
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	color: var(--ml-blue);
	background: transparent;
	border: 0;
	border-bottom: 1px dashed currentColor;
	padding: 0;
	cursor: pointer;
}

.ml-simple-checkout__product-actions .ml-simple-checkout__remove {
	color: #9a3540;
}

.ml-simple-checkout__cart-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 23px 24px;
	background: #f2f7fb;
}

.ml-simple-checkout__cart-total span {
	font-size: 15px;
	font-weight: 700;
	color: var(--ml-blue);
}

.ml-simple-checkout__cart-total strong {
	font-size: 25px;
	font-weight: 900;
	color: var(--ml-blue);
}

.ml-simple-checkout__form-card {
	position: sticky;
	top: 18px;
	padding: 24px;
}

.ml-simple-checkout__form-intro {
	font-size: 13px;
	line-height: 1.55;
	color: var(--ml-muted);
	margin: 7px 0 20px;
}

.ml-simple-checkout__field {
	margin-bottom: 17px;
}

.ml-simple-checkout__field label,
.ml-simple-checkout__delivery legend {
	display: block;
	font-size: 13px;
	font-weight: 800;
	color: var(--ml-text);
	margin-bottom: 7px;
}

.ml-simple-checkout__field label span,
.ml-simple-checkout__delivery legend span {
	color: var(--ml-pink);
}

.ml-simple-checkout__field input[type='text'],
.ml-simple-checkout__field input[type='tel'] {
	display: block;
	width: 100%;
	height: 48px;
	font: inherit;
	font-size: 15px;
	color: var(--ml-text);
	background: #fff;
	border: 1px solid #cbd4dd;
	border-radius: 10px;
	outline: 0;
	padding: 0 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ml-simple-checkout__field input:focus {
	border-color: var(--ml-blue);
	box-shadow: 0 0 0 3px rgba(1, 71, 130, .12);
}

.ml-simple-checkout__delivery {
	border: 0;
	padding: 0;
	margin: 4px 0 18px;
}

.ml-simple-checkout__delivery-option {
	position: relative;
	display: block;
	margin: 0 0 9px;
	cursor: pointer;
}

.ml-simple-checkout__delivery-option input {
	position: absolute;
	op: 17px;
	left: 15px;
	margin: 0;
	accent-color: var(--ml-pink);
}

.ml-simple-checkout__delivery-body {
	display: block;
	min-height: 70px;
	background: #fff;
	border: 1px solid #d6dde4;
	border-radius: 11px;
	padding: 13px 13px 12px 42px;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.ml-simple-checkout__delivery-option input:checked + .ml-simple-checkout__delivery-body {
	background: #f2f8fc;
	border-color: var(--ml-blue);
	box-shadow: 0 0 0 2px rgba(1, 71, 130, .08);
}

.ml-simple-checkout__delivery-body strong,
.ml-simple-checkout__delivery-body small {
	display: block;
}

.ml-simple-checkout__delivery-body strong {
	font-size: 14px;
	line-height: 1.35;
	color: var(--ml-blue);
}

.ml-simple-checkout__delivery-body strong em {
	display: inline-block;
	font-style: normal;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #24754a;
	background: #e4f5eb;
	border-radius: 999px;
	padding: 3px 6px;
	margin-left: 4px;
}

.ml-simple-checkout__delivery-body small {
	font-size: 11px;
	line-height: 1.45;
	color: var(--ml-muted);
	margin-top: 3px;
}

.ml-simple-checkout__agree {
	margin: 4px 0 17px;
}

.ml-simple-checkout__agree label {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--ml-muted);
	cursor: pointer;
}

.ml-simple-checkout__agree input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--ml-pink);
}

.ml-simple-checkout__agree a {
	color: var(--ml-blue);
}

.ml-simple-checkout__field-error {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ml-error);
	margin-top: 5px;
}

.ml-simple-checkout__field--error input[type='text'],
.ml-simple-checkout__field--error input[type='tel'],
.ml-simple-checkout__field--error .ml-simple-checkout__delivery-body {
	border-color: var(--ml-error);
}

.ml-simple-checkout__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	font-family: 'Manrope', 'MontserratRegular', Arial, sans-serif;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	background: var(--ml-pink);
	border: 0;
	border-radius: 11px;
	box-shadow: 0 9px 18px rgba(212, 47, 123, .22);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	padding: 15px 20px;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ml-simple-checkout__button:hover,
.ml-simple-checkout__button:focus {
	color: #fff;
	background: var(--ml-pink-dark);
	box-shadow: 0 11px 22px rgba(212, 47, 123, .3);
	text-decoration: none;
	transform: translateY(-1px);
}

.ml-simple-checkout__button:disabled {
	opacity: .62;
	cursor: wait;
	transform: none;
}

.ml-simple-checkout__button-loading {
	display: none;
}

.ml-simple-checkout__form--loading .ml-simple-checkout__button-text {
	display: none;
}

.ml-simple-checkout__form--loading .ml-simple-checkout__button-loading {
	display: inline;
}

.ml-simple-checkout__button--secondary {
	width: auto;
	min-width: 210px;
	background: var(--ml-blue);
	box-shadow: 0 9px 18px rgba(1, 71, 130, .18);
}

.ml-simple-checkout__button--secondary:hover,
.ml-simple-checkout__button--secondary:focus {
	background: var(--ml-blue-dark);
}

.ml-simple-checkout__after-submit {
	font-size: 11px;
	line-height: 1.45;
	text-align: center;
	color: var(--ml-muted);
	margin: 11px 5px 0;
}

.ml-simple-checkout__alert {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	border-radius: 10px;
	padding: 11px 13px;
	margin: 0 0 16px;
}

.ml-simple-checkout__alert--warning {
	color: #7a4d00;
	background: #fff6dd;
	border: 1px solid #f4d98b;
}

.ml-simple-checkout__alert--error {
	color: #8f1d18;
	background: #fff0ef;
	border: 1px solid #f1c0bd;
}

.ml-simple-checkout__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ml-simple-checkout__empty,
.ml-simple-checkout__success {
	max-width: 720px;
	text-align: center;
	padding: 48px 30px;
	margin: 28px auto;
}

.ml-simple-checkout__empty p,
.ml-simple-checkout__success p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--ml-muted);
	margin: 0 auto 25px;
}

.ml-simple-checkout__success-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	font-size: 34px;
	font-weight: 900;
	color: #fff;
	background: #2d8a59;
	border-radius: 50%;
	margin: 0 auto 16px;
}

@media (max-width: 991px) {
	.ml-simple-checkout__layout {
		grid-template-columns: 1fr;
	}

	.ml-simple-checkout__form-card {
		position: static;
	}
}

@media (max-width: 640px) {
	.ml-simple-checkout {
		padding-left: 12px;
		padding-right: 12px;
		padding-bottom: 35px;
	}

	.ml-simple-checkout__header {
		display: block;
		margin-bottom: 20px;
	}

	.ml-simple-checkout__secure-note {
		display: inline-block;
		margin-top: 12px;
	}

	.ml-simple-checkout__section-head,
	.ml-simple-checkout__form-card,
	.ml-simple-checkout__cart-total {
		padding-left: 17px;
		padding-right: 17px;
	}

	.ml-simple-checkout__product {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 13px;
		padding: 17px;
	}

	.ml-simple-checkout__product-image {
		width: 76px;
		height: 76px;
	}

	.ml-simple-checkout__product-controls {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 0 14px;
		text-align: left;
	}

	.ml-simple-checkout__unit-price {
		grid-column: 1 / -1;
	}

	.ml-simple-checkout__quantity {
		grid-row: 2 / span 2;
		margin: 7px 0 0;
	}

	.ml-simple-checkout__product-total {
		text-align: right;
		margin-top: 7px;
	}

	.ml-simple-checkout__product-actions {
		justify-content: flex-end;
	}

	.ml-simple-checkout__cart-total strong {
		font-size: 21px;
	}

	.ml-simple-checkout__button--secondary {
		width: 100%;
	}
}
