/* Banana Pixels: نافذة الطلب السريع فوق الرئيسية. v2 */

.bpofm {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: rgba(11, 11, 11, .6);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.bpofm.is-on { opacity: 1; pointer-events: auto; }

.bpofm-box {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: #FFFDF5;
	transform: translateY(24px);
	transition: transform .26s cubic-bezier(.2,.7,.2,1);
}
.bpofm.is-on .bpofm-box { transform: none; }

.bpofm-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 6px 12px 6px 16px;
	padding-top: calc(6px + env(safe-area-inset-top, 0));
	background: #0B0B0B;
	color: #F5D74E;
	font-family: 'Tajawal', -apple-system, 'Segoe UI', sans-serif;
}
.bpofm-title { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpofm-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 40px;
	padding: 0 12px;
	background: #F5D74E;
	color: #0B0B0B;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 900;
	font-size: 14px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.bpofm-close:active { transform: scale(.96); }
.bpofm-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 3; fill: none; }

.bpofm iframe {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	border: 0;
	display: block;
	background: #FFFDF5;
}

body.bpofm-lock { position: fixed; width: 100%; overflow: hidden; }

@media (min-width: 760px) {
	.bpofm-box {
		inset: auto;
		top: 50%; left: 50%;
		transform: translate(-50%, -50%) translateY(24px);
		width: min(760px, calc(100vw - 48px));
		height: min(820px, calc(100dvh - 48px));
		border: 3px solid #0B0B0B;
		border-radius: 18px;
		overflow: hidden;
		box-shadow: 0 24px 60px rgba(11,11,11,.45);
	}
	.bpofm.is-on .bpofm-box { transform: translate(-50%, -50%); }
	.bpofm-bar { padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.bpofm, .bpofm-box { transition: none; }
}
