html.nish-sa-popup-open {
	overflow: hidden;
}

.nish-sa-popup,
.nish-sa-popup * {
	box-sizing: border-box;
}

.nish-sa-popup {
	--sa-accent: #cc0055;
	--sa-button: #ad0049;
	--sa-paper: #fffaf8;
	--sa-ink: #2a2025;
	--sa-gutter: 34px;
	position: fixed;
	inset: 0;
	width: min(556px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid #e6b3c7;
	border-top: 3px solid var(--sa-accent);
	border-radius: 24px;
	background: var(--sa-paper);
	color: var(--sa-ink);
	box-shadow: 0 18px 52px #12071066;
	font: 400 16px/1.5 "DM Sans", "Segoe UI", sans-serif;
	letter-spacing: normal;
	text-align: start;
}

.nish-sa-popup:not([open]),
.nish-sa-popup [hidden],
#nish-sa-popup-settings [hidden] {
	display: none !important;
}

.nish-sa-popup[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
}

.nish-sa-popup::backdrop {
	background: rgb(20 15 22 / 66%);
}

.nish-sa-popup__header {
	position: relative;
	padding: 24px var(--sa-gutter) 17px;
	background: radial-gradient(ellipse at 50% 0, #f8e3eb, var(--sa-paper) 74%);
	text-align: center;
}

.nish-sa-popup__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 11px;
	border: 1px solid #e2a8be;
	border-radius: 50%;
	background: #fff5f8;
	color: var(--sa-button);
	font: 400 26px/1 "Segoe UI Symbol", "Apple Symbols", sans-serif;
}

.nish-sa-popup__icon span {
	transform: rotate(-29deg);
}

.nish-sa-popup__icon::after {
	position: absolute;
	inset: -1px;
	border: 2px solid var(--sa-accent);
	border-radius: 50%;
	content: "";
	opacity: 0;
	pointer-events: none;
}

.nish-sa-popup[open] .nish-sa-popup__icon::after {
	animation: nish-sa-popup-pulse 1.1s ease-out 6;
}

@keyframes nish-sa-popup-pulse {
	0% { opacity: 0; transform: scale(1); }
	15% { opacity: .82; }
	90%, 100% { opacity: 0; transform: scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
	.nish-sa-popup[open] .nish-sa-popup__icon::after {
		animation: none;
	}
}

.nish-sa-popup__brand {
	margin: 0 0 7px;
	color: #89465e;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .25em;
	text-transform: uppercase;
}

.nish-sa-popup .nish-sa-popup__title {
	max-width: 390px;
	margin: 0 auto;
	color: var(--sa-ink);
	font: 400 clamp(28px, 7vw, 41px)/1.08 Georgia, serif;
	letter-spacing: -.036em;
	text-transform: none;
	overflow-wrap: anywhere;
}

.nish-sa-popup__copy {
	min-height: 0;
	padding: 0 var(--sa-gutter);
	overflow: auto;
	overscroll-behavior: contain;
	color: #3d3037;
	overflow-wrap: anywhere;
	white-space: normal;
}

.nish-sa-popup__copy > [data-sa-text] {
	white-space: pre-wrap;
}

.nish-sa-popup__copy > [data-sa-text]:not([hidden]) ~ [data-sa-text]:not([hidden]) {
	margin-top: 11px;
}

.nish-sa-popup__callout {
	padding: 10px 12px;
	border-inline-start: 2px solid var(--sa-accent);
	border-radius: 0 8px 8px 0;
	background: #f9eaf0;
	color: #432933;
	font-weight: 700;
}

.nish-sa-popup__actions {
	padding: 15px var(--sa-gutter) 19px;
}

.nish-sa-popup .nish-sa-popup__button,
.nish-sa-popup .nish-sa-popup__close {
	appearance: none;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	cursor: pointer;
}

.nish-sa-popup .nish-sa-popup__button {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 0;
	border-radius: 10px;
	background: var(--sa-button);
	color: #fff;
	font: 700 15px/1.25 "DM Sans", "Segoe UI", sans-serif;
	letter-spacing: normal;
	overflow-wrap: anywhere;
}

.nish-sa-popup .nish-sa-popup__button:hover {
	background: #93003e;
	color: #fff;
}

.nish-sa-popup .nish-sa-popup__close {
	position: absolute;
	z-index: 1;
	top: 9px;
	inset-inline-end: 9px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #633f4d;
	font: 400 26px/1 "Segoe UI", sans-serif;
}

.nish-sa-popup .nish-sa-popup__close:hover {
	background: #f9eaf0;
	color: #633f4d;
}

.nish-sa-popup button:focus-visible,
.nish-sa-popup__copy:focus-visible {
	outline: 2px solid #7d0036;
	outline-offset: -3px;
}

.nish-sa-admin-pages {
	width: min(100%, 460px);
	max-height: 240px;
	padding: 8px 12px;
	overflow: auto;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
}

.nish-sa-admin-pages label {
	display: block;
	padding: 5px 0;
}

@media (max-width: 649px) {
	.nish-sa-popup {
		--sa-gutter: 20px;
		inset: auto 0 max(13px, env(safe-area-inset-bottom)) 0;
		width: calc(100% - 26px);
		max-height: calc(100vh - 28px);
		max-height: calc(100dvh - max(13px, env(safe-area-inset-bottom)) - 13px);
		margin: 0 auto;
		font-size: 15px;
		line-height: 1.42;
	}

	.nish-sa-popup__header {
		padding-block: 16px 12px;
	}

	.nish-sa-popup__icon {
		width: 44px;
		height: 44px;
		margin-bottom: 8px;
		font-size: 23px;
	}

	.nish-sa-popup .nish-sa-popup__title {
		max-width: 310px;
		font-size: clamp(25px, 7vw, 34px);
	}

	.nish-sa-popup__callout {
		padding: 8px 11px;
	}

	.nish-sa-popup__actions {
		padding-block: 12px 14px;
	}
}

@media (max-width: 360px) {
	.nish-sa-popup {
		--sa-gutter: 16px;
		width: calc(100% - 20px);
	}
}

@media (max-height: 640px) {
	.nish-sa-popup__header {
		padding-top: 13px;
		padding-bottom: 11px;
	}

	.nish-sa-popup__icon {
		width: 40px;
		height: 40px;
		margin-bottom: 7px;
		font-size: 21px;
	}

	.nish-sa-popup__actions {
		padding-block: 10px;
	}
}
