/* Currency comparison: catalogue filters and transfer-style divided rows. */

.fc-currency-page {
	background: var(--ft-canvas);
	overflow-x: clip;
	padding: 0 0 110px;
}

.fc-currency-hero-shell {
	padding: 30px 0 104px;
}

.fc-currency-hero {
	align-items: center;
	background: var(--ft-black);
	border-radius: 30px;
	color: var(--ft-white);
	display: grid;
	gap: 64px;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
	min-height: 500px;
	overflow: hidden;
	padding: 64px 72px;
}

.fc-currency-hero__copy {
	max-width: 670px;
}

.fc-currency-hero h1 {
	color: var(--ft-white);
	font-size: clamp(46px, 5vw, 76px);
	line-height: 0.98;
	max-width: 780px;
}

.fc-currency-hero__intro {
	color: var(--ft-muted-on-dark);
	font-size: 18px;
	line-height: 1.65;
	margin-top: 24px;
	max-width: 580px;
}

.fc-currency-hero__copy > a {
	align-items: center;
	background: var(--ft-lime);
	border-radius: 13px;
	color: var(--ft-black);
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 12px;
	margin-top: 32px;
	min-height: 52px;
	padding: 0 22px;
	text-decoration: none;
}

.fc-currency-hero__arrow {
	font-size: 20px;
}

.fc-currency-hero__copy > a:focus-visible {
	outline: 3px solid var(--ft-lime);
	outline-offset: 4px;
}

.fc-currency-hero__visuals {
	height: 350px;
	margin: 0 auto;
	max-width: 430px;
	position: relative;
	width: 100%;
}

.fc-currency-hero__visual {
	--fc-currency-visual-size: 82px;
	align-items: center;
	display: flex;
	height: var(--fc-currency-visual-size);
	justify-content: center;
	overflow: visible;
	position: absolute;
	width: var(--fc-currency-visual-size);
}

.fc-currency-hero__visual > img {
	display: block;
	height: 100%;
	object-fit: contain;
	transition: transform 180ms ease;
	width: 100%;
}

.fc-currency-hero__visual > span {
	color: var(--ft-white);
	font-size: 28px;
	font-weight: 800;
}

.fc-currency-hero__visual small {
	align-items: center;
	background: var(--ft-white);
	border: 2px solid var(--ft-white);
	border-radius: 50%;
	bottom: -6px;
	box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
	display: flex;
	font-size: 18px;
	height: 30px;
	justify-content: center;
	overflow: hidden;
	position: absolute;
	right: -6px;
	width: 30px;
}

.fc-currency-hero__flag {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.fc-currency-hero__visual:nth-child(1) {
	--fc-currency-visual-size: 88px;
	left: 42%;
	top: 0;
}

.fc-currency-hero__visual:nth-child(2) {
	--fc-currency-visual-size: 112px;
	right: 0;
	top: 18%;
}

.fc-currency-hero__visual:nth-child(3) {
	--fc-currency-visual-size: 76px;
	bottom: 8%;
	right: 15%;
}

.fc-currency-hero__visual:nth-child(4) {
	--fc-currency-visual-size: 118px;
	bottom: 0;
	left: 25%;
}

.fc-currency-hero__visual:nth-child(5) {
	--fc-currency-visual-size: 92px;
	left: 0;
	top: 28%;
}

.fc-currency-hero__visual:nth-child(6) {
	--fc-currency-visual-size: 68px;
	left: 14%;
	top: 2%;
}

@media (hover: hover) and (pointer: fine) {

	.fc-currency-hero__visual:hover > img {
		transform: translateY(-3px) scale(1.025);
	}
}

#currency-comparison {
	scroll-margin-top: 104px;
}

.fc-currency-controls {
	background: transparent;
	border: 0;
	box-shadow: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	padding: 0;
}

.fc-currency-date-control {
	align-items: center;
	background: var(--ft-white);
	border: 1px solid var(--ft-line);
	border-radius: 11px;
	display: flex;
	min-height: 52px;
	position: relative;
}

.fc-currency-date-control:focus-within {
	outline: 3px solid var(--ft-lime);
	outline-offset: 1px;
}

.fc-currency-date-control__picker {
	align-items: center;
	color: var(--ft-ink);
	cursor: pointer;
	display: flex;
	font-size: 13px;
	font-weight: 650;
	gap: 8px;
	min-height: 50px;
	padding: 0 12px;
	position: relative;
	white-space: nowrap;
}

.fc-currency-date-control__icon {
	color: var(--ft-muted);
	display: inline-flex;
	height: 18px;
	width: 18px;
}

.fc-currency-date-control__icon svg,
.fc-currency-date-control__reset svg {
	height: 100%;
	width: 100%;
}

.fc-currency-date-control__picker input[type="date"] {
	border: 0;
	cursor: pointer;
	height: 100%;
	inset: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	width: 100%;
}

.fc-currency-date-control__reset {
	align-items: center;
	border-left: 1px solid var(--ft-line);
	color: var(--ft-muted);
	display: flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	position: relative;
	text-decoration: none;
	z-index: 1;
}

.fc-currency-date-control__reset svg {
	height: 17px;
	width: 17px;
}

.fc-currency-date-control__reset:hover {
	color: var(--ft-ink);
}

.fc-currency-date-control__reset:focus-visible {
	outline: 0;
}

.fc-currency-control-group {
	display: flex;
	min-width: 0;
}

.fc-currency-segments {
	background: var(--ft-white);
	border: 1px solid var(--ft-line);
	border-radius: 11px;
	display: flex;
	gap: 2px;
	min-height: 44px;
	padding: 3px;
}

.fc-currency-segments__item {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--ft-muted);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 650;
	justify-content: center;
	min-height: 44px;
	min-width: 0;
	padding: 0 12px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
	white-space: nowrap;
}

.fc-currency-segments__item:focus-visible {
	outline: 3px solid var(--ft-lime);
	outline-offset: 1px;
	position: relative;
	z-index: 1;
}

.fc-currency-segments__item:not(.is-active) {
	background: transparent;
}

.fc-currency-segments__item:not(.is-active):hover {
	background: var(--ft-silver);
	color: var(--ft-ink);
}

.fc-currency-segments__item.is-active {
	background: var(--ft-black);
	color: var(--ft-white);
}

.fc-currency-page.is-loading {
	cursor: progress;
}

.fc-currency-page.is-loading [data-currency-dynamic] {
	opacity: 0.58;
	pointer-events: none;
}

.fc-currency-results {
	margin: 48px auto 0;
	max-width: 1260px;
	width: calc(100% - 40px);
}

.fc-currency-results__toolbar {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.fc-currency-results__summary {
	color: var(--ft-muted);
	font-size: 14px;
	margin: 0;
}

.fc-currency-comparison {
	background: var(--ft-white);
	border-radius: 20px;
	display: block;
	overflow: visible;
}

.fc-currency-row {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	column-gap: 24px;
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr) 380px 190px;
	min-height: 136px;
	padding: 20px 24px;
	position: relative;
	row-gap: 18px;
	transition: background-color 0.18s ease;
}

.fc-currency-row:first-child {
	border-radius: 20px 20px 0 0;
}

.fc-currency-row:last-child {
	border-radius: 0 0 20px 20px;
}

.fc-currency-row:only-child {
	border-radius: 20px;
}

.fc-currency-row + .fc-currency-row {
	border-top: 1px solid var(--ft-line);
}

.fc-currency-row:hover {
	background: #f7f8fa;
}

.fc-currency-bank-logo {
	height: 62px;
	position: relative;
	width: 68px;
}

.fc-currency-bank-logo__primary {
	align-items: center;
	background: transparent;
	border-radius: 15px;
	display: flex;
	font-size: 16px;
	font-weight: 750;
	height: 56px;
	justify-content: center;
	outline: 1px solid var(--ft-line);
	overflow: hidden;
	width: 56px;
}

.fc-currency-bank-logo__primary img {
	border-radius: inherit;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.fc-currency-bank-logo__flag {
	align-items: center;
	background: var(--ft-white);
	border: 0;
	border-radius: 50%;
	bottom: 0;
	box-shadow: 0 0 0 2px var(--ft-white), 0 5px 12px rgba(5, 5, 7, 0.16);
	display: flex;
	font-size: 18px;
	height: 30px;
	justify-content: center;
	overflow: hidden;
	position: absolute;
	right: 0;
	width: 30px;
}

.fc-currency-bank-logo__flag img {
	border-radius: inherit;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.fc-currency-row__identity {
	min-width: 0;
}

.fc-currency-row__identity h3 {
	color: var(--ft-ink);
	font-size: 18px;
	font-weight: 650;
	line-height: 1.25;
	margin: 5px 0 0;
	overflow-wrap: anywhere;
}

.fc-currency-row__meta {
	align-items: baseline;
	color: var(--ft-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 0 6px;
	line-height: 1.4;
	margin: 7px 0 0;
}

.fc-currency-row__meta-separator {
	opacity: 0.55;
}

.fc-currency-leader {
	align-items: center;
	align-self: flex-start;
	background: var(--ft-lime);
	border-radius: 7px;
	color: var(--ft-black);
	display: inline-flex;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.06em;
	line-height: 1;
	margin-bottom: 7px;
	padding: 5px 7px;
	text-transform: uppercase;
	width: fit-content;
}

.fc-currency-row__quotes {
	align-items: center;
	border-left: 1px solid var(--ft-line);
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-height: 96px;
	padding-left: 32px;
}

.fc-currency-row__rate {
	align-content: center;
	display: grid;
	grid-template-rows: 18px 44px;
	min-width: 0;
}

.fc-currency-row__label {
	align-items: baseline;
	color: var(--ft-muted);
	display: flex;
	font-size: 10px;
	font-weight: 750;
	gap: 8px;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.fc-currency-row__previous-rate {
	color: var(--ft-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
}

.fc-currency-row__rate-value,
.fc-currency-row__better-rate {
	color: var(--ft-ink);
	font-size: 25px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.fc-currency-row__rate-value {
	align-self: center;
	margin: 0;
}

.fc-currency-row__improved-rate {
	align-items: center;
	display: flex;
	gap: 4px;
	margin: 0;
}

.fc-currency-row__rate-tooltip {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 50%;
	color: var(--ft-muted);
	cursor: help;
	display: inline-flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	padding: 0;
	position: relative;
	transition: color 0.18s ease;
	width: 44px;
}

.fc-currency-row__rate-tooltip::before {
	background: transparent;
	border-radius: 50%;
	content: "";
	height: 28px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: background-color 0.18s ease;
	width: 28px;
}

.fc-currency-row__rate-tooltip svg {
	height: 17px;
	position: relative;
	width: 17px;
	z-index: 1;
}

.fc-currency-row__rate-tooltip:hover {
	color: var(--ft-black);
}

.fc-currency-row__rate-tooltip:hover::before {
	background: var(--ft-lime);
}

.fc-currency-row__rate-tooltip:focus-visible {
	outline: 3px solid var(--ft-lime);
	outline-offset: 2px;
}

.fc-currency-row__action {
	justify-self: end;
}

.fc-currency-row__apply {
	background: var(--ft-lime);
	border-color: var(--ft-lime);
	color: var(--ft-black) !important;
	min-height: 44px;
	min-width: 132px;
	white-space: nowrap;
}

.fc-currency-row__apply:focus-visible {
	outline: 3px solid var(--ft-lime);
	outline-offset: 3px;
}

#fc-global-tooltip > div {
	max-width: calc(100vw - 32px) !important;
	padding: 14px !important;
	width: 240px !important;
}

#fc-global-tooltip #fc-tooltip-text {
	font-size: 13px !important;
	line-height: 1.45 !important;
	margin-bottom: 8px !important;
}

#fc-global-tooltip #fc-tooltip-link {
	color: var(--ft-lime) !important;
	font-size: 13px !important;
	text-decoration-color: currentcolor;
}

#fc-global-tooltip #fc-tooltip-link:hover,
#fc-global-tooltip #fc-tooltip-link:focus-visible {
	color: var(--ft-white) !important;
}

.fc-currency-results__empty {
	background: var(--ft-white);
	border: 1px solid var(--ft-line);
	border-radius: 20px;
	color: var(--ft-muted);
	font-size: 14px;
	line-height: 1.6;
	padding: 30px 24px;
}

@media (max-width: 1100px) {

	.fc-currency-hero {
		gap: 42px;
		padding: 52px;
	}

	.fc-currency-hero__visuals {
		max-width: 360px;
	}

}

@media (max-width: 1080px) {

	.fc-currency-row {
		grid-template-columns: 68px minmax(0, 1fr) 340px;
	}

	.fc-currency-row__action {
		grid-column: 2 / -1;
		justify-self: start;
	}
}

@media (max-width: 820px) {

	.fc-currency-hero-shell {
		padding-top: 18px;
	}

	.fc-currency-hero-shell > .fc-fintech-container {
		padding-inline: 0;
	}

	.fc-currency-hero {
		gap: 38px;
		grid-template-columns: 1fr;
		padding: 46px 36px;
	}

	.fc-currency-hero__visuals {
		height: 290px;
		max-width: 390px;
	}

	.fc-currency-results__toolbar {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.fc-currency-results {
		width: calc(100% - 24px);
	}

	.fc-currency-row {
		grid-template-columns: 62px minmax(0, 1fr);
	}

	.fc-currency-bank-logo {
		width: 62px;
	}

	.fc-currency-row__quotes {
		border-left: 0;
		border-top: 1px solid var(--ft-line);
		grid-column: 2;
		padding-left: 0;
		padding-top: 18px;
	}

	.fc-currency-row__action {
		grid-column: 2;
		justify-self: start;
	}
}

@media (max-width: 600px) {

	.fc-currency-hero {
		border-radius: 22px;
		min-height: auto;
		padding: 38px 22px 24px;
	}

	.fc-currency-hero h1 {
		font-size: clamp(38px, 12vw, 54px);
	}

	.fc-currency-hero__intro {
		font-size: 16px;
	}

	.fc-currency-hero__copy > a {
		width: 100%;
	}

	.fc-currency-hero__visuals {
		height: 230px;
		max-width: 300px;
	}

	.fc-currency-hero__visual:nth-child(1) {
		--fc-currency-visual-size: 64px;
	}

	.fc-currency-hero__visual:nth-child(2) {
		--fc-currency-visual-size: 82px;
	}

	.fc-currency-hero__visual:nth-child(3) {
		--fc-currency-visual-size: 58px;
	}

	.fc-currency-hero__visual:nth-child(4) {
		--fc-currency-visual-size: 86px;
	}

	.fc-currency-hero__visual:nth-child(5) {
		--fc-currency-visual-size: 68px;
	}

	.fc-currency-hero__visual:nth-child(6) {
		--fc-currency-visual-size: 52px;
	}

	.fc-currency-controls {
		justify-content: flex-start;
		width: 100%;
	}

	.fc-currency-results {
		margin-top: 42px;
		width: 100%;
	}

	.fc-currency-row {
		gap: 16px;
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.fc-currency-bank-logo,
	.fc-currency-row__identity,
	.fc-currency-row__quotes,
	.fc-currency-row__action {
		grid-column: 1;
	}

	.fc-currency-row__quotes {
		padding-top: 16px;
	}

	.fc-currency-row__action {
		justify-self: stretch;
	}

	.fc-currency-row__apply {
		width: 100%;
	}
}

@media (max-width: 360px) {

	.fc-currency-hero {
		padding-inline: 18px;
	}

	.fc-currency-segments__item {
		font-size: 13px;
		padding-inline: 9px;
	}

	.fc-currency-date-control__picker {
		padding-inline: 10px;
	}

	.fc-currency-row__quotes {
		grid-template-columns: 1fr;
	}

	.fc-currency-row__rate + .fc-currency-row__rate {
		border-top: 1px solid var(--ft-line);
		padding-top: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.fc-currency-hero__visual > img,
	.fc-currency-row,
	.fc-currency-date-control__reset,
	.fc-currency-segments__item,
	.fc-currency-row__rate-tooltip,
	.fc-currency-row__rate-tooltip::before {
		transition: none;
	}
}
