/* OMXR Pending Order Reminder pop-up. Colours follow the Sapa theme (--tb-theme-color). */

.omxr-pp {
	--pp-accent: var(--tb-theme-color, #ff6a25);
	--pp-accent-hover: var(--tb-theme-color-hover, #f26423);
	--pp-state: #d97706;
	position: fixed;
	z-index: 1040;
	right: 24px;
	bottom: 24px;
	width: 360px;
	max-width: calc(100vw - 24px);
	box-sizing: border-box;
	padding: 18px 18px 16px;
	border: 1px solid #ececf0;
	border-radius: 18px;
	background: #fff;
	color: #1b1b1f;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 2px 6px rgba(16, 16, 24, .06), 0 24px 48px -16px rgba(16, 16, 24, .3);
	opacity: 0;
	transform: translateY(24px) scale(.98);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.omxr-pp.is-in { opacity: 1; transform: none; }
.omxr-pp--failed { --pp-state: #dc2626; }
.omxr-pp *, .omxr-pp *::before { box-sizing: border-box; }

.omxr-pp-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b6b76;
	cursor: pointer;
}
.omxr-pp-close:hover { background: #f4f4f6; color: #1b1b1f; }

.omxr-pp-head { display: flex; align-items: center; gap: 8px; margin: 0 36px 12px 0; }
.omxr-pp-head strong { font-size: 15px; font-weight: 700; color: var(--pp-state); }
.omxr-pp-dot {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pp-state);
	flex: none;
}
.omxr-pp-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--pp-state);
	animation: omxr-pp-pulse 1.8s ease-out infinite;
}
@keyframes omxr-pp-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

.omxr-pp .omxr-pp-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 12px;
	background: #f7f7f9;
	color: inherit;
	text-decoration: none;
}
.omxr-pp-item img {
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 10px;
	object-fit: cover;
	background: #fff;
}
.omxr-pp-info { display: flex; flex-direction: column; min-width: 0; }
.omxr-pp-name {
	font-weight: 600;
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.omxr-pp-more { color: #6b6b76; font-weight: 500; font-size: 13px; }
.omxr-pp-meta { color: #6b6b76; font-size: 13px; }

.omxr-pp-note { margin: 12px 0 14px; color: #44444c; font-size: 13.5px; }
.omxr-pp-timer { color: var(--pp-state); font-weight: 600; }

.omxr-pp-actions,
.omxr-pp-confirm { display: flex; gap: 8px; }
.omxr-pp-actions[hidden],
.omxr-pp-confirm[hidden] { display: none; }
.omxr-pp-confirm { flex-wrap: wrap; align-items: center; }
.omxr-pp-confirm-q { flex: 1 0 100%; margin-bottom: 2px; font-weight: 600; }

.omxr-pp .omxr-pp-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.omxr-pp .omxr-pp-btn--pay { flex: 1.4; background: var(--pp-accent); color: #fff; }
.omxr-pp .omxr-pp-btn--pay:hover { background: var(--pp-accent-hover); color: #fff; }
.omxr-pp .omxr-pp-btn--ghost { background: #fff; border-color: #e2e2e8; color: #44444c; }
.omxr-pp .omxr-pp-btn--ghost:hover { border-color: #c9c9d1; color: #1b1b1f; }
.omxr-pp .omxr-pp-btn--danger { background: #dc2626; color: #fff; }
.omxr-pp .omxr-pp-btn--danger:hover { background: #b91c1c; color: #fff; }
.omxr-pp .omxr-pp-btn:focus-visible,
.omxr-pp-close:focus-visible,
.omxr-pp .omxr-pp-item:focus-visible { outline: 3px solid rgba(255, 106, 37, .45); outline-offset: 2px; }

/* tablets & phones: the Sapa theme shows a fixed bottom bar (Home/Shop/…) below 1200px */
@media (max-width: 1199px) {
	.omxr-pp {
		left: 12px;
		right: 12px;
		bottom: calc(72px + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-width: 480px;
		margin: 0 auto;
	}
}
@media (max-width: 380px) {
	.omxr-pp { padding: 16px 14px 14px; }
	.omxr-pp-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.omxr-pp { transition: opacity .2s; transform: none; }
	.omxr-pp-dot::after { animation: none; }
}
