.ff-order-exchange {
	color: #637062;
}

.ff-order-exchange-page {
	padding: 32px 0 56px;
}

.ff-order-exchange-page__shell {
	width: min(1200px, calc(100% - (var(--ff-layout-gutter, 20px) * 2)));
	margin: 0 auto;
}

.ff-order-exchange-page__lookup {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: end;
	margin-bottom: 24px;
}

.ff-order-exchange-page__lookup.has-received-date {
	grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) auto;
}

.ff-order-exchange-page__lookup.is-date-only {
	grid-template-columns: minmax(190px, 240px) auto;
	justify-content: start;
}

.ff-order-exchange-page__field {
	display: grid;
	gap: 10px;
}

.ff-order-exchange-page__field span {
	font-size: 14px;
	line-height: 1.5;
	color: #637062;
}

.ff-order-exchange-page__field input {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid #d9ddd8;
	background: #fff;
	color: #292c2e;
	font-size: 16px;
}

.ff-order-exchange-page__field input:focus {
	outline: none;
	border-color: #7e8e7e;
}

.ff-order-exchange-page__submit,
.ff-order-exchange-page__continue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 22px;
	border: 1px solid #7e8e7e;
	background: #7e8e7e;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background .18s ease, border-color .18s ease;
}

.ff-order-exchange-page__submit:hover,
.ff-order-exchange-page__submit:focus-visible,
.ff-order-exchange-page__continue:hover,
.ff-order-exchange-page__continue:focus-visible {
	background: #535f53;
	border-color: #535f53;
	color: #fff !important;
}

.ff-order-exchange-page__result {
	display: grid;
	gap: 14px;
}

.ff-order-exchange-page__result-title {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	text-transform: uppercase;
	color: #7e8e7e;
}

.ff-order-exchange-page__order-card {
	display: grid;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid #e7e7e7;
	background: #fafafa;
}

.ff-order-exchange-page__order-number {
	font-size: 22px;
	font-weight: 500;
	color: #292c2e;
}

.ff-order-exchange-page__order-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.6;
}

.ff-order-exchange-page__result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ff-order-exchange-page__message {
	padding: 14px 16px;
	border: 1px solid #d9ddd8;
	background: #f7f8f6;
	font-size: 14px;
	line-height: 1.6;
}

.ff-order-exchange-page__message--error {
	border-color: #e3c7c7;
	background: #faf4f4;
	color: #9a4f4f;
}

.ff-order-exchange-page__message--notice {
	margin: 0;
}

.ff-order-exchange__hero {
	display: grid;
	gap: 10px;
	margin-bottom: 28px;
}

.ff-order-exchange__contacts {
	display: grid;
	gap: 14px;
	margin-bottom: 28px;
	padding: 18px 22px;
	border: 1px solid #e7e7e7;
	background: #fafafa;
}

.ff-order-exchange__contacts p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #637062;
}

.ff-order-exchange__contacts-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: center;
}

.ff-order-exchange__contacts-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	text-decoration: none;
	transition: opacity .18s ease;
}

.ff-order-exchange__contacts-icons a:hover,
.ff-order-exchange__contacts-icons a:focus-visible {
	outline: none;
	opacity: .8;
}

.ff-order-exchange__contacts-icons img {
	display: block;
	width: auto;
	height: 30px;
	object-fit: contain;
	object-position: center;
}

.ff-order-exchange__contacts-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.ff-order-exchange__contacts-svg svg {
	display: block;
	width: auto;
	height: 30px;
}

.ff-order-exchange__contacts-icons .ff-order-exchange__contacts-icon--phone svg,
.ff-order-exchange__contacts-icons .ff-order-exchange__contacts-icon--phone img {
	height: 32px;
}

.ff-order-exchange__contacts-icons .ff-order-exchange__contacts-icon--phone svg {
	width: 35px;
}

.ff-order-exchange__contacts-icons .connect-buttons-max-icon svg,
.ff-order-exchange__contacts-icons .connect-buttons-max-icon img {
	max-width: 30px;
	height: 30px;
}

.ff-order-exchange__success {
	display: grid;
	gap: 14px;
	margin-bottom: 28px;
	padding: 24px;
	border: 1px solid #e7e7e7;
	background: #fafafa;
}

.ff-order-exchange__success[hidden],
.ff-order-exchange__builder[hidden] {
	display: none !important;
}

.ff-order-exchange.is-success .ff-order-exchange__hero {
	display: none;
}

.ff-order-exchange__success-title {
	margin: 0;
	font-size: 24px;
	font-weight: 500;
	color: #7e8e7e;
}

.ff-order-exchange__success-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	max-width: 780px;
}

.ff-order-exchange__success-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ff-order-exchange__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	color: #637062 !important;
	text-decoration: none !important;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ff-order-exchange__title {
	margin: 0;
	font-size: 28px;
	font-weight: 400;
	color: #7e8e7e;
	text-transform: uppercase;
}

.ff-order-exchange__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	max-width: 760px;
}

.ff-order-exchange__section {
	margin-top: 28px;
}

.ff-order-exchange__section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 14px;
}

.ff-order-exchange__section-title {
	font-size: 18px;
	font-weight: 500;
	color: #7e8e7e;
}

.ff-order-exchange__section-note {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.6;
	max-width: 860px;
}

.ff-order-exchange__section-note a {
	color: #637062 !important;
	text-decoration: underline !important;
}

.ff-order-exchange__source-grid,
.ff-order-exchange__target-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ff-order-exchange__target-item {
	display: grid;
	gap: 6px;
	align-content: start;
	min-width: 0;
}

.ff-order-exchange__card {
	position: relative;
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 14px;
	width: 100%;
	min-width: 0;
	padding: 16px;
	border: 1px solid #e7e7e7;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ff-order-exchange__card:hover,
.ff-order-exchange__card.is-active {
	border-color: #7e8e7e;
	background: #f7f8f7;
	transform: translateY(-2px);
}

.ff-order-exchange__card.is-mapped {
	border-color: #c9d2c9;
}

.ff-order-exchange__card--target {
	cursor: default;
}

.ff-order-exchange__image-wrap {
	display: block;
	aspect-ratio: 4 / 5;
	background: #f2f2f2;
	overflow: hidden;
}

.ff-order-exchange__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ff-order-exchange__card-body {
	display: grid;
	align-content: start;
	gap: 8px;
	min-width: 0;
	overflow: hidden;
}

.ff-order-exchange__card-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ff-order-exchange__card-meta {
	font-size: 13px;
	line-height: 1.5;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

.ff-order-exchange__card-price {
	font-size: 16px;
	font-weight: 500;
	color: #292c2e;
}

.ff-order-exchange__size-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2px;
}

.ff-order-exchange__size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid #d8ded8;
	border-radius: 0;
	background: #fff;
	color: #292c2e;
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.ff-order-exchange__size.has-image {
	position: relative;
	width: 34px;
	min-width: 34px;
	height: 34px;
	min-height: 34px;
	padding: 0;
}

.ff-order-exchange__size.has-image::before {
	content: attr(data-size-label);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translate(-50%, 6px);
	opacity: 0;
	pointer-events: none;
	background: #8a978d;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
	padding: 8px 12px;
	z-index: 5;
	transition: opacity .16s ease, transform .16s ease;
}

.ff-order-exchange__size.has-image:hover::before,
.ff-order-exchange__size.has-image:focus-visible::before {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ff-order-exchange__size.has-image.is-active {
	background: #fff;
	color: #292c2e;
}

.ff-order-exchange__size-image {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.ff-order-exchange__size-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.ff-order-exchange__size:hover,
.ff-order-exchange__size:focus-visible {
	border-color: #7e8e7e;
	background: #f7f8f7;
	outline: none;
}

.ff-order-exchange__size.is-active {
	border-color: #7e8e7e;
	background: #7e8e7e;
	color: #fff;
}

.ff-order-exchange__toast {
	position: fixed;
	top: 140px;
	right: max(var(--ff-layout-gutter, 20px), 20px);
	z-index: 9999;
	width: min(420px, calc(100vw - 40px));
	padding: 18px 22px;
	border: 1px solid #d9ddd9;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 60px rgba(41, 44, 46, 0.12);
	backdrop-filter: blur(10px);
	color: #292c2e;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .28s ease, transform .28s ease;
}

.ff-order-exchange__toast.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.ff-order-exchange__card-selected {
	font-size: 12px;
	line-height: 1.45;
	color: #7e8e7e;
}

.ff-order-exchange__status {
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.5;
}

.ff-order-exchange__status.is-error {
	color: #a64b4b;
}

.ff-order-exchange__status.is-empty,
.ff-order-exchange__status.is-loading {
	color: #637062;
}

.ff-order-exchange__summary {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 12px 14px;
	border: 1px solid #e7e7e7;
	background: #fafafa;
}

.ff-order-exchange__summary-head {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ff-order-exchange__summary-list {
	display: grid;
	gap: 10px;
}

.ff-order-exchange__summary-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding-top: 10px;
	border-top: 1px solid #ececec;
}

.ff-order-exchange__summary-col {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.ff-order-exchange__summary-caption {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ff-order-exchange__summary-text {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ff-order-exchange__summary-meta {
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ff-order-exchange__summary-price {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.ff-order-exchange__summary-arrow {
	font-size: 18px;
	color: #7e8e7e;
}

.ff-order-exchange__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.ff-order-exchange__reset,
.ff-order-exchange__confirm,
.ff-order-exchange__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

.ff-order-exchange__reset {
	border: 1px solid #7e8e7e;
	background: #fff;
	color: #7e8e7e;
}

.ff-order-exchange__reset:hover,
.ff-order-exchange__reset:focus-visible {
	background: #f3f5f3;
	color: #7e8e7e;
}

.ff-order-exchange__confirm {
	border: 1px solid #7e8e7e;
	background: #7e8e7e;
	color: #fff;
}

.ff-order-exchange__download {
	border: 1px solid #7e8e7e;
	background: #7e8e7e;
	color: #fff;
}

.ff-order-exchange__confirm:hover,
.ff-order-exchange__confirm:focus-visible,
.ff-order-exchange__download:hover,
.ff-order-exchange__download:focus-visible {
	background: #535f53;
	border-color: #535f53;
	color: #fff;
}

.ff-order-exchange__reset:disabled,
.ff-order-exchange__confirm:disabled {
	opacity: .45;
	cursor: not-allowed;
}

@media (max-width: 1200px) {
	.ff-order-exchange__source-grid,
	.ff-order-exchange__target-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ff-order-exchange-page {
		padding: 24px 0 40px;
	}

	.ff-order-exchange-page__lookup {
		grid-template-columns: 1fr;
	}

	.ff-order-exchange__title {
		font-size: 21px;
	}

	.ff-order-exchange__success {
		padding: 18px 14px;
	}

	.ff-order-exchange__contacts {
		padding: 16px 14px;
	}

	.ff-order-exchange__success-title {
		font-size: 20px;
	}

	.ff-order-exchange__source-grid,
	.ff-order-exchange__target-grid {
		grid-template-columns: 1fr;
	}

	.ff-order-exchange__card {
		grid-template-columns: 88px 1fr;
		padding: 12px;
	}

	.ff-order-exchange__summary {
		gap: 12px;
	}

	.ff-order-exchange__summary-row {
		grid-template-columns: 1fr;
	}

	.ff-order-exchange__summary-arrow {
		align-self: center;
	}

	.ff-order-exchange__reset,
	.ff-order-exchange__confirm,
	.ff-order-exchange__download {
		width: 100%;
	}

	.ff-order-exchange__toast {
		top: 104px;
		right: 12px;
		left: 12px;
		width: auto;
	}

	.ff-order-exchange-page__submit,
	.ff-order-exchange-page__continue {
		width: 100%;
	}
}
