/* BB Popup — a MacSzerez fekete/fehér, letisztult arculatához igazítva.
   A betűtípust szándékosan az oldaltól örökli, hogy ne lógjon ki. */

.bbwsp-root {
	--bbwsp-accent: #111111;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	font-family: inherit;
}

.bbwsp-root[hidden] {
	display: none;
}

.bbwsp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 14, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.bbwsp-pop {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #fff;
	color: #16181d;
	border-radius: 20px;
	padding: 34px 32px 30px;
	box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.bbwsp-root.is-open .bbwsp-backdrop {
	opacity: 1;
}

.bbwsp-root.is-open .bbwsp-pop {
	opacity: 1;
	transform: none;
}

.bbwsp-pop__title {
	margin: 0 0 12px;
	font-size: 25px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: #0f1114;
}

.bbwsp-pop__body {
	font-size: 15px;
	line-height: 1.62;
	color: #4a4f57;
}

.bbwsp-pop__body p {
	margin: 0 0 11px;
}

.bbwsp-pop__body p:last-child {
	margin-bottom: 0;
}

.bbwsp-pop__body a {
	color: var(--bbwsp-accent);
	text-decoration: underline;
}

.bbwsp-pop__btn {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 22px;
	border-radius: 12px;
	background: var(--bbwsp-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.bbwsp-pop__btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

/* Bezárás gomb — a szorzójel CSS-ből, nem karakterből, hogy minden betűtípussal egyforma legyen. */
.bbwsp-pop__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f2f2f4;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bbwsp-pop__close:hover {
	background: #e6e6e9;
}

.bbwsp-pop__close > span {
	position: relative;
	display: block;
	width: 12px;
	height: 12px;
}

.bbwsp-pop__close > span::before,
.bbwsp-pop__close > span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1.7px;
	background: #6b6f77;
	border-radius: 2px;
}

.bbwsp-pop__close > span::before {
	transform: rotate(45deg);
}

.bbwsp-pop__close > span::after {
	transform: rotate(-45deg);
}

/* Alul, sarokban */
.bbwsp-root--bottom {
	align-items: flex-end;
	justify-content: flex-end;
	pointer-events: none;
	padding: 20px;
}

.bbwsp-root--bottom .bbwsp-backdrop {
	display: none;
}

.bbwsp-root--bottom .bbwsp-pop {
	pointer-events: auto;
	max-width: 380px;
	padding: 26px 26px 24px;
	border: 1px solid #ececee;
	transform: translateY(18px);
}

.bbwsp-root--bottom .bbwsp-pop__title {
	font-size: 20px;
}

.bbwsp-root--bottom .bbwsp-pop__body {
	font-size: 14px;
}

@media (max-width: 520px) {
	.bbwsp-root {
		padding: 16px;
	}

	.bbwsp-pop {
		padding: 28px 22px 24px;
		border-radius: 18px;
	}

	.bbwsp-pop__title {
		font-size: 21px;
	}

	.bbwsp-root--bottom {
		padding: 12px;
	}

	.bbwsp-root--bottom .bbwsp-pop {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bbwsp-backdrop,
	.bbwsp-pop {
		transition: none;
	}
}
