.qs-download-tray {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9998;
	font-family: inherit;
}

.qs-download-tray.hidden {
	display: none !important;
}

.qs-download-fab {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 0;
	background: #263238;
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
}

.qs-download-fab .material-icons {
	font-size: 25px;
}

.qs-download-fab.qs-download-fab--active .material-icons {
	animation: qs-download-pulse 1.3s ease-in-out infinite;
}

.qs-download-fab.qs-download-fab--bump {
	animation: qs-download-bump 0.42s ease-out;
}

.qs-download-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #1976d2;
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	padding: 0 5px;
	font-weight: 600;
}

.qs-download-count.hidden {
	display: none;
}

.qs-download-panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	width: min(360px, calc(100vw - 32px));
	max-height: 380px;
	overflow: auto;
	background: #fff;
	border: 1px solid #d8dee4;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	display: none;
}

.qs-download-tray.qs-download-tray--open .qs-download-panel {
	display: block;
}

.qs-download-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #eef1f4;
	font-weight: 600;
	color: #263238;
}

.qs-download-empty {
	padding: 18px 14px;
	color: #6b7280;
	font-size: 13px;
}

.qs-download-job {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 10px;
	padding: 12px 14px;
	border-bottom: 1px solid #eef1f4;
	align-items: center;
}

.qs-download-job:last-child {
	border-bottom: 0;
}

.qs-download-title {
	color: #263238;
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.qs-download-meta {
	color: #6b7280;
	font-size: 12px;
}

.qs-download-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	grid-row: span 2;
}

.qs-download-action {
	border: 0;
	background: transparent;
	color: #455a64;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.qs-download-action:hover {
	background: #eef3f7;
}

.qs-download-action .material-icons {
	font-size: 19px;
}

.qs-download-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #cfd8dc;
	border-top-color: #1976d2;
	animation: qs-download-spin 0.9s linear infinite;
}

.qs-download-source-loading {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

.qs-download-source-spinner {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	display: inline-block;
	animation: qs-download-spin 0.8s linear infinite;
}

.qs-download-flyer {
	position: fixed;
	z-index: 10000;
	border-radius: 50%;
	background: #263238;
	color: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition:
		left 1.65s cubic-bezier(0.65, 0, 0.35, 1),
		top 1.65s cubic-bezier(0.65, 0, 0.35, 1),
		width 1.65s cubic-bezier(0.65, 0, 0.35, 1),
		height 1.65s cubic-bezier(0.65, 0, 0.35, 1),
		transform 1.65s cubic-bezier(0.65, 0, 0.35, 1),
		opacity 1.65s ease-in-out;
}

.qs-download-flyer .material-icons {
	font-size: 22px;
}

.qs-download-flyer.qs-download-flyer--land {
	transform: scale(0.92);
	opacity: 0.94;
}

@keyframes qs-download-spin {
	to { transform: rotate(360deg); }
}

@keyframes qs-download-pulse {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

@keyframes qs-download-bump {
	0% { transform: scale(1); }
	45% { transform: scale(1.16); }
	100% { transform: scale(1); }
}
