
.ec-savegate {
	position: fixed;
	inset: 0;
	z-index: 2147482000;  
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--s-5, 24px);
	background: color-mix(in oklab, var(--wp--preset--color--ink) 55%, transparent);
}

.ec-savegate[hidden] {
	display: none;
}

.ec-savegate__panel {
	position: relative;
	width: min(470px, 100%);
	margin: auto;  
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--rule-light);
	padding: 34px 34px 30px;
}

.ec-savegate__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--wp--preset--color--smoke);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 20px;
	line-height: 1;
	transition: color 180ms ease;
}

.ec-savegate__close:hover {
	color: var(--wp--preset--color--ink);
}

.ec-savegate__close:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.ec-savegate__title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 500;
	font-size: 27px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	margin: 0 0 12px;
}

.ec-savegate__body {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-soft);
	margin: 0 0 22px;
	max-width: 38ch;
}

.ec-savegate__form {
	min-height: 300px;
}

.ec-savegate .auth-embed {
	border: 0;
	background: none;
	padding: 0;
	opacity: 0;
}

.ec-savegate__form.is-ready {
	min-height: 0;
}

.ec-savegate__form.is-ready .auth-embed {
	opacity: 1;
	transition: opacity 200ms ease-out;
}

.ec-savegate__wait {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 300;
	font-size: 14px;
	color: var(--wp--preset--color--smoke);
}

.ec-savegate__optin {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0 0;
	cursor: pointer;
}

.ec-savegate__optin[hidden],
.ec-savegate__note[hidden] {
	display: none;
}

.ec-savegate__optin .auth-optin__box {
	flex: none;
	width: 15px;
	height: 15px;
	margin: 3px 0 0;
	accent-color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.ec-savegate__optin .auth-optin__text,
.ec-savegate__note {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 300;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--wp--preset--color--smoke);
}

.ec-savegate__note {
	margin: 14px 0 0;
}

.ec-savegate__optin .auth-optin__text a,
.ec-savegate__note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--t-small, 200ms ease-out);
}

.ec-savegate__optin .auth-optin__text a:hover,
.ec-savegate__note a:hover {
	color: var(--wp--preset--color--ink);
}

.ec-savegate__alt {
	margin: 22px 0 0;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 300;
	font-size: 13px;
	line-height: 1.6;
	color: var(--wp--preset--color--smoke);
	text-align: center;
}

.ec-savegate__alt button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ec-savegate__alt button:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.ec-savegate__panel {
		animation: ec-savegate-in 220ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
	}
	@keyframes ec-savegate-in {
		from { opacity: 0; transform: translateY(8px); }
		to   { opacity: 1; transform: none; }
	}
}

@media (max-width: 480px) {
	.ec-savegate__panel { padding: 28px 22px 24px; }
	.ec-savegate__title { font-size: 24px; }
}

.o--Reset--scope .o--Widget--popupBg:not(.o--Widget--closed) {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--s-5, 24px);
}

.o--Reset--scope .o--Widget--popup {
	margin: auto;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.ec-confirm {
	position: fixed;
	inset: 0;
	z-index: 2147482100;  
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--s-5, 24px);
	background: color-mix(in oklab, var(--wp--preset--color--ink) 55%, transparent);
}

.ec-confirm[hidden] { display: none; }

.ec-confirm__panel {
	position: relative;
	width: min(390px, 100%);
	margin: auto;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--rule-light);
	padding: 30px 30px 26px;
}

.ec-confirm__title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	margin: 0 0 10px;
}

.ec-confirm__body {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 300;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-soft);
	margin: 0 0 24px;
}

.ec-confirm__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.ec-confirm__keep,
.ec-confirm__go {
	min-height: 44px;
	padding: 12px 22px;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ec-confirm__keep {
	background: transparent;
	border: 1px solid var(--wp--preset--color--rule-light);
	color: var(--wp--preset--color--ink);
}

.ec-confirm__keep:hover { border-color: var(--wp--preset--color--ink); }

.ec-confirm__go {
	background: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.ec-confirm__go:hover {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.ec-confirm__keep:focus-visible,
.ec-confirm__go:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.ec-confirm__panel {
		animation: ec-savegate-in 180ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
	}
}

@media (max-width: 480px) {
	.ec-confirm__panel { padding: 26px 22px 22px; }
	.ec-confirm__actions .ec-confirm__keep,
	.ec-confirm__actions .ec-confirm__go { flex: 1 1 auto; justify-content: center; }
}
