.plasko-pwa-update[hidden] {
	display: none !important;
}

.plasko-pwa-update {
	position: fixed;
	inset-inline: 20px;
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(680px, calc(100% - 40px));
	margin-inline: auto;
	padding: 16px 18px;
	color: #fff;
	background: #042656;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(4, 38, 86, 0.24);
	direction: rtl;
}

.plasko-pwa-update__content {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.plasko-pwa-update__title {
	color: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

.plasko-pwa-update__description {
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	line-height: 1.7;
}

.plasko-pwa-update__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.plasko-pwa-update__button,
.plasko-pwa-update__dismiss {
	min-height: 42px;
	padding: 8px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	border-radius: 12px;
	cursor: pointer;
}

.plasko-pwa-update__button {
	color: #042656;
	background: #9ce76a;
	border: 1px solid #9ce76a;
}

.plasko-pwa-update__button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.plasko-pwa-update__dismiss {
	color: #fff;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.plasko-pwa-update__button:focus-visible,
.plasko-pwa-update__dismiss:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.plasko-pwa-update {
		inset-inline: 12px;
		bottom: max(12px, env(safe-area-inset-bottom));
		align-items: stretch;
		flex-direction: column;
		width: calc(100% - 24px);
		gap: 12px;
		padding: 14px;
		border-radius: 14px;
	}

	.plasko-pwa-update__actions {
		width: 100%;
	}

	.plasko-pwa-update__button {
		flex: 1;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.plasko-pwa-update:not([hidden]) {
		animation: plasko-pwa-update-enter 180ms ease-out both;
	}

	@keyframes plasko-pwa-update-enter {
		from {
			opacity: 0;
			transform: translateY(12px);
		}

		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}
