/*
 * WIZSP Meetings 1.8.0 — events side banner and event pop-up.
 * Both start [hidden]; wizsp-event-promos.js shows them.
 */

.wizsp-ebanner,
.wizsp-epop {
	--wizsp-promo-green: #094830;
	--wizsp-promo-green-dark: #182c25;
	--wizsp-promo-text: #1f2320;
	--wizsp-promo-muted: #5f6b64;
	--wizsp-promo-border: #d7dad6;
}

.wizsp-ebanner[hidden],
.wizsp-epop[hidden] {
	display: none !important;
}

/* ------------------------------------------------------- side banner */

.wizsp-ebanner {
	position: fixed;
	right: 16px;
	top: 50%;
	z-index: 99990;
	width: 260px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border-left: 4px solid var(--wizsp-promo-green);
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	padding: 14px 16px 12px;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1.35;
	color: var(--wizsp-promo-text);
	opacity: 0;
	transform: translate(24px, -50%);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.wizsp-ebanner.is-open {
	opacity: 1;
	transform: translate(0, -50%);
}

.wizsp-ebanner__x {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wizsp-promo-muted);
	font-size: 20px;
	line-height: 28px;
	cursor: pointer;
}

.wizsp-ebanner__x:hover,
.wizsp-ebanner__x:focus {
	background: #f0f2f0;
	color: var(--wizsp-promo-text);
}

.wizsp-ebanner__title {
	margin: 0 28px 8px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wizsp-promo-green);
}

.wizsp-ebanner__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wizsp-ebanner__list li {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wizsp-promo-border);
}

.wizsp-ebanner__list li:first-child {
	border-top: 0;
}

.wizsp-ebanner__list a {
	display: block;
	padding: 8px 0;
	color: inherit;
	text-decoration: none;
}

.wizsp-ebanner__list a:hover .wizsp-ebanner__name,
.wizsp-ebanner__list a:focus .wizsp-ebanner__name {
	color: var(--wizsp-promo-green);
	text-decoration: underline;
}

.wizsp-ebanner__date {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--wizsp-promo-green);
}

.wizsp-ebanner__name {
	display: block;
	font-weight: 600;
}

/* Phones: a strip along the bottom instead of a card on the side. */
@media (max-width: 640px) {
	.wizsp-ebanner {
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		max-width: none;
		transform: translateY(24px);
	}

	.wizsp-ebanner.is-open {
		transform: translateY(0);
	}

	.wizsp-ebanner__list {
		max-height: 132px;
		overflow-y: auto;
	}
}

/* ------------------------------------------------------------ pop-up */

.wizsp-epop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.75);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wizsp-epop.is-open {
	opacity: 1;
}

.wizsp-epop__box {
	position: relative;
	max-width: min(560px, 100%);
	max-height: 100%;
}

.wizsp-epop__box a {
	display: block;
}

.wizsp-epop__box img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	height: auto;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.wizsp-epop__x {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 1;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #123;
	font-size: 24px;
	line-height: 36px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
	.wizsp-epop__x {
		top: 6px;
		right: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wizsp-ebanner,
	.wizsp-epop {
		transition: none;
	}
}
