.gbpg-popup-trigger {
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1;
	padding: 0.9rem 1.25rem;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.gbpg-popup-trigger:hover,
.gbpg-popup-trigger:focus-visible {
	opacity: 0.9;
	transform: translateY(-1px);
}

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

.gbpg-popup {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(1rem, 4vw, 2rem);
	position: fixed;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	z-index: 99999;
}

.gbpg-popup__backdrop {
	background: rgba(0, 0, 0, 0.68);
	inset: 0;
	position: fixed;
}

.gbpg-popup__dialog {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	color: #111;
	max-height: calc(100vh - clamp(2rem, 8vw, 4rem));
	max-height: calc(100dvh - clamp(2rem, 8vw, 4rem));
	max-width: min(92vw, var(--gbpg-popup-width, 780px));
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	position: relative;
	touch-action: pan-y;
	width: 100%;
	z-index: 1;
}

.gbpg-popup__content {
	padding: 0;
}

.gbpg-popup__title {
	margin-block-start: 0;
}

.gbpg-popup__close {
	align-items: center;
	appearance: none;
	background: #111;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.5rem;
	float: right;
	height: 42px;
	justify-content: center;
	line-height: 1;
	margin: 14px 14px 0 0;
	position: sticky;
	top: 14px;
	width: 42px;
	z-index: 2;
}

.gbpg-popup__close:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

html.gbpg-popup-is-open,
body.gbpg-popup-is-open {
	overflow: hidden !important;
}

body.gbpg-popup-is-open {
	padding-right: var(--gbpg-scrollbar-width, 0);
}

.gbpg-popup[data-lenis-prevent],
.gbpg-popup__dialog[data-lenis-prevent] {
	overscroll-behavior: contain;
}

@media (max-width: 640px) {
	.gbpg-popup {
		align-items: flex-end;
		padding: 0;
	}

	.gbpg-popup__dialog {
		border-radius: 22px 22px 0 0;
		max-height: 88vh;
		max-height: 88dvh;
		max-width: 100%;
	}

	.gbpg-popup__content {
		padding: 0;
	}
}
