/* Broker marks only. The original image and its aspect ratio are preserved. */
body .fxm-broker-logo-frame {
	position: relative;
	flex-shrink: 0;
	padding: 0 !important;
	background-color: #fff;
	border-color: #e2e5ed;
}
body .fxm-broker-logo-frame > img[data-fxm-broker-logo] {
	display: block;
	width: 100%;
	height: 100%;
	padding: 2px !important;
	object-fit: contain !important;
}
body .fxm-broker-logo-frame > img[data-fxm-broker-logo][hidden] { display: none !important; }
/* Initials are a fallback only. Most portal logos have transparent padding, so
   showing them under a loaded image would print letters through the mark; the
   frame gets `.is-fallback` when there is no image or it fails to load. */
body .fxm-broker-logo-frame > .fxm-broker-logo-initials { display: none; }
body .fxm-broker-logo-frame.is-fallback > .fxm-broker-logo-initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: #5a40eb;
	background: linear-gradient(135deg, #f0edff 0%, #e2e7ff 100%);
	border-radius: inherit;
	pointer-events: none;
}
/* This inner viewport leaves homepage ad labels outside the clipping area. */
.fxm-broker-logo-viewport {
	position: absolute;
	inset: 3px;
	display: block;
	overflow: hidden;
	border-radius: 2px;
	background: #fff;
	pointer-events: none;
}
body .fxm-broker-logo-viewport > img[data-fxm-broker-logo] {
	position: absolute !important;
	display: block;
	width: var(--fxm-logo-width) !important;
	height: var(--fxm-logo-height) !important;
	max-width: none !important;
	max-height: none !important;
	left: var(--fxm-logo-left) !important;
	top: var(--fxm-logo-top) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: fill !important;
}
body .fxm-broker-logo-viewport > img[data-fxm-broker-logo][hidden] { display: none !important; }
