/* Unified floating buttons + panels. One stack, no overlap; positions from settings. */
.ob-fab-wrap {
	position: fixed;
	z-index: 99990;
	bottom: calc(var(--ob-fab-bottom, 24px) + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-family: inherit;
}
.ob-fab--right.ob-fab-wrap { right: var(--ob-fab-side, 24px); }
.ob-fab--left.ob-fab-wrap { left: var(--ob-fab-side, 24px); }

.ob-fab {
	all: unset;
	box-sizing: border-box;
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ob-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(16, 24, 40, .22);
}
.ob-fab .ob-icon { width: 24px; height: 24px; }
.ob-fab:hover { filter: brightness(.94); }
.ob-fab__count {
	position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 999px; background: #dc2626; color: #fff; font: 700 12px/22px system-ui, sans-serif; text-align: center;
	border: 2px solid #fff;
}
.ob-fab__count[hidden] { display: none; }

@media (max-width: 782px) {
	.ob-fab-wrap { bottom: calc(var(--ob-fab-bottom-m, 88px) + env(safe-area-inset-bottom, 0px)); flex-direction: row; }
	.ob-fab-m--right.ob-fab-wrap { right: 16px; left: auto; }
	.ob-fab-m--left.ob-fab-wrap { left: 16px; right: auto; }
	.ob-fab { width: 52px; height: 52px; }
}

/* Panels */
.ob-drawer {
	position: fixed;
	z-index: 100001;
	background: var(--ob-surface);
	color: var(--ob-text);
	box-shadow: 0 12px 40px rgba(16, 24, 40, .28);
	display: flex;
	flex-direction: column;
	font-size: 15px;
	line-height: 1.5;
}
.ob-drawer[hidden] { display: none; }
.ob-drawer--side { top: 0; right: 0; bottom: 0; width: min(440px, 100vw); }
.ob-drawer--panel { bottom: calc(var(--ob-fab-bottom, 24px) + 140px); width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); border-radius: var(--ob-radius); }
.ob-drawer--panel.ob-fab--right { right: 24px; }
.ob-drawer--panel.ob-fab--left { left: 24px; }
@media (max-width: 782px) {
	.ob-drawer--panel { left: 16px !important; right: 16px !important; width: auto; bottom: calc(var(--ob-fab-bottom-m, 88px) + 72px); }
}
.ob-drawer__head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 12px 18px; border-bottom: 1px solid var(--ob-border); }
.ob-drawer__title { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 650; color: var(--ob-text); }
.ob-drawer__body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.ob-drawer__body.ob-app { border: 0; }
.ob-drawer__foot { padding: 12px 16px; border-top: 1px solid var(--ob-border); }
.ob-drawer .ob-icon-btn { color: var(--ob-text); }
.ob-drawer .ob-card { box-shadow: none; padding: 14px; }

.ob-scrim { position: fixed; inset: 0; z-index: 100000; background: rgba(17, 24, 39, .45); }
.ob-scrim[hidden] { display: none; }

/* Bell as an icon in the site header (Appearance → Notification button). */
.ob-hbell-item { display: inline-flex; align-items: center; list-style: none; }
.ob-hbell {
	all: unset;
	box-sizing: border-box;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: inherit;
	cursor: pointer;
	border-radius: 50%;
}
.ob-hbell:hover { opacity: .8; }
.ob-hbell:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ob-hbell .ob-icon { width: 24px; height: 24px; }
.ob-hbell__count {
	position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: #dc2626; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center;
	box-sizing: border-box;
}
.ob-hbell__count[hidden] { display: none; }
.ob-drawer--panel.ob-drawer--drop { bottom: auto; max-height: min(70vh, 560px); }
@media (max-width: 782px) {
	.ob-drawer--panel.ob-drawer--drop { bottom: auto; }
}

@media (prefers-reduced-motion: reduce) { .ob-fab, .ob-drawer { transition: none !important; } }
