.appifywp-bar {
	position: fixed;
	left: 12px;
	right: 12px;
	z-index: 999999;
	max-width: 520px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #fff;
	color: #1d2327;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .05);
	font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}
.appifywp-bar--bottom {
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	transform: translateY(24px);
}
.appifywp-bar--top {
	top: calc(12px + env(safe-area-inset-top, 0px));
	transform: translateY(-24px);
}
.appifywp-bar.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.appifywp-bar__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
}
.appifywp-bar__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.appifywp-bar__title {
	font-size: 15px;
	font-weight: 700;
}
.appifywp-bar__body {
	color: #50575e;
	font-size: 13px;
}
.appifywp-bar__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
}
.appifywp-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 10px;
	padding: 9px 16px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
}
.appifywp-btn--primary {
	background: var(--appifywp-color, #0d6efd);
	color: #fff;
}
.appifywp-btn--primary[disabled] {
	opacity: .6;
	cursor: default;
}
.appifywp-btn--ghost {
	background: transparent;
	color: #50575e;
}

.appifywp-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 1000000;
	transform: translate(-50%, 16px);
	background: #1d2327;
	color: #fff;
	padding: 11px 18px;
	border-radius: 999px;
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
	max-width: calc(100vw - 32px);
	text-align: center;
}
.appifywp-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.appifywp-offline {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000001;
	padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
	background: #b32d2e;
	color: #fff;
	text-align: center;
	font: 600 13px/1.4 system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	transform: translateY(-100%);
	transition: transform .3s ease, background .3s ease;
}
.appifywp-offline.is-visible { transform: translateY(0); }
.appifywp-offline.is-online { background: #1a7f37; }

@media (max-width: 420px) {
	.appifywp-bar { flex-wrap: wrap; }
	.appifywp-bar__actions { width: 100%; justify-content: flex-end; }
}

@media (prefers-color-scheme: dark) {
	.appifywp-bar { background: #1f2327; color: #f0f0f1; box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
	.appifywp-bar__body { color: #b8bcc2; }
	.appifywp-btn--ghost { color: #b8bcc2; }
	.appifywp-toast { background: #f0f0f1; color: #1d2327; }
}

@media (prefers-reduced-motion: reduce) {
	.appifywp-bar, .appifywp-toast, .appifywp-offline { transition: none; }
}
