/* Timberline Popups. Layout follows the former Popup Anything "design-1" modal. */

/* Above the CookieYes banner (9999999), below its preference center (99999999). */
.tlp-popup {
	position: fixed;
	inset: 0;
	z-index: 10000000;
	display: flex;
	padding: 15px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity var(--tlp-out, 250ms) ease-out;
	box-sizing: border-box;
}
.tlp-popup[hidden] {
	display: none;
}
.tlp-popup.tlp-open {
	opacity: 1;
	transition-duration: var(--tlp-in, 500ms);
	transition-timing-function: ease-in;
}
.tlp-popup *,
.tlp-popup *::before,
.tlp-popup *::after {
	box-sizing: border-box;
}

/* margin:auto centres the box and still lets a tall popup scroll from its top. */
.tlp-dialog {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: auto;
	background: #fff;
	color: #333;
	line-height: normal;
	text-align: left;
	box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
	outline: none;
}
.tlp-body {
	padding: 20px;
}
.tlp-body > * {
	margin: 0 0 15px;
}
.tlp-body > :last-child {
	margin-bottom: 0;
}

.tlp-heading {
	font-size: 26px;
	font-weight: 700;
	line-height: normal;
	color: #000;
}
.tlp-subheading {
	font-size: 20px;
	font-weight: 500;
	line-height: normal;
	color: #333;
}
.tlp-content,
.tlp-secondary,
.tlp-content p,
.tlp-secondary p {
	color: #444;
}
.tlp-content p,
.tlp-secondary p {
	margin: 0 0 15px;
}
.tlp-content p:last-child,
.tlp-secondary p:last-child {
	margin-bottom: 0;
}
.tlp-content img,
.tlp-secondary img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}
.tlp-content iframe {
	max-width: 100%;
}
/* Floated paragraphs (text left, button right) stay inside the box. */
.tlp-content,
.tlp-secondary {
	display: flow-root;
}

/* The theme styles every <button> (colour, hover, padding); the close button keeps its own look. */
.tlp-popup .tlp-close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 35px;
	height: 35px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	background: #000 !important;
	color: #fff !important;
	fill: #fff;
	cursor: pointer;
	line-height: 1;
	font-size: 0;
	box-shadow: none;
	min-width: 0;
	min-height: 0;
}
.tlp-popup .tlp-close svg {
	width: 19px;
	height: 19px;
	display: block;
}
.tlp-popup .tlp-close:hover,
.tlp-popup .tlp-close:focus {
	background: #000 !important;
}
.tlp-popup .tlp-close:focus-visible {
	outline: 2px solid #4e899b;
	outline-offset: 2px;
}

html.tlp-lock,
html.tlp-lock body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.tlp-popup,
	.tlp-popup.tlp-open {
		transition: none;
	}
}
