.ispp-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

html.ispp-open,
html.ispp-open body {
	overflow: hidden;
}

.ispp-dialog {
	width: min(1180px, calc(100vw - 40px));
	height: min(900px, calc(100dvh - 40px));
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: transparent;
	box-shadow: 0 28px 80px rgb(10 20 38 / 32%);
	color: #162544;
	overflow: visible;
}

.ispp-dialog::backdrop {
	background: rgb(23 29 39 / 74%);
	backdrop-filter: blur(2px);
}

.ispp-shell {
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	width: 100%;
	height: 100%;
	border: 1px solid #dce2eb;
	border-radius: inherit;
	background: #fff;
	overflow: hidden;
}

.ispp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-width: 0;
	padding: 20px 24px 18px;
	border-bottom: 1px solid #e2e7ee;
}

.ispp-title {
	min-width: 0;
	margin: 0;
	color: #142342;
	font: 750 clamp(1.05rem, 1.7vw, 1.45rem) / 1.25 "Inter", "Public Sans", Arial, sans-serif;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ispp-heading {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.ispp-document-picker {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: #59667c;
	font: 650 0.78rem / 1.2 "Inter", "Public Sans", Arial, sans-serif;
}

.ispp-document-picker[hidden] {
	display: none;
}

.ispp-document-picker select {
	max-width: min(440px, 36vw);
	height: 38px;
	padding: 6px 34px 6px 10px;
	border: 1px solid #cdd5e1;
	border-radius: 7px;
	background-color: #fff;
	color: #172642;
	font: 650 0.82rem / 1.2 "Inter", "Public Sans", Arial, sans-serif;
}

.ispp-close,
.ispp-tool,
.ispp-footer-button,
.ispp-secondary-button {
	-webkit-appearance: none;
	appearance: none;
	font-family: "Inter", "Public Sans", Arial, sans-serif;
}

.ispp-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #142342;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.ispp-close:hover {
	background: #f1f4f8;
}

.ispp-close.ispp-button--text-only {
	width: auto;
	padding-inline: 12px;
}

.ispp-close svg,
.ispp-tool svg,
.ispp-footer-button svg {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.ispp-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 10px 16px;
	border-bottom: 1px solid #dce2eb;
	background: #f4f6f9;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.ispp-toolbar__group {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
}

.ispp-toolbar__group--actions {
	margin-inline-start: auto;
}

.ispp-toolbar__separator {
	flex: 0 0 1px;
	align-self: stretch;
	min-height: 30px;
	background: #d7dde7;
}

.ispp-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: #1a2948;
	font-size: 0.83rem;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.ispp-tool:hover:not(:disabled) {
	border-color: #d5dce6;
	background: #fff;
	color: #0f1e3d;
	text-decoration: none;
}

.ispp-tool:disabled,
.ispp-footer-button:disabled {
	opacity: 0.42;
	cursor: not-allowed;
}

.ispp-icon-button {
	width: 40px;
	padding: 8px;
}

.ispp-page {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding-inline: 5px;
	color: #536079;
	font: 650 0.86rem / 1 "Inter", "Public Sans", Arial, sans-serif;
}

.ispp-page input {
	width: 54px;
	height: 36px;
	padding: 6px;
	border: 1px solid #cdd5e1;
	border-radius: 6px;
	background: #fff;
	color: #172642;
	font: inherit;
	text-align: center;
	-moz-appearance: textfield;
}

.ispp-page input::-webkit-inner-spin-button,
.ispp-page input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ispp-scale {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	height: 36px;
	padding-inline: 7px;
	color: #273652;
	font: 700 0.84rem / 1 "Inter", "Public Sans", Arial, sans-serif;
}

.ispp-stage {
	position: relative;
	min-width: 0;
	min-height: 0;
	background: #e8ebf0;
	overflow: hidden;
}

.ispp-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #e8ebf0;
	opacity: 0;
	transition: opacity 180ms ease;
}

.ispp-stage.is-ready .ispp-frame {
	opacity: 1;
}

.ispp-status,
.ispp-error {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	background: #eef1f5;
	color: #4d5a70;
	font: 650 0.95rem / 1.5 "Inter", "Public Sans", Arial, sans-serif;
	text-align: center;
}

.ispp-stage.is-ready .ispp-status,
.ispp-status[hidden],
.ispp-error[hidden] {
	display: none;
}

.ispp-error strong {
	color: #172642;
	font-size: 1.1rem;
}

.ispp-error p {
	max-width: 520px;
	margin: 0;
}

.ispp-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #cbd3df;
	border-top-color: #b37a18;
	border-radius: 50%;
	animation: ispp-spin 800ms linear infinite;
}

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

.ispp-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 14px 20px;
	border-top: 1px solid #e1e6ed;
	background: #fff;
}

.ispp-footer-button,
.ispp-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #cbd4e0;
	border-radius: 7px;
	background: #fff;
	color: #172642;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.ispp-footer-button--primary {
	border-color: #b67d1c;
	background: #b67d1c;
	color: #fff;
}

.ispp-footer-button:hover,
.ispp-secondary-button:hover {
	border-color: #aeb9c8;
	background: #f5f7fa;
	color: #111f3b;
	text-decoration: none;
}

.ispp-footer-button--primary:hover {
	border-color: #956414;
	background: #956414;
	color: #fff;
}

.ispp-close:focus-visible,
.ispp-tool:focus-visible,
.ispp-page input:focus-visible,
.ispp-document-picker select:focus-visible,
.ispp-footer-button:focus-visible,
.ispp-secondary-button:focus-visible {
	outline: 3px solid rgb(41 104 173 / 35%);
	outline-offset: 2px;
}

.ispp-shell:fullscreen {
	width: 100vw;
	height: 100dvh;
	border: 0;
	border-radius: 0;
}

@media (max-width: 820px) {
	.ispp-dialog {
		width: calc(100vw - 20px);
		height: calc(100dvh - 20px);
		border-radius: 10px;
	}

	.ispp-header {
		padding: 14px 16px;
	}

	.ispp-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.ispp-document-picker select {
		max-width: min(560px, calc(100vw - 100px));
	}

	.ispp-toolbar {
		gap: 8px;
		padding-inline: 10px;
	}

	.ispp-toolbar__group--actions {
		margin-inline-start: 0;
	}

	.ispp-footer {
		padding: 10px;
	}
}

@media (max-width: 560px) {
	.ispp-dialog {
		width: 100vw;
		height: 100dvh;
		border-radius: 0;
	}

	.ispp-shell {
		border: 0;
	}

	.ispp-title {
		font-size: 1rem;
	}

	.ispp-document-picker > span {
		display: none;
	}

	.ispp-document-picker select {
		max-width: calc(100vw - 84px);
	}

	.ispp-tool,
	.ispp-icon-button {
		min-height: 44px;
	}

	.ispp-tool--labeled span:not(.kadence-svg-iconset) {
		display: none;
	}

	.ispp-tool--labeled {
		width: 44px;
		padding: 10px;
	}

	.ispp-footer {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ispp-footer-button {
		padding-inline: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ispp-close,
	.ispp-tool,
	.ispp-frame,
	.ispp-footer-button,
	.ispp-secondary-button {
		transition: none;
	}

	.ispp-spinner {
		animation-duration: 1.6s;
	}
}
