/**
 * Popup Component Styles
 */

.popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: -1;
	pointer-events: none;
}

.popup--visible {
	pointer-events: auto;
	z-index: 10000;
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	display: none;
	pointer-events: auto;
}

.popup-overlay--visible {
	opacity: 1;
	display: block;
}

.popup__box {
	position: relative;
	background-color: white;
	width: calc(100% - 50px);
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	pointer-events: auto;
}

.popup--visible .popup__box {
	opacity: 1;
}

.popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	z-index: 1;
}
.popup__close svg line {
	color: var(--base-ultra-dark);
}

.popup__content {
	padding: 35px;
}

/* Buttons */
.popup__content p + div.btn-wrapper {
	margin-top: 50px;
}
.popup__content div.btn-wrapper + div.btn-wrapper {
	margin-top: 20px;
}
.popup__content div.btn-wrapper a {
	width: 100%;
	justify-content: center;
}
