#espa-banner-plugin {
	position: fixed;
	z-index: 1000000;
	display: flex;
	box-sizing: border-box;
	width: fit-content;
	max-width: min(var(--espa-d-max-width, 100%), calc(100vw - var(--espa-d-offset-left, 0px) - var(--espa-d-offset-right, 0px)));
	margin: 0;
	padding: 0;
	background: #fff;
	line-height: 0;
	box-shadow: 0 0 0 1px rgba(0, 35, 102, 0.08), 0 6px 18px rgba(0, 0, 0, 0.08);
}

@media (min-width: 782px) {
	#espa-banner-plugin.is-d-v-top {
		top: calc(var(--espa-d-offset-top, 0px) + env(safe-area-inset-top, 0px));
		bottom: auto;
	}

	#espa-banner-plugin.is-d-v-bottom {
		bottom: calc(var(--espa-d-offset-bottom, 0px) + env(safe-area-inset-bottom, 0px));
		top: auto;
	}

	#espa-banner-plugin.is-d-h-left {
		left: var(--espa-d-offset-left, 0px);
		right: auto;
		justify-content: flex-start;
	}

	#espa-banner-plugin.is-d-h-right {
		right: var(--espa-d-offset-right, 0px);
		left: auto;
		justify-content: flex-end;
	}
}

#espa-banner-plugin a {
	display: block;
	max-width: 100%;
	line-height: 0;
}

#espa-banner-plugin img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

#espa-banner-plugin a:focus-visible {
	outline: 2px solid #003399;
	outline-offset: 2px;
}

body.espa-banner-reserve-top {
	padding-top: var(--espa-banner-space, 0px);
}

body.espa-banner-reserve-bottom {
	padding-bottom: var(--espa-banner-space, 0px);
}

/* Keep Woodmart's sticky header and scroll button clear of the bar. */
body.espa-banner-reserve-top .whb-sticked .whb-main-header,
body.espa-banner-reserve-top .whb-clone.whb-sticked,
body.espa-banner-reserve-top .whb-sticky-header.whb-sticked {
	top: var(--espa-banner-space, 0px) !important;
}

body.espa-banner-reserve-bottom .scrollToTop {
	bottom: calc(var(--espa-banner-space, 0px) + 16px);
}

@media (min-width: 782px) and (max-width: 1024px) {
	body:has(.wd-toolbar) #espa-banner-plugin.is-d-v-bottom {
		bottom: calc(var(--espa-d-offset-bottom, 0px) + env(safe-area-inset-bottom, 0px) + 55px);
	}
}

@media (max-width: 781px) {
	#espa-banner-plugin {
		max-width: min(var(--espa-m-max-width, 100%), calc(100vw - var(--espa-m-offset-left, 0px) - var(--espa-m-offset-right, 0px)));
	}

	#espa-banner-plugin.is-m-v-top {
		top: calc(var(--espa-m-offset-top, 0px) + env(safe-area-inset-top, 0px));
		bottom: auto;
	}

	#espa-banner-plugin.is-m-v-bottom {
		bottom: calc(var(--espa-m-offset-bottom, 0px) + env(safe-area-inset-bottom, 0px));
		top: auto;
	}

	#espa-banner-plugin.is-m-h-left {
		left: var(--espa-m-offset-left, 0px);
		right: auto;
		justify-content: flex-start;
	}

	#espa-banner-plugin.is-m-h-right {
		right: var(--espa-m-offset-right, 0px);
		left: auto;
		justify-content: flex-end;
	}

	body:has(.wd-toolbar) #espa-banner-plugin.is-m-v-bottom {
		bottom: calc(var(--espa-m-offset-bottom, 0px) + env(safe-area-inset-bottom, 0px) + 55px);
	}

	body.espa-banner-reserve-bottom .scrollToTop {
		bottom: calc(var(--espa-banner-space, 0px) + 68px);
	}
}

@media print {
	#espa-banner-plugin {
		position: static;
		box-shadow: none;
		max-width: 100%;
	}

	body.espa-banner-reserve-top,
	body.espa-banner-reserve-bottom {
		padding-top: 0;
		padding-bottom: 0;
	}
}
