/* Confirmation dialog (admin/js/confirm.js) — the look of the plugin's other modals (.latwaitr-modal),
   self-contained so it works on every screen that loads it. */
.latwaitr-confirm {
	position: fixed;
	inset: 0;
	z-index: 160000; /* Above the block editor's own panels and WordPress modals. */
	background: rgba( 0, 0, 0, 0.7 );
	overflow: auto;
}

.latwaitr-confirm-box {
	position: relative;
	box-sizing: border-box;
	background: #fff;
	margin: 12vh auto 40px;
	width: 480px;
	max-width: calc( 100% - 32px );
	border-radius: 4px;
	box-shadow: 0 5px 15px rgba( 0, 0, 0, 0.3 );
	padding: 20px;
	color: #1d2327;
}

.latwaitr-confirm-box h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.latwaitr-confirm-text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-line; /* Messages may hold blank lines between paragraphs. */
}

.latwaitr-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.latwaitr-confirm-actions .button.latwaitr-confirm-danger {
	background: #d63638;
	border-color: #d63638;
	color: #fff;
}

.latwaitr-confirm-actions .button.latwaitr-confirm-danger:hover,
.latwaitr-confirm-actions .button.latwaitr-confirm-danger:focus {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff;
}

.latwaitr-confirm-actions .button.latwaitr-confirm-danger:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px #d63638;
}

/* Messages (latwaitrNotice) — WordPress's own notice, kept in view below the admin bar while the
   page scrolls, so a message after a click far down a list is still seen. */
.notice.latwaitr-notice:not(.inline) {
	position: sticky;
	top: 32px;
	z-index: 50;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.12 );
}

.notice.latwaitr-notice p {
	white-space: pre-line; /* Lists of failed items come one per line. */
}

@media screen and ( max-width: 782px ) {
	.notice.latwaitr-notice:not(.inline) {
		top: 46px;
	}
}

@media screen and ( max-width: 600px ) {
	/* The admin bar scrolls away with the page here. */
	.notice.latwaitr-notice:not(.inline) {
		top: 0;
	}
}
