.confirm-overlay {
	position: fixed;
	inset: 0;
	/* On iOS Safari, `inset: 0` on a fixed element sizes to the layout
	   viewport (as if the toolbar were hidden), not the visible one — the
	   overlay can end up taller than the screen and appear misaligned.
	   Matches the same fix already used in mega-menu.css. */
	height: 100dvh;
	z-index: 70;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.confirm-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.confirm-backdrop {
	position: absolute;
	inset: 0;
}

.confirm-box {
	position: relative;
	background: #fff;
	border: 1px solid #000;
	border-radius: 4px;
	padding: 32px;
	/* Hug the content's width instead of stretching — a max-width here
	   would clip against the title/buttons at the larger, --text-scale-
	   driven font sizes and force them to overflow the box. */
	width: fit-content;
	text-align: left;
}

.confirm-filename {
	font-size: var(--text-scale);
	font-weight: 400;
	letter-spacing: var(--text-ls);
	color: var(--color-dark);
	margin-bottom: 20px;
	word-break: break-word;
}

.confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.confirm-btn {
	font-size: var(--text-scale);
	font-weight: 400;
	letter-spacing: var(--text-ls);
	padding: 10px 20px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	transition: background 0.15s;
}

.confirm-cancel {
	background: transparent;
	color: var(--color-dark);
	border: 1px solid #ddd;
}

.confirm-cancel:hover {
	background: #f5f5f5;
}

.confirm-ok {
	background: var(--color-dark);
	color: #fff;
}

.confirm-ok:hover {
	background: var(--primary);
}
