:root {
	--pp-scg-purple: #4b0b72;
	--pp-scg-purple-dark: #2f0649;
	--pp-scg-purple-light: #7c3da0;
	--pp-scg-ink: #21152b;
}

.pp-scg-checkout-disabled,
.pp-scg-checkout-disabled:hover,
.pp-scg-checkout-disabled:focus {
	background: #9b9b9b !important;
	border-color: #9b9b9b !important;
	color: #fff !important;
	cursor: not-allowed !important;
	opacity: .65;
}

.pp-scg-checking { cursor: wait !important; opacity: .75; }
.pp-scg-modal[hidden] { display: none !important; }

.pp-scg-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(16px, 4vw, 40px);
}

.pp-scg-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 10, 34, .64);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	animation: pp-scg-fade-in .22s ease-out both;
}

.pp-scg-dialog {
	position: relative;
	box-sizing: border-box;
	width: min(590px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	padding: 46px 48px 38px;
	border: 1px solid rgba(75, 11, 114, .12);
	border-radius: 20px;
	background: linear-gradient(145deg, #fff 0%, #fff 68%, #faf7fc 100%);
	box-shadow: 0 28px 90px rgba(25, 10, 34, .34), 0 8px 24px rgba(75, 11, 114, .16);
	color: var(--pp-scg-ink);
	text-align: center;
	animation: pp-scg-rise-in .3s cubic-bezier(.2, .75, .3, 1) both;
}

.pp-scg-accent {
	position: absolute;
	top: 0;
	left: 26px;
	right: 26px;
	height: 5px;
	border-radius: 0 0 10px 10px;
	background: linear-gradient(90deg, var(--pp-scg-purple-dark), var(--pp-scg-purple-light), #b189c9);
}

.pp-scg-x {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #e8ddef;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(75, 11, 114, .08);
	color: var(--pp-scg-purple);
	font: 400 27px/1 Arial, sans-serif;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.pp-scg-x:hover,
.pp-scg-x:focus-visible {
	background: var(--pp-scg-purple);
	color: #fff;
	transform: rotate(4deg);
	outline: none;
}

.pp-scg-icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 22px;
	border: 1px solid #e7d9ef;
	border-radius: 22px;
	background: linear-gradient(145deg, #fbf8fd, #efe3f6);
	box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(75, 11, 114, .12);
}

.pp-scg-icon svg {
	width: 39px;
	height: 39px;
	fill: none;
	stroke: var(--pp-scg-purple);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pp-scg-eyebrow {
	display: block;
	margin-bottom: 10px;
	color: var(--pp-scg-purple-light);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .15em;
	line-height: 1.35;
}

.pp-scg-dialog h2 {
	margin: 0 28px 15px;
	color: var(--pp-scg-purple-dark);
	font-size: clamp(25px, 4vw, 32px);
	font-weight: 750;
	letter-spacing: -.025em;
	line-height: 1.18;
}

.pp-scg-message {
	max-width: 475px;
	margin: 0 auto;
	color: #4e4057;
	font-size: 16px;
	line-height: 1.7;
}

.pp-scg-quote-link {
	position: relative;
	display: inline;
	color: var(--pp-scg-purple);
	font-weight: 750;
	text-decoration-line: underline;
	text-decoration-color: #b999ca;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color .18s ease, text-decoration-color .18s ease;
}

.pp-scg-quote-link:hover,
.pp-scg-quote-link:focus-visible {
	color: var(--pp-scg-purple-dark);
	text-decoration-color: var(--pp-scg-purple-dark);
	outline: 2px solid #d7c0e4;
	outline-offset: 3px;
	border-radius: 2px;
}

.pp-scg-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #eee5f3;
}

.pp-scg-close,
.pp-scg-continue {
	box-sizing: border-box;
	min-width: 168px;
	min-height: 48px;
	padding: 13px 24px;
	border: 2px solid var(--pp-scg-purple);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 750;
	line-height: 18px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.pp-scg-close {
	background: var(--pp-scg-purple);
	box-shadow: 0 8px 20px rgba(75, 11, 114, .2);
	color: #fff;
}

.pp-scg-continue { background: #fff; color: var(--pp-scg-purple); }
.pp-scg-close:hover,
.pp-scg-close:focus-visible,
.pp-scg-continue:hover,
.pp-scg-continue:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(75, 11, 114, .24);
	outline: none;
}

.pp-scg-modal-open { overflow: hidden; }

@keyframes pp-scg-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes pp-scg-rise-in {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
	.pp-scg-modal { padding: 14px; }
	.pp-scg-dialog {
		width: 100%;
		max-height: calc(100dvh - 28px);
		padding: 38px 22px 24px;
		border-radius: 16px;
	}
	.pp-scg-accent { left: 18px; right: 18px; }
	.pp-scg-x { top: 12px; right: 12px; width: 38px; height: 38px; }
	.pp-scg-icon { width: 66px; height: 66px; margin-bottom: 18px; border-radius: 19px; }
	.pp-scg-icon svg { width: 34px; height: 34px; }
	.pp-scg-dialog h2 { margin-right: 10px; margin-left: 10px; font-size: 25px; }
	.pp-scg-message { font-size: 15px; line-height: 1.62; }
	.pp-scg-actions { margin-top: 22px; padding-top: 20px; }
	.pp-scg-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.pp-scg-backdrop,
	.pp-scg-dialog { animation: none; }
	.pp-scg-x,
	.pp-scg-close,
	.pp-scg-continue,
	.pp-scg-quote-link { transition: none; }
}
