/* OMS Email Signup - placements for the Klaviyo embed form. The form's own look is set in Klaviyo. */

.oms-es--product {
	margin: 1.5em 0;
	padding-top: 1em;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.oms-es--band {
	background: #f5f5f5;
	padding: 2em 16px;
	clear: both;
}

.oms-es__inner {
	max-width: 560px;
	margin: 0 auto;
}

/* The top banner opens the pop-up. */
.text-scroll.oms-es-link {
	cursor: pointer;
}

/* Parked: in the page (so Klaviyo fills it on its first pass) but off screen, invisible and unclickable.
 * Not display:none - the form must lay out normally to render. */
.oms-es-modal.oms-es-modal--parked {
	left: -10000px;
	right: auto;
	width: 420px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.oms-es-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.oms-es-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.oms-es-modal__box {
	position: relative;
	background: #fff;
	color: #222;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 8px;
	padding: 28px 12px 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

button.oms-es-modal__close {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 44px;
	height: 44px;
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #222;
	font-size: 28px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
}

body.oms-es-open {
	overflow: hidden;
}
