/* Bottom update toast — shown when a new service worker is ready */
.onduty-pwa-update {
	position: fixed;
	left: 50%;
	bottom: calc(var(--od-footer-height, 0px) + 16px + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(560px, calc(100vw - 24px));
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(0, 122, 255, 0.28);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.18);
	transform: translate(-50%, 120%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.onduty-pwa-update.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
	pointer-events: auto;
}

.onduty-pwa-update__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	color: #0f172a;
}

.onduty-pwa-update__btn {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	background: #007aff;
	box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
	transition: transform 0.15s ease, background 0.15s ease;
}

.onduty-pwa-update__btn:hover {
	background: #0066d6;
	transform: translateY(-1px);
}

.onduty-pwa-update__btn:focus-visible {
	outline: 2px solid #007aff;
	outline-offset: 2px;
}

.onduty-pwa-update__btn:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

html.onduty-theme-dark .onduty-pwa-update {
	background: rgba(22, 28, 38, 0.96);
	border-color: rgba(0, 122, 255, 0.45);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

html.onduty-theme-dark .onduty-pwa-update__text {
	color: #f1f5f9;
}

@media (max-width: 767px) {
	.onduty-pwa-update {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		bottom: calc(var(--od-footer-height, 0px) + 12px + env(safe-area-inset-bottom, 0px));
		padding: 14px;
	}

	.onduty-pwa-update__btn {
		width: 100%;
	}
}
