@font-face {
	font-family: 'Proxima Nova';
	src: url('/assets/fonts/proxima-nova-regular.otf') format('truetype');
}
@font-face {
	font-family: 'Proxima Nova Semibold';
	src: url('/assets/fonts/proxima-nova-semibold.otf') format('truetype');
}

:root {
	--font-regular: Proxima Nova;
	--font-semibold: Proxima Nova Semibold;
	--text-color: #32383c;
	--violet: #690dd3;
}

body {
	height: 100vh;
	margin: 0;
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
	font-family: var(--font-regular);
}

h1,
h2,
h3,
h4,
p {
	margin: 0;
}

.digital-cheque-lookup-frame-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

header {
	display: flex;
	align-items: center;
	padding: 16px;
	color: var(--text-color);
	border-bottom: 1px solid #e2e4e9;
	background-color: #f5f6f8;
}

header h3 {
	font-size: 24px;
	line-height: 28px;
	font-family: var(--font-semibold);
}

header .logo {
	margin-right: 8px;
}

header .sep {
	width: 2px;
	height: 24px;
	margin: 0 12px;
	background-color: var(--text-color);
}

main {
	flex: 1;
	background-color: #f5f6f8;
}

main section {
	padding: 32px 16px 24px 16px;
}

main section h1 {
	font-size: 24px;
	line-height: 28px;
	text-align: center;
	color: var(--text-color);
	font-family: var(--font-semibold);
	margin-bottom: 18px;
}

main section .form {
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(96, 108, 156, 0.1);
	border-radius: 6px 6px 0 0;
	padding: 16px 16px 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

main section .form .input {
	position: relative;
}

main section .form .input label {
	font-size: 12px;
	line-height: 15px;
	color: #000000;
	background: #fff;
	padding: 0 4px;
	position: absolute;
	top: -7px;
	left: 12px;
}

main section .form .input input {
	width: 100%;
	font-size: 14px;
	line-height: 17px;
	padding: 12px 12px 12px 14px;
	border: 1px solid #b6bfcd;
	box-sizing: border-box;
	border-radius: 4px;
	margin-bottom: 24px;
	color: #6d737e;
	height: 40px;
}

main section .form .input input:focus {
	color: #27292c;
}

main section button.submit-mobile {
	background: var(--violet);
	box-shadow: 0 2px 6px rgba(105, 13, 211, 0.08);
	border: none;
	border-radius: 0 0 4px 4px;
	color: #fff;
	font-family: var(--font-regular);
	font-size: 14px;
	line-height: 17px;
	padding: 12px;
	width: 100%;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

main section.has-results button.submit-mobile {
	box-shadow: none;
}

main section button.submit-desktop {
	display: none;
}

main section button.submit .icon-loading {
	display: none;
}

main section button.submit.loading .icon-search {
	display: none;
}

main section button.submit.loading .icon-loading {
	display: block;
	width: 17px;
	height: 17px;
}

main section button.submit-mobile .icon-loading {
	margin-left: 16px;
}

main section .info-block {
	background: var(--text-color);
	border-radius: 6px;
	color: #fff;
	padding: 24px;
	display: flex;
	flex-direction: column;
	position: relative;
	visibility: hidden;
}

main section .info-block.visible {
	visibility: visible;
}

main section .info-block h4 {
	font-size: 16px;
	line-height: 18px;
	font-family: var(--font-semibold);
	margin-bottom: 16px;
}

main section .info-block p {
	font-size: 14px;
	line-height: 19px;
	margin-bottom: 24px;
}

main section .info-block .icons {
	width: 126px;
	height: 42px;
	margin-bottom: 24px;
}

main section .info-block .figure {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 165px;
	height: 130px;
}

main section .cheque-not-found {
	background: #ffebea;
	border-radius: 6px;
	font-size: 14px;
	line-height: 17px;
	color: #eb4235;
	padding: 16px;
	display: none;
}

main section .cheque-not-found.visible {
	display: flex;
	align-items: center;
}

main section .cheque-not-found img {
	margin-right: 12px;
}

main section #cheque-form {
	position: relative;
	z-index: 2;
}

main section .results {
	background: #27292c;
	border-radius: 6px;
	padding: 148px 16px 32px 16px;
	width: 100vw;
	position: relative;
	margin-top: -460px;
	margin-left: -16px;
	z-index: 1;
	display: none;
}

main section .results.visible {
	display: block;
}

main section .results .frames {
	width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

main section .results .frames .frame {
	margin-bottom: 16px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
}

main section .results .frames .frame .preview {
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	width: 60px;
	height: 100%;
}

main section .results .frames .frame a {
	display: flex;
	color: #fff;
	text-decoration: none;
}

main section .results .frames .frame .info {
	padding: 16px;
	font-family: var(--font-regular);
	font-size: 14px;
	line-height: 17px;
	border-radius: 4px;
}

main section .results .frames .frame .icon-export {
	width: 20px;
	height: 20px;
	margin: 16px;
	align-self: center;
}

main section .results .frames .frame .img-container .backdrop .icon-round-export {
	display: none;
}

footer {
	width: 100%;
	padding: 16px;
	font-family: var(--font-regular);
	font-size: 12px;
	line-height: 15px;
	color: #a0aab9;
	border: 1px solid #e2e4e9;
	text-align: center;
	background-color: #f5f6f8;
}

@media (min-width: 548px) {
	header {
		padding: 32px 62px;
		border-bottom: none;
	}
	main {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	main section {
		display: flex;
		flex-direction: column;
		width: calc(100% - 10px);
		max-width: 648px;
		height: 100%;
		padding: 0;
	}
	main section h1 {
		margin-bottom: 48px;
	}
	main section .content-container {
		display: flex;
		flex-direction: column;
		flex-shrink: 0;
		flex-grow: 3;
		justify-content: flex-end;
	}
	main section .spacer {
		flex-shrink: 1;
		flex-grow: 7;
	}
	main section .form {
		display: flex;
		flex-direction: row;
		padding: 32px;
		margin-bottom: 16px;
		border-bottom-left-radius: 6px;
		border-bottom-right-radius: 6px;
	}
	main section .input {
		flex-grow: 1;
		margin-bottom: 0;
		margin-right: 16px;
	}
	main section .form .input input {
		margin-bottom: 0;
	}
	main section button.submit-mobile {
		display: none;
	}
	main section button.submit-desktop {
		display: inline-block;
		background: var(--violet);
		box-shadow: 0 2px 6px rgba(235, 189, 191, 0.8);
		border-radius: 4px;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 40px;
		height: 40px;
		border: none;
	}
	main section button.submit-desktop:hover:not(.disabled) {
		cursor: pointer;
		box-shadow: none;
		border: 1px solid #873ddc;
		background: #873ddc;
	}
	main section .info-block {
		flex-direction: row;
	}
	main section .info-block .text-info {
		margin-right: 8px;
	}
	main section .info-block .text-info p {
		margin-bottom: 0;
	}
	main section .info-block .icons {
		margin-bottom: 0;
	}
	main section .results {
		padding: 74px 0 0 0;
		width: 870px;
		margin-top: -230px;
		margin-bottom: 32px;
		left: calc((-870px + 679px) / 2);
	}
	main section .results .frames {
		width: 648px;
		justify-content: space-between;
	}
	main section .results .frames .frame {
		margin-bottom: 32px;
		width: 311px;
		background: #fff;
		border-radius: 4px;
	}
	main section .results .frames .frame .img-container {
		position: relative;
	}
	main section .results .frames .frame .img-container .backdrop {
		position: absolute;
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	main section .results .frames .frame .img-container .backdrop .icon-round-export {
		width: 40px;
		height: 40px;
		display: none;
	}
	main section .results .frames .frame .img-container .backdrop:hover {
		background: rgba(39, 41, 44, 0.5);
	}
	main section .results .frames .frame .img-container .backdrop:hover .icon-round-export {
		display: block;
	}
	main section .results .frames .frame .preview {
		margin: 16px 16px 11px 16px;
		width: auto;
		height: auto;
	}
	main section .results .frames .frame a {
		color: #000;
		display: inline;
	}
	main section .results .frames .frame .info {
		border-top: 1px solid #e2e4e9;
		padding: 16px;
		font-family: var(--font-regular);
		font-size: 12px;
		line-height: 15px;
		border-radius: 4px;
	}
	main section .results .frames .frame .icon-export {
		display: none;
	}
	footer {
		text-align: left;
		padding-left: 62px;
	}
}
