@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter_18pt-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter_18pt-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter_18pt-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter_18pt-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
}

svg {
	display: block;
}

:root {
	--font-family: "Inter", "san-serif";
	--black: #0f0f0f;
	--border: #cfcfcf;
}

.btn-reset {
	display: inline-block;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	padding: 0;
	border: none;
	font: inherit;
	color: inherit;
	background-color: transparent;
	text-decoration: none;
	cursor: pointer;
}

.input-reset {
	width: 100%;
	padding: 0;
	border: none;
	outline: none;
	border-radius: 0;
	background-color: transparent;
	font: inherit;
	color: inherit;
}

.cart {
	font-family: var(--font-family);
	color: var(--black);
	padding-top: 16px;
	padding-bottom: 6px;
}

.cart__title {
	margin: 0;
	margin-bottom: 16px;
	font-weight: 600;
	font-size: 28px;
}

.cart__products {
	margin-bottom: 6px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cart__clear-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 10px 0;
	font-weight: 400;
	font-size: 14px;
	text-align: center;
	border-radius: 4px;
	transition:
		background-color 220ms ease-in-out,
		scale 50ms ease-in-out;
}

.cart__clear-btn:focus-visible {
	background-color: var(--border);
}

.cart__clear-btn:active {
	scale: 0.99;
}

.cart-product {
	font-family: var(--font-family);
	color: var(--black);
	padding: 12px;
	border-radius: 6px;
	background-color: #fff;
}

.cart-product__title {
	margin: 0;
	margin-bottom: 10px;
	font-weight: 600;
	font-size: 14px;
}

.cart-product__body {
	display: flex;
	align-items: center;
}

.cart-product__inner {
	flex-grow: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap-reverse;
	gap: 20px 0;
}

.cart-product__img {
	margin-right: 24px;
	width: 80px;
	height: 80px;
	-o-object-fit: cover;
	object-fit: cover;
	border-radius: 4px;
	background-color: rgba(213, 213, 213, 0.3);
}

.cart-product__counter-wrapper {
	margin-right: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cart-product__text {
	font-weight: 500;
	font-size: 10px;
}

.cart-product__box {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cart-product__price {
	font-weight: 500;
	font-size: 12px;
}

.cart-product__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid var(--black);
	border-radius: 3px;
	color: var(--black);
	transition:
		background-color 220ms ease-in-out,
		scale 50ms ease-in-out;
}

.cart-product__btn:focus-visible {
	background-color: var(--border);
}

.cart-product__btn:active {
	background-color: var(--border);
	scale: 0.97;
}

.counter {
	display: flex;
	gap: 6px;
}

.counter__decrement {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	width: 30px;
	line-height: 0;
	border: 1px solid var(--border);
	border-radius: 3px;
	color: var(--black);
	transition:
		background-color 220ms ease-in-out,
		scale 50ms ease-in-out;
}

.counter__decrement:focus-visible {
	background-color: var(--border);
}

.counter__decrement:active {
	background-color: var(--border);
	scale: 0.97;
}

.counter__input {
	width: 50px;
	height: 28px;
	border: 1px solid var(--border);
	border-radius: 3px;
	text-align: center;
	font-weight: 400;
	font-size: 12px;
}

.counter__input[type="number"]::-webkit-inner-spin-button,
.counter__input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
}

.counter__increment {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	width: 30px;
	line-height: 0;
	border: 1px solid var(--border);
	border-radius: 3px;
	color: var(--black);
	transition:
		background-color 220ms ease-in-out,
		scale 50ms ease-in-out;
}

.counter__increment:focus-visible {
	background-color: var(--border);
}

.counter__increment:active {
	background-color: var(--border);
	scale: 0.97;
}

.radio-group-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px;
	border-radius: 14px;
	background-color: #fff;
}

.radio-group {
	font-family: var(--font-family);
	color: #0f0f0f;
	border: 1px solid #ebebeb;
	border-radius: 10px;
	padding: 20px 18px 14px 18px;
}

.radio-group__label {
	position: relative;
	margin-bottom: 14px;
	display: inline-block;
	padding-right: 10px;
	font-weight: 600;
	font-size: 14px;
}

.radio-group__label::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 6px;
	height: 6px;
	background-image: url("../img/svg/star.svg");
	background-position: center center;
	background-repeat: no-repeat;
}

.radio-group__inner {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.radio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}

.radio__input {
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: #f7443a;
}

.radio__input:checked ~ .radio__title {
	font-weight: 600;
}

.radio__title {
	font-weight: 400;
	font-size: 14px;
}

.order-form {
	border-radius: 10px;
	padding: 20px;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.order-form__field {
	flex-grow: 1;
	min-width: 190px;
}

.order-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 14px;
}

.field {
	font-family: var(--font-family);
	position: relative;
}

.field--required .field__label::before {
	content: "";
	position: absolute;
	top: 0;
	right: -12px;
	width: 6px;
	height: 6px;
	background-image: url("../img/svg/star.svg");
	background-position: center center;
	background-repeat: no-repeat;
}

.field__input {
	height: 100%;
	padding-top: 14px;
	height: 44px;
	border-bottom: 1px solid var(--border);
	font-weight: 400;
	font-size: 12px;
	color: var(--black);
	transition: border-color 150ms ease-in-out;
}

.field__input::-moz-placeholder {
	color: #aaa;
}

.field__input::placeholder {
	color: #aaa;
}

.field__input:focus {
	border-color: var(--black);
}

.field__input[type="number"]::-webkit-inner-spin-button,
.field__input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
}

.field__textarea {
	height: 80px;
	margin-top: 20px;
	font-weight: 400;
	font-size: 12px;
	color: var(--black);
	border-bottom: 1px solid #cfcfcf;
	resize: none;
	transition: border-color 150ms ease-in-out;
}

.field__textarea::-moz-placeholder {
	color: #aaa;
}

.field__textarea::placeholder {
	color: #aaa;
}

.field__textarea:focus {
	border-color: var(--black);
}

.field__label {
	position: absolute;
	top: 4px;
	left: 0;
	font-weight: 400;
	font-size: 12px;
	color: #aaa;
}

.promo {
	font-family: var(--font-family);
	border-radius: 10px;
	padding: 14px;
	background-color: #fff;
}

.promo__row {
	margin-bottom: 10px;
	display: flex;
	gap: 4px;
}

.promo__input {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 12px 14px;
	font-weight: 400;
	font-size: 12px;
	color: var(--black);
	transition: border-color 150ms ease-in-out;
}

.promo__input:focus {
	border-color: var(--black);
}

.promo__input::-moz-placeholder {
	color: #aaa;
}

.promo__input::placeholder {
	color: #aaa;
}

.promo__btn {
	border: 1px solid #404040;
	border-radius: 5px;
	padding: 12px 14px;
	transition:
		background-color 220ms ease-in-out,
		scale 50ms ease-in-out;
}

.promo__btn:focus-visible {
	background-color: var(--border);
}

.promo__btn:active {
	scale: 0.99;
}

.promo__result {
	padding: 8px 20px;
	text-align: center;
	font-weight: 500;
	font-size: 11px;
	color: #8e8e8e;
	border-radius: 6px;
	background-color: #f7f7f7;
}

.order-details {
	font-family: var(--font-family);
	border-radius: 14px;
	padding: 18px;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.order-details__top {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-bottom: 14px;
	border-bottom: 1px solid #ebebeb;
}

.order-details__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.order-details__text {
	font-weight: 400;
	font-size: 14px;
	color: #404040;
}

.order-details__text span {
	font-weight: 700;
}

.order-details__title {
	font-weight: 600;
	font-size: 16px;
	color: #404040;
}

.order-details__currency {
	font-size: 14px;
	font-weight: 600;
}

.order-details__amount {
	font-weight: 600;
	font-size: 20px;
	color: #404040;
}

.order-details__hint {
	position: relative;
	border-radius: 8px;
	padding: 6px 28px 8px 12px;
	background-color: #f6f6f6;
	font-weight: 400;
	font-size: 12px;
	color: #8e8e8e;
}

.order-details__hint::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	background-image: url("../img/svg/truck.svg");
	background-position: center center;
	background-repeat: no-repeat;
}

.order-details__btn {
	border-radius: 8px;
	padding: 16px 40px;
	background-color: #f7443a;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	transition: background-color 220ms ease-in-out;
}

.order-details__btn:focus-visible {
	background-color: #bb332c;
}

.order-details__btn:active {
	scale: 0.99;
}

.order-details__politic {
	font-weight: 400;
	font-size: 10px;
	line-height: 1.4;
	color: #8e8e8e;
	transition: color 220ms ease-in-out;
}

.order-details__politic a {
	text-decoration: underline;
	color: #8e8e8e;
}

.order-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}

.order-layout__col {
	max-width: 430px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.order-layout__radio-group {
	max-width: 310px;
	width: 100%;
}

.order-layout__order-details {
	max-width: 340px;
	width: 100%;
}

@media (any-hover: hover) and (pointer: fine) {
	.cart__clear-btn:hover {
		background-color: var(--border);
	}

	.cart-product__btn:hover {
		background-color: var(--border);
	}

	.counter__decrement:hover {
		background-color: var(--border);
	}

	.counter__increment:hover {
		background-color: var(--border);
	}

	.promo__btn:hover {
		background-color: var(--border);
	}

	.order-details__btn:hover {
		background-color: #bb332c;
	}

	.order-details__politic a:hover {
		color: var(--black);
	}
}
