.dpmk-popup-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.dpmk-popup-root[hidden] {
	display: none !important;
}

.dpmk-popup-root.is-open {
	display: flex;
	pointer-events: auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding-top: var(--dpmk-offset-top, 0px);
	padding-right: var(--dpmk-offset-right, 0px);
	padding-bottom: var(--dpmk-offset-bottom, 0px);
	padding-left: var(--dpmk-offset-left, 0px);
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="top"] {
	align-items: flex-start;
	justify-content: center;
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="bottom"] {
	align-items: flex-end;
	justify-content: center;
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="left"] {
	align-items: center;
	justify-content: flex-start;
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="right"] {
	align-items: center;
	justify-content: flex-end;
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="top_left"] {
	align-items: flex-start;
	justify-content: flex-start;
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="top_right"] {
	align-items: flex-start;
	justify-content: flex-end;
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="bottom_left"] {
	align-items: flex-end;
	justify-content: flex-start;
}

.dpmk-popup-root.is-open[data-dpmk-popup-position="bottom_right"] {
	align-items: flex-end;
	justify-content: flex-end;
}

.dpmk-popup-root.is-open:has(.dpmk-popup--bar_top) {
	align-items: flex-start;
	justify-content: center;
}

.dpmk-popup-root.is-open:has(.dpmk-popup--bar_bottom) {
	align-items: flex-end;
	justify-content: center;
}

/* Fullscreen must NOT force center — Position setting still applies. */

.dpmk-popup-root:not(.is-open) .dpmk-popup,
.dpmk-popup-root:not(.is-open) .dpmk-popup__overlay {
	visibility: hidden;
}

.dpmk-popup__overlay {
	position: absolute;
	inset: 0;
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
}

.dpmk-popup {
	position: relative;
	z-index: 1;
	/*
	 * Shrink-wrap to Divi section size so root flex position
	 * (top_left, right, etc.) can actually move the popup.
	 */
	flex: 0 1 auto;
	align-self: auto;
	max-height: 95vh;
	overflow: auto;
	/* Section supplies background, radius, and shadow via Divi design settings. */
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.dpmk-popup--fullscreen {
	/* Allow edge-to-edge when the section is designed full-width; still shrink-wraps when not. */
	max-width: 100%;
	max-height: 100%;
}

.dpmk-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	z-index: 20;
	border: 0;
	background: transparent;
	color: var(--dpmk-close-color, #333333);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.dpmk-popup .dpmk-popup-wrap {
	position: relative;
}

.dpmk-popup__inner {
	padding: 0;
	width: fit-content;
	max-width: 100%;
}

/*
 * Size wrappers to the section — not the viewport — so flex position works.
 */
.dpmk-popup .et-boc,
.dpmk-popup .et-l,
.dpmk-popup .et_builder_inner_content {
	width: fit-content;
	max-width: 100%;
}

/*
 * Beat Divi-generated margin:auto !important (e.g. .dpmk-popup-root[data-…] .et_pb_section_1).
 * width:100% + margin:auto kept the card visually centered inside a wide shell.
 */
.dpmk-popup-root .dpmk-popup .et_builder_inner_content > .et_pb_section,
.dpmk-popup-root .dpmk-popup .dpmk-popup-wrap {
	box-sizing: border-box;
	margin-left: 0 !important;
	margin-right: 0 !important;
	float: none !important;
}

body.dpmk-scroll-lock {
	overflow: hidden;
}

.dpmk-popup--bar_top,
.dpmk-popup--bar_bottom {
	width: 100%;
	max-width: 100%;
	border-radius: 0;
}

.dpmk-popup--bar_top .et-boc,
.dpmk-popup--bar_top .et-l,
.dpmk-popup--bar_top .et_builder_inner_content,
.dpmk-popup--bar_bottom .et-boc,
.dpmk-popup--bar_bottom .et-l,
.dpmk-popup--bar_bottom .et_builder_inner_content {
	width: 100%;
	max-width: 100%;
}

.dpmk-popup--bar_top .et_builder_inner_content > .et_pb_section,
.dpmk-popup--bar_top .dpmk-popup-wrap,
.dpmk-popup--bar_bottom .et_builder_inner_content > .et_pb_section,
.dpmk-popup--bar_bottom .dpmk-popup-wrap {
	width: 100% !important;
	max-width: 100%;
}

.dpmk-popup--bar_top .dpmk-popup__inner,
.dpmk-popup--bar_bottom .dpmk-popup__inner {
	width: 100%;
	max-width: 100%;
}

/*
 * Starter template: Cookie Notice Bar
 */
.dpmk-popup .dpmk-template--cookie-bar {
	box-sizing: border-box;
	width: 100%;
	background: #1c1f26;
	color: #f3f4f6;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
}

.dpmk-popup .dpmk-template__cookie-inner {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 56px 18px 24px;
}

.dpmk-popup .dpmk-template__cookie-text {
	flex: 1 1 280px;
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	font-weight: 400;
	color: #e5e7eb;
}

.dpmk-popup .dpmk-template__cookie-link {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dpmk-popup .dpmk-template__cookie-link:hover,
.dpmk-popup .dpmk-template__cookie-link:focus {
	color: #d1d5db;
}

.dpmk-popup .dpmk-template__cookie-actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
}

.dpmk-popup .dpmk-template__cookie-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: #ffffff;
	color: #111827;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dpmk-popup .dpmk-template__cookie-btn:hover,
.dpmk-popup .dpmk-template__cookie-btn:focus {
	background: #e5e7eb;
	color: #111827;
	outline: none;
}

.dpmk-popup .dpmk-template--cookie-bar .dpmk-popup__close {
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: #f5f5f5;
	font-size: 24px;
	opacity: 0.85;
}

.dpmk-popup .dpmk-template--cookie-bar .dpmk-popup__close:hover,
.dpmk-popup .dpmk-template--cookie-bar .dpmk-popup__close:focus {
	opacity: 1;
}

@media (max-width: 767px) {
	.dpmk-popup .dpmk-template__cookie-inner {
		padding: 16px 48px 16px 16px;
		gap: 14px;
	}

	.dpmk-popup .dpmk-template__cookie-text {
		font-size: 14px;
	}

	.dpmk-popup .dpmk-template__cookie-actions {
		width: 100%;
	}

	.dpmk-popup .dpmk-template__cookie-btn {
		width: 100%;
	}
}
