/* PEPTIDE.Power signup popup. Everything is scoped under .ppcro-signup. */
.ppcro-signup {
	--ppcro-signup-bg: #ffffff;
	--ppcro-signup-ink: #1d1d1f;
	--ppcro-signup-accent: #4D3094;
	--ppcro-signup-accent-2: #1BD1F8;
	--ppcro-signup-radius: 14px;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ppcro-signup-ink);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, visibility 0s linear .22s;
}
.ppcro-signup[hidden] { display: none; }
.ppcro-signup *,
.ppcro-signup *::before,
.ppcro-signup *::after { box-sizing: border-box; font-family: inherit; }
.ppcro-signup.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity .22s ease, visibility 0s;
}

.ppcro-signup__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .55);
}

.ppcro-signup__panel {
	position: relative;
	display: flex;
	width: min(560px, 92vw);
	max-height: 92vh;
	overflow: hidden;
	background: var(--ppcro-signup-bg);
	color: var(--ppcro-signup-ink);
	border-radius: var(--ppcro-signup-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	transform: translateY(12px) scale(.98);
	transition: transform .22s ease;
}
.ppcro-signup.is-open .ppcro-signup__panel { transform: none; }

.ppcro-signup__media {
	flex: 0 0 42%;
	position: relative;
	background: linear-gradient(160deg, #efeaf9 0%, #d9f6fd 100%);
}
.ppcro-signup__media img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 20% center;
	display: block;
	margin: 0;
	max-width: none;
}

.ppcro-signup__body {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	padding: 36px 28px 24px;
	overflow-y: auto;
}

.ppcro-signup__close {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 var(--ppcro-signup-radius) 0 0;
	background: transparent;
	color: var(--ppcro-signup-ink);
	font-size: 26px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
}
.ppcro-signup__close:hover { color: var(--ppcro-signup-accent); }
.ppcro-signup__close:focus-visible,
.ppcro-signup__notnow:focus-visible,
.ppcro-signup__submit:focus-visible,
.ppcro-signup__email:focus-visible,
.ppcro-signup__consent-input:focus-visible {
	outline: 2px solid var(--ppcro-signup-accent-2);
	outline-offset: 2px;
}

.ppcro-signup__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ppcro-signup-ink);
	text-transform: none;
}
.ppcro-signup__text {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--ppcro-signup-ink);
}

.ppcro-signup__form { margin: 0; padding: 0; }
.ppcro-signup__label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ppcro-signup-ink);
}
.ppcro-signup__email {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0 0 12px;
	padding: 0 12px;
	border: 1px solid #c9c9d1;
	border-radius: 8px;
	background: #fff;
	color: var(--ppcro-signup-ink);
	font-size: 16px;
	box-shadow: none;
}
.ppcro-signup__email:focus { border-color: var(--ppcro-signup-accent); }

.ppcro-signup__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 400;
	cursor: pointer;
}
.ppcro-signup__consent-input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--ppcro-signup-accent);
}
.ppcro-signup__consent a { color: inherit; text-decoration: underline; }

.ppcro-signup__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ppcro-signup__submit {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--ppcro-signup-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: opacity .2s ease, background-color .2s ease;
}
.ppcro-signup__submit:hover { opacity: .9; }
.ppcro-signup__submit[disabled] { opacity: .6; cursor: progress; }
.ppcro-signup.is-busy .ppcro-signup__submit { cursor: progress; }

.ppcro-signup__error {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #b3261e;
}
.ppcro-signup__error[hidden] { display: none; }

.ppcro-signup__notnow {
	display: block;
	min-height: 44px;
	margin: 8px auto 0;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	color: var(--ppcro-signup-ink);
	font-size: 13px;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
}
.ppcro-signup__notnow:hover { color: var(--ppcro-signup-accent); }

.ppcro-signup__success { padding: 24px 0 8px; text-align: left; }
.ppcro-signup__success[hidden] { display: none; }
.ppcro-signup__success-title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--ppcro-signup-accent);
}
.ppcro-signup__success-title:focus { outline: none; }
.ppcro-signup__success-text { margin: 0; font-size: 15px; }

.ppcro-signup.is-done .ppcro-signup__form,
.ppcro-signup.is-done .ppcro-signup__notnow,
.ppcro-signup.is-done .ppcro-signup__text,
.ppcro-signup.is-done .ppcro-signup__title { display: none; }

body.ppcro-signup-lock { overflow: hidden; }

/* The Octocom chat launcher (<chat-widget>, shadow DOM, own z-index) covers "Not now" on mobile: hide it while the popup is open. */
body:has(#ppcro-signup.is-open) chat-widget { display: none !important; }

@media (max-width: 767px) {
	.ppcro-signup {
		align-items: flex-end;
		justify-content: stretch;
	}
	.ppcro-signup__overlay { background: rgba(0, 0, 0, .25); }
	.ppcro-signup__panel {
		width: 100%;
		max-height: 85vh;
		border-radius: var(--ppcro-signup-radius) var(--ppcro-signup-radius) 0 0;
		transform: translateY(100%);
		transition: transform .25s ease;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
	}
	.ppcro-signup.is-open .ppcro-signup__panel { transform: none; }
	.ppcro-signup__media { display: none; }
	.ppcro-signup__body {
		padding: 24px 20px 16px;
		max-height: 85vh;
		-webkit-overflow-scrolling: touch;
	}
	.ppcro-signup__title { font-size: 21px; padding-right: 36px; }
	.ppcro-signup__submit { width: 100%; }
}

@media (min-width: 768px) {
	.ppcro-signup__panel { min-height: 420px; }
}

/*
 * Theme guard: the shop theme styles every <button> / [type=submit]
 * (grey background, uppercase, min-height, position). The ID scope wins
 * over those rules without !important.
 */
#ppcro-signup .ppcro-signup__close {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ppcro-signup-ink);
	font-size: 26px;
	font-weight: 400;
	line-height: 44px;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
}
#ppcro-signup .ppcro-signup__close:hover { color: var(--ppcro-signup-accent); background: transparent; }
#ppcro-signup .ppcro-signup__submit {
	min-height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--ppcro-signup-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
}
#ppcro-signup .ppcro-signup__submit:hover { background: var(--ppcro-signup-accent); color: #fff; opacity: .9; }
#ppcro-signup .ppcro-signup__notnow {
	min-height: 44px;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	color: var(--ppcro-signup-ink);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-decoration: underline;
	text-transform: none;
	box-shadow: none;
}
#ppcro-signup .ppcro-signup__notnow:hover { color: var(--ppcro-signup-accent); background: transparent; }
