/* AML Instruments - Fraud Warning Notice */

.aml-fw {
	--aml-fw-red: #bb0000;
	--aml-fw-ink: #1e2430;
	--aml-fw-body: #3a4150;
	--aml-fw-line: #e3e6ea;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.aml-fw.is-open {
	display: block;
}

.aml-fw[hidden] {
	display: none;
}

.aml-fw__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 20, 27, 0.62);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.aml-fw.is-visible .aml-fw__backdrop {
	opacity: 1;
}

.aml-fw__panel {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(620px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	transform: translate(-50%, -46%);
	opacity: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 24px 60px rgba(10, 14, 20, 0.35);
	transition: opacity 0.25s ease, transform 0.25s ease;
	outline: none;
	overflow: hidden;
}

.aml-fw.is-visible .aml-fw__panel {
	opacity: 1;
	transform: translate(-50%, -50%);
}

/* Header */

.aml-fw__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--aml-fw-red);
	color: #fff;
	flex: 0 0 auto;
}

.aml-fw__icon {
	display: flex;
	flex: 0 0 auto;
	color: #fff;
}

.aml-fw__title {
	margin: 0;
	flex: 1 1 auto;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.1px;
}

.aml-fw__x {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.aml-fw__x:hover,
.aml-fw__x:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.16);
}

/* Body */

.aml-fw__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px;
	color: var(--aml-fw-body);
	font-size: 15px;
	line-height: 1.6;
}

.aml-fw__body p {
	margin: 0 0 14px;
	color: var(--aml-fw-body);
	font-size: 15px;
	line-height: 1.6;
}

.aml-fw__body ul {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.aml-fw__body li {
	position: relative;
	margin: 0 0 9px;
	padding-left: 26px;
	color: var(--aml-fw-ink);
	font-size: 15px;
	line-height: 1.55;
}

.aml-fw__body li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--aml-fw-red);
}

.aml-fw__body > *:last-child {
	margin-bottom: 0;
}

.aml-fw__contact {
	margin-top: 16px !important;
	padding: 12px 14px;
	background: #f5f6f8;
	border-left: 3px solid var(--aml-fw-red);
	border-radius: 0 3px 3px 0;
	font-size: 15px;
	color: var(--aml-fw-ink) !important;
}

.aml-fw__contact a {
	color: var(--aml-fw-red);
	font-weight: 700;
	text-decoration: underline;
}

/* Actions */

.aml-fw__actions {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	padding: 14px 20px;
	border-top: 1px solid var(--aml-fw-line);
	background: #fff;
}

.aml-fw__btn {
	appearance: none;
	margin: 0;
	padding: 11px 26px;
	border: 0;
	border-radius: 3px;
	background: var(--aml-fw-red);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.aml-fw__btn:hover,
.aml-fw__btn:focus-visible {
	background: #950000;
	color: #fff;
}

.aml-fw__x:focus-visible,
.aml-fw__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.aml-fw__btn:focus-visible {
	outline-color: var(--aml-fw-ink);
}

/* Banner variant */

.aml-fw--bar {
	top: auto;
	background: transparent;
	pointer-events: none;
}

.aml-fw--bar .aml-fw__backdrop {
	display: none;
}

.aml-fw--bar .aml-fw__panel {
	pointer-events: auto;
	top: auto;
	bottom: 0;
	left: 0;
	transform: translateY(16px);
	width: 100%;
	max-width: none;
	max-height: 70vh;
	border-radius: 0;
	border-top: 3px solid var(--aml-fw-red);
	box-shadow: 0 -8px 30px rgba(10, 14, 20, 0.22);
}

.aml-fw--bar.is-visible .aml-fw__panel {
	transform: translateY(0);
}

.aml-fw--bar .aml-fw__bar,
.aml-fw--bar .aml-fw__body,
.aml-fw--bar .aml-fw__actions {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.aml-fw--bar .aml-fw__bar {
	background: transparent;
	color: var(--aml-fw-ink);
	padding-bottom: 4px;
}

.aml-fw--bar .aml-fw__icon,
.aml-fw--bar .aml-fw__title,
.aml-fw--bar .aml-fw__x {
	color: var(--aml-fw-red);
}

.aml-fw--bar .aml-fw__title {
	color: var(--aml-fw-ink);
}

.aml-fw--bar .aml-fw__actions {
	border-top: 0;
}

/* Small screens */

@media (max-width: 600px) {
	.aml-fw__panel {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
	}

	.aml-fw__title {
		font-size: 18px;
	}

	.aml-fw__bar {
		padding: 14px 16px;
	}

	.aml-fw__body {
		padding: 16px;
		font-size: 14.5px;
	}

	.aml-fw__actions {
		padding: 12px 16px;
	}

	.aml-fw__btn {
		width: 100%;
		padding: 13px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aml-fw__backdrop,
	.aml-fw__panel {
		transition: none;
	}
}

/* Stop the page scrolling behind the modal */

html.aml-fw-locked,
body.aml-fw-locked {
	overflow: hidden;
}
