/* CNL Site Wide Notice */

.cnl-swn {
	width: 100%;
}

.cnl-swn__item[hidden] {
	display: none !important;
}

/*
 * Collapse the parent Container (padding included) while no notice is
 * showing. The widget element carries .cnl-swn-collapse from PHP and gains
 * .cnl-swn-active from JS once a notice is visible. Not applied in the
 * Elementor editor.
 */
body:not(.elementor-editor-active) .e-con:has(> .e-con-inner > .cnl-swn-collapse:not(.cnl-swn-active)),
body:not(.elementor-editor-active) .e-con:has(> .cnl-swn-collapse:not(.cnl-swn-active)) {
	display: none !important;
}

.cnl-swn-parent>.e-con-inner,
.cnl-swn-parent.e-con>.e-con-inner {
	padding-block-end: 0 !important;
    padding-block-start: 0 !important;
}

.cnl-swn__item {
	/* Colours are set per notice (inline custom properties); these are the fallbacks. */
	--cnl-swn-close-bg: #fff;
	--cnl-swn-close-color: #ED5338;
	background-color: var(--cnl-swn-bg, #ED5338);
	color: #fff;

	/*
	 * Full page width background with contained content: the item's own background is
	 * extended sideways with a huge box-shadow, clipped back to the item's top and bottom.
	 * The text stays inside the widget's (container's) width. Unlike a 100vw breakout this
	 * can't cause a horizontal scrollbar.
	 */
	box-shadow: 0 0 0 100vmax var(--cnl-swn-bg, #ED5338);
	clip-path: inset(0 -100vmax);
}

.cnl-swn__inner {
	box-sizing: border-box;
	position: relative;
	padding: 10px 0px;
}
@media (max-width: 1170px) {
	.cnl-swn__inner {
		padding-left: 10px;
		padding-right: 10px;
	}
}

.cnl-swn__content {
	font-size: 15px;
	font-weight: var(--e-global-typography-3ac12eb-font-weight);
	line-height: 1.4;
	text-align: left;
}

.cnl-swn__content p {
	margin: 0;
	margin: 0 auto 0 auto;
    line-height: 1.3;
}

/*
 * Optional separate mobile message. When one is set both versions are printed and one is
 * shown at a time. 767px is Elementor's default mobile breakpoint.
 */
.cnl-swn__content--mobile {
	display: none;
}
@media (max-width: 767px) {
	.cnl-swn__content--desktop {
		display: none;
	}
	.cnl-swn__content--mobile {
		display: block;
	}
}

/*
.cnl-swn__content p + p {
	margin-top: 0.25em;
	margin-top: 0em;
}
*/

.cnl-swn__content a,
body[class*="elementor-kit-"] a {
	color: var(--cnl-swn-link, inherit);
	text-decoration: none;
	text-transform: uppercase;
}

.cnl-swn__content a:hover,
.cnl-swn__content a:focus,
.cnl-swn__content a:active,
body[class*="elementor-kit-"] a:hover,
body[class*="elementor-kit-"] a:focus,
body[class*="elementor-kit-"] a:active {
	color: var(--cnl-swn-link, inherit);
	text-decoration: underline;
}

/* Orange cross on a white square. The extra .cnl-swn keeps theme button styles (e.g. Hello Elementor's pink hover) from winning. */
.cnl-swn .cnl-swn__close,
.cnl-swn .cnl-swn__close:hover,
.cnl-swn .cnl-swn__close:focus,
.cnl-swn .cnl-swn__close:active {
	background: var(--cnl-swn-close-bg);
	color: var(--cnl-swn-close-color);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
}

.cnl-swn .cnl-swn__close {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	margin: 0;
	padding: 6px;
	line-height: 0;
	cursor: pointer;
}

.cnl-swn .cnl-swn__close:focus-visible {
	outline: 2px solid var(--cnl-swn-close-bg);
	outline-offset: 2px;
}

.cnl-swn__close svg {
	display: block;
	width: 14px;
	height: 14px;
}

/* center it all */
.cnl-swn__inner {
    display: flex;
    justify-content: center;
	align-items: center;
}
@media (max-width: 1170px) {
	.cnl-swn .cnl-swn__close {
		position: relative;
		margin-left: 15px;
		top: auto;
		right: 0;
		transform: none;
	}
}

/* ---------------------------------------------------------------------
 * Elementor editor view
 * ------------------------------------------------------------------ */

.cnl-swn--editor {
	--cnl-swn-edit-rgb: 235, 142, 251;
	padding: 8px;
	background: repeating-linear-gradient(
		125deg,
		rgba(var(--cnl-swn-edit-rgb), 0.05),
		rgba(var(--cnl-swn-edit-rgb), 0.05) 1px,
		transparent 2px,
		transparent 9px
	);
	border: 1px solid rgba(var(--cnl-swn-edit-rgb), 0.02);
}

.cnl-swn--editor .cnl-swn__editor-label,
.cnl-swn--editor .cnl-swn__meta {
	font-family: sans-serif;
	font-size: 11px;
	line-height: 1.4;
	color: #555;
}

.cnl-swn--editor .cnl-swn__editor-label {
	margin-bottom: 6px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cnl-swn--editor .cnl-swn__meta {
	margin: 3px 0 8px;
}

.cnl-swn--editor .cnl-swn__close {
	cursor: default;
}
