/**
 * Ad Creatives customer signup popup — same chrome as /partners/.
 */

html.o30-modal-open,
html.o30-modal-open body {
	overflow: hidden;
}
html.o30-modal-open body {
	padding-right: var(--o30-scroll-gap, 0px);
}
html.o30-modal-open .o30v3-header-fixed,
html.o30-modal-open .o30v3-bar {
	right: var(--o30-scroll-gap, 0px) !important;
}

.o30pt.o30ads-modal {
	--pt-accent: #E6FF8A;
	--pt-ink: #161513;
	--pt-muted: #5c574e;
	--pt-soft: #8a857c;
	--pt-line: #ece8e0;
	--pt-paper: #FBFAF7;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	position: fixed;
	inset: 0;
	z-index: 10080;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: transparent;
	color: var(--pt-ink);
	-webkit-font-smoothing: antialiased;
}
.o30pt.o30ads-modal[hidden] { display: none; }
.o30pt.o30ads-modal *,
.o30pt.o30ads-modal *::before,
.o30pt.o30ads-modal *::after { box-sizing: border-box; }

.o30ads-modal .px-modal__back {
	position: absolute;
	inset: 0;
	background: rgba(22, 21, 19, .72);
	opacity: 0;
	transition: opacity .18s ease;
}
.o30ads-modal.is-open .px-modal__back { opacity: 1; }

.o30ads-modal .px-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid #ece8e0;
	border-radius: 24px;
	padding: 32px 32px 28px;
	box-shadow: 0 24px 56px -32px rgba(22, 21, 19, .28);
	outline: none;
	opacity: 0;
	transform: translateY(14px) scale(.985);
	transition: opacity .2s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.o30ads-modal.is-open .px-modal__dialog {
	opacity: 1;
	transform: none;
}

.o30ads-modal .px-modal__x {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--pt-line);
	background: #fff;
	color: var(--pt-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.o30ads-modal .px-modal__x:hover { color: var(--pt-ink); border-color: #cfcabf; }

.o30ads-modal .px-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 44px 14px 0;
}
.o30ads-modal .px-modal__eyebrow {
	font-family: 'Inter', monospace;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--pt-soft);
}
.o30ads-modal .px-modal__progress { display: inline-flex; gap: 6px; }
.o30ads-modal .px-modal__progress i {
	display: block;
	width: 22px;
	height: 6px;
	border-radius: 999px;
	background: var(--pt-line);
}
.o30ads-modal .px-modal__progress i.is-on { background: var(--pt-ink); }

.o30ads-modal .px-modal__title {
	font-weight: 800;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -.025em;
	margin: 0 0 10px;
}
.o30ads-modal .px-modal__sub {
	font-size: 15px;
	line-height: 1.55;
	color: var(--pt-muted);
	margin: 0 0 20px;
}
.o30ads-modal .px-modal__sub b {
	color: var(--pt-ink);
	font-weight: 800;
	word-break: break-word;
}

.o30ads-modal .pt-join {
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}
.o30ads-modal .pt-join__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.o30ads-modal .pt-join label,
.o30ads-modal .pt-apply__full {
	display: block;
	margin-bottom: 16px;
}
.o30pt.o30ads-modal.px-modal .px-qualify .pt-apply__full:first-of-type {
	padding-top: 7px;
}
.o30ads-modal .pt-join label span,
.o30ads-modal .pt-apply__full span {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 6px;
}
.o30ads-modal .pt-join input,
.o30ads-modal .pt-join select,
.o30ads-modal .pt-join textarea {
	width: 100%;
	min-height: 46px;
	border: 1px solid #ece8e0;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 16px;
	font-family: inherit;
	color: var(--pt-ink);
	background: var(--pt-paper);
}
.o30ads-modal .pt-join input:focus,
.o30ads-modal .pt-join select:focus,
.o30ads-modal .pt-join textarea:focus {
	outline: 2px solid var(--pt-ink);
	outline-offset: 1px;
	background: var(--pt-paper);
}
.o30ads-modal .pt-join input:-webkit-autofill,
.o30ads-modal .pt-join input:-webkit-autofill:hover,
.o30ads-modal .pt-join input:-webkit-autofill:focus,
.o30ads-modal .pt-join input:-webkit-autofill:active,
.o30ads-modal .pt-join input:autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--pt-paper) inset !important;
	box-shadow: 0 0 0 1000px var(--pt-paper) inset !important;
	-webkit-text-fill-color: var(--pt-ink) !important;
	caret-color: var(--pt-ink);
	transition: background-color 99999s ease-out 0s;
}
.o30ads-modal .pt-join textarea { resize: vertical; min-height: 72px; }

.o30ads-modal .pt-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	font-weight: 800;
	padding: 15px 28px;
	border-radius: 11px;
	line-height: 1.2;
	min-height: 52px;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	margin-top: 4px;
	background: var(--pt-accent);
	color: var(--pt-ink);
	box-shadow: 0 12px 28px -12px rgba(22, 21, 19, .25);
}
.o30ads-modal .pt-cta.is-busy {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 10px;
	padding-left: 44px;
	cursor: wait;
	transform: scale(.985);
}
.o30ads-modal .pt-cta.is-busy::before {
	content: '';
	position: absolute;
	left: 18px;
	top: 50%;
	width: 15px;
	height: 15px;
	margin-top: -7.5px;
	border: 2px solid rgba(22, 21, 19, .18);
	border-top-color: var(--pt-ink);
	border-radius: 50%;
	animation: o30ads-spin .55s linear infinite;
}
.o30ads-modal .pt-cta.is-busy::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 48%, transparent 66%);
	background-size: 220% 100%;
	animation: o30ads-shimmer 1.1s ease-in-out infinite;
	pointer-events: none;
}
@keyframes o30ads-spin { to { transform: rotate(360deg); } }
@keyframes o30ads-shimmer {
	0% { background-position: 120% 0; }
	100% { background-position: -120% 0; }
}

.o30ads-modal .pt-join__error {
	font-size: 13.5px;
	font-weight: 700;
	color: #9b2c2c;
	margin: 4px 0 10px;
}
.o30ads-modal .pt-join__legal {
	text-align: left;
	margin-top: 12px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--pt-soft);
}
.o30ads-modal .pt-join__legal a { color: inherit; font-weight: 700; }

.o30ads-modal .px-modal__perks {
	list-style: none;
	margin: 22px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--pt-line);
	display: grid;
	gap: 9px;
}
.o30ads-modal .px-modal__perks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--pt-muted);
}
.o30ads-modal .px-modal__perks li svg {
	flex: none;
	margin-top: 3px;
	color: var(--pt-ink);
	background: var(--pt-accent);
	border-radius: 999px;
	padding: 2px;
	width: 18px;
	height: 18px;
}

.o30ads-modal .px-modal__done-heading {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 10px;
}
.o30ads-modal .px-modal__check {
	width: 26px;
	height: 26px;
	margin: 2px 0 0;
	flex: none;
	border-radius: 999px;
	background: var(--pt-accent);
	color: var(--pt-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.o30ads-modal .px-modal__check svg { width: 15px; height: 15px; }
.o30ads-modal .px-modal__done-heading .px-modal__title { margin: 0; flex: 1; }

.o30ads-modal .px-modal__next {
	list-style: none;
	counter-reset: px-next;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 10px;
}
.o30ads-modal .px-modal__next li {
	counter-increment: px-next;
	position: relative;
	padding: 14px 16px 14px 54px;
	background: var(--pt-paper);
	border: 1px solid #ece8e0;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pt-muted);
}
.o30ads-modal .px-modal__next li::before {
	content: counter(px-next);
	position: absolute;
	left: 14px;
	top: 13px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--pt-ink);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.o30ads-modal .px-modal__next li b {
	display: block;
	margin-bottom: 4px;
	color: var(--pt-ink);
	font-weight: 800;
}

.o30ads-modal .px-modal__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.o30ads-modal .px-modal__ghost {
	background: transparent;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-weight: 700;
	color: var(--pt-muted);
	cursor: pointer;
	padding: 12px 14px;
	min-height: 44px;
}
.o30ads-modal .px-modal__ghost:hover { color: var(--pt-ink); background: var(--pt-paper); }
.o30ads-modal .px-modal__fine {
	margin: 16px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--pt-soft);
}
.o30ads-modal .px-modal__fine a { color: inherit; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.o30ads-modal .px-modal__back,
	.o30ads-modal .px-modal__dialog { transition: none; }
	.o30ads-modal .pt-cta.is-busy { transform: none; }
	.o30ads-modal .pt-cta.is-busy::before,
	.o30ads-modal .pt-cta.is-busy::after { animation: none; }
}

@media (max-width: 700px) {
	.o30pt.o30ads-modal { padding: 0; align-items: flex-end; }
	.o30ads-modal .px-modal__dialog {
		max-width: none;
		max-height: calc(100dvh - 24px);
		border-radius: 22px 22px 0 0;
		padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
		transform: translateY(28px);
	}
	.o30ads-modal.is-open .px-modal__dialog { transform: none; }
	.o30ads-modal .px-modal__title { font-size: 24px; }
	.o30ads-modal .pt-join__row { grid-template-columns: 1fr; }
	.o30ads-modal .px-modal__actions { flex-direction: column; align-items: stretch; }
}
