/* 2UFi Popup Link */

.twoUfi-popup-link-wrap {
	position: relative;
	display: inline-block;
}

.twoUfi-popup-link {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: gap 0.2s ease;
	cursor: pointer;
}

.twoUfi-popup-link:hover,
.twoUfi-popup-link:focus {
	gap: 12px;
	text-decoration: none;
}

.twoUfi-popup-link__arrow {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
}

/* Popup ----------------------------------------------------- */

.twoUfi-popup-link__popup {
	position: absolute;
	z-index: 9999;
	width: max-content;
	max-width: var(--twoUfi-popup-width, 380px);
	background: var(--ast-global-color-7);
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 20px 60px rgba(9, 28, 48, 0.18);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.twoUfi-popup-link__popup[data-open="true"] {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Desktop position variants */
.twoUfi-popup-link-wrap[data-position="bottom"] .twoUfi-popup-link__popup {
	top: calc(100% + 12px);
	left: 0;
}

.twoUfi-popup-link-wrap[data-position="top"] .twoUfi-popup-link__popup {
	bottom: calc(100% + 12px);
	left: 6px;
	transform: translateY(-10px);
}

.twoUfi-popup-link-wrap[data-position="top"] .twoUfi-popup-link__popup[data-open="true"] {
	transform: translateY(0);
}

.twoUfi-popup-link-wrap[data-position="right"] .twoUfi-popup-link__popup {
	top: 0;
	left: calc(100% + 12px);
}

.twoUfi-popup-link-wrap[data-position="left"] .twoUfi-popup-link__popup {
	top: 0;
	right: calc(100% + 12px);
	left: auto;
}

.twoUfi-popup-link__close {
	position: absolute;
	padding: 0;
	right: 2px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
	background: var(--ast-global-color-1);
	transition: background 0.15s ease;
}

.twoUfi-popup-link__close:hover {
	background: var(--ast-global-color-0);
	color: var(--ast-global-color-7);
}

.twoUfi-popup-link__content {
	color: var(--ast-global-color-0);
}

.twoUfi-popup-link__content li {
	margin-bottom: .25rem;
}

/* Lists — shared base */
.twoUfi-popup-link__content ul,
.twoUfi-popup-link__content ol {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--ast-global-color-0);
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
 
.twoUfi-popup-link__content li {
	position: relative;
	padding: 10px 0 10px 40px;
	margin: 0;
}
 
.twoUfi-popup-link__content li:last-child {
	border-bottom: 0;
}
 
/* Numbered list — circled blue badges */
.twoUfi-popup-link__content ol {
	counter-reset: twoUfi-popup-counter;
}
 
.twoUfi-popup-link__content ol > li::before {
	counter-increment: twoUfi-popup-counter;
	content: counter(twoUfi-popup-counter);
	position: absolute;
	left: 0;
	top: 9px;
	width: 26px;
	height: 26px;
	background: #3677D7;
	color: var(--ast-global-color-7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}
 
/* Bulleted list — small blue dots */
.twoUfi-popup-link__content ul > li {
	padding-left: 22px;
}
 
.twoUfi-popup-link__content ul > li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 20px;
	width: 6px;
	height: 6px;
	background: var(--ast-global-color-1);
	border-radius: 50%;
}

/* Mobile: center popup, dim background ---------------------- */

@media (max-width: 768px) {
	.flex-row.panel-row-style {
		gap: 0;
	}
	
	.twoUfi-popup-link__popup {
		position: fixed;
		top: 50%;
		left: 50%;
		right: auto;
		bottom: auto;
		padding: 20px;
		width: calc(100vw - 32px);
		max-width: var(--twoUfi-popup-width, 380px);
		max-height: max-content;
		overflow-y: auto;
		transform: translate(-50%, calc(-50% + 10px));
	}

	.twoUfi-popup-link__popup[data-open="true"] {
		transform: translate(-50%, -50%);
	}

	.twoUfi-popup-link-wrap[data-mobile-overlay="true"]::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(9, 28, 48, 0.5);
		z-index: 9998;
		animation: twoUfiPopupFade 0.22s ease;
	}
	
	.twoUfi-popup-link__content li {
		padding: 8px 0 8px 36px;
	}
	
	.twoUfi-popup-link__content ol > li::before {
		top: 7px;
	}
}

@media (max-width: 480px) {
	.twoUfi-popup-link-wrap[data-position="top"] .twoUfi-popup-link__popup {
		transform: translate(-50%, -10px);
		left: 50%;
	}
	
	.twoUfi-popup-link-wrap[data-position="top"] .twoUfi-popup-link__popup[data-open="true"] {
		transform: translate(-50%, -50%);
		left: 50%;
	}
}

@keyframes twoUfiPopupFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}