/* 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 (also outside the plugin's own screens,
   where admin.css and its tokens are not loaded). */
.latwaitr-confirm {
	position: fixed;
	inset: 0;
	z-index: 160000; /* Above the block editor's own panels and WordPress modals. */
	background: rgba( 10, 10, 11, 0.5 );
	-webkit-backdrop-filter: blur( 3px );
	backdrop-filter: blur( 3px );
	overflow: auto;
	animation: latwaitr-confirm-fade 0.2s ease both;
}

.latwaitr-confirm-box {
	position: relative;
	box-sizing: border-box;
	background: #fff;
	margin: 14vh auto 40px;
	width: 460px;
	max-width: calc( 100% - 32px );
	border: 1px solid rgba( 10, 10, 11, 0.09 );
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba( 10, 10, 11, 0.28 );
	padding: 24px;
	color: #27272A;
	font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	animation: latwaitr-confirm-rise 0.25s cubic-bezier( 0.2, 0.7, 0.2, 1 ) both;
}

.latwaitr-confirm-box h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #0A0A0B;
}

.latwaitr-confirm-text {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	color: #52525B;
	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 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid rgba( 10, 10, 11, 0.16 );
	border-radius: 8px;
	background: #fff;
	color: #0A0A0B;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: 0 1px 0 rgba( 10, 10, 11, 0.04 );
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.latwaitr-confirm-actions .button:hover {
	background: #FAFAFA;
	border-color: rgba( 10, 10, 11, 0.26 );
	color: #0A0A0B;
	transform: translateY( -1px );
}

.latwaitr-confirm-actions .button:active {
	transform: scale( 0.97 );
}

.latwaitr-confirm-actions .button:focus {
	border-color: #006FEE;
	box-shadow: 0 0 0 3px rgba( 0, 111, 238, 0.22 );
	outline: 0;
}

.latwaitr-confirm-actions .button.button-primary {
	background: #006FEE;
	border-color: #006FEE;
	color: #fff;
}

.latwaitr-confirm-actions .button.button-primary:hover {
	background: #1A80FF;
	border-color: #1A80FF;
	color: #fff;
	box-shadow: 0 6px 16px rgba( 0, 111, 238, 0.28 );
}

.latwaitr-confirm-actions .button.button-primary:focus {
	color: #fff;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #006FEE;
}

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

.latwaitr-confirm-actions .button.latwaitr-confirm-danger:hover,
.latwaitr-confirm-actions .button.latwaitr-confirm-danger:focus {
	background: #B91C1C;
	border-color: #B91C1C;
	color: #fff;
	box-shadow: 0 6px 16px rgba( 220, 38, 38, 0.25 );
}

.latwaitr-confirm-actions .button.latwaitr-confirm-danger:focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #DC2626;
}

@keyframes latwaitr-confirm-fade {
	from { opacity: 0; }
}

@keyframes latwaitr-confirm-rise {
	from { opacity: 0; transform: translateY( 8px ) scale( 0.99 ); }
}

@media ( prefers-reduced-motion: reduce ) {
	.latwaitr-confirm,
	.latwaitr-confirm-box,
	.latwaitr-confirm-actions .button {
		animation: none;
		transition: none;
	}
	.latwaitr-confirm-actions .button:hover {
		transform: none;
	}
}

/* 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 8px 24px rgba( 10, 10, 11, 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;
	}
}
