/**
 * Security Ninja shared dialog styles.
 */

.sn-dialog-root--native {
	padding: 0;
	border: none;
	background: transparent;
	max-width: 100%;
	max-height: 100%;
}

.sn-dialog-root--native::backdrop {
	background: rgba(0, 0, 0, 0.45);
}

.sn-dialog-root--fallback {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100100;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.sn-dialog-root--fallback.is-open {
	display: flex;
}

.sn-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

body.sn-dialog-open {
	overflow: hidden;
}

.sn-dialog-panel {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	max-height: min(90vh, 720px);
	overflow: auto;
	margin: auto;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.sn-dialog-panel--large {
	max-width: 720px;
}

.sn-dialog-header {
	margin: 0 0 12px;
}

.sn-dialog-title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #1d2327;
}

.sn-dialog-body {
	margin: 0 0 18px;
}

.sn-dialog-message {
	margin: 0;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.sn-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
}

.sn-dialog-actions .button {
	margin: 0;
}

.sn-dialog-panel.is-danger .sn-dialog-btn-danger.button-primary,
.sn-dialog-btn-danger.button-primary {
	background: #d63638;
	border-color: #d63638;
}

.sn-dialog-panel.is-danger .sn-dialog-btn-danger.button-primary:hover,
.sn-dialog-panel.is-danger .sn-dialog-btn-danger.button-primary:focus,
.sn-dialog-btn-danger.button-primary:hover,
.sn-dialog-btn-danger.button-primary:focus {
	background: #b32d2e;
	border-color: #b32d2e;
}

.sn-dialog-root--native .sn-dialog-panel {
	margin: 0;
}
