/* Ascend-style SMS discount flyout (Halo 35% SlickText offer). */

.halo-sms-flyout {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	pointer-events: none;
}

.halo-sms-flyout.is-hidden,
.halo-sms-flyout.is-delegated,
html:not(.halo-age-ok) body.halo-ads-age .halo-sms-flyout {
	display: none !important;
}

/* Keep Halo’s 35% chip; hide SlickText’s default “Get 30% Off” widget. */
#stForm,
#stFormMinimized,
#stFormOverlay,
#stFormBackground,
.websitePopup {
	display: none !important;
	pointer-events: none !important;
}

.halo-sms-flyout__bubble,
.halo-sms-flyout__chip-x,
.halo-sms-flyout__panel {
	pointer-events: auto;
}

.halo-sms-flyout__bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	height: 48px;
	min-width: 48px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: #fff;
	color: #2a6ad0;
	box-shadow: 0 10px 28px -10px rgba(15, 46, 92, 0.38), 0 2px 8px rgba(15, 23, 42, 0.08);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.halo-sms-flyout__bubble:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px -10px rgba(15, 46, 92, 0.42), 0 2px 8px rgba(15, 23, 42, 0.1);
}

.halo-sms-flyout__dollar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

.halo-sms-flyout__cta {
	display: none;
	padding-right: 1.1rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

.halo-sms-flyout__chip-x {
	display: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-right: 0.15rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: #e2e8f0;
	color: #64748b;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.halo-sms-flyout__chip-x:hover {
	background: #cbd5e1;
	color: #0f172a;
}

.halo-sms-flyout__panel {
	position: fixed;
	right: 20px;
	bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	left: auto;
	z-index: 41;
	width: calc(100% - 2.5rem);
	max-width: 372px;
	max-height: min(84dvh, 34rem);
	overflow-y: auto;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 34px 74px -26px rgba(15, 46, 92, 0.48);
}

.halo-sms-flyout__panel[hidden] {
	display: none !important;
}

.halo-sms-flyout__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: linear-gradient(to right, #4f97ec, #2a6ad0);
}

.halo-sms-flyout__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.halo-sms-flyout__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
}

.halo-sms-flyout__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.halo-sms-flyout__body {
	padding: 1rem 1rem 1.15rem;
}

.halo-sms-flyout__lede {
	margin: 0;
	color: #64748b;
	font-size: 0.8125rem;
	line-height: 1.55;
}

.halo-sms-flyout__lede strong {
	color: #334155;
	font-weight: 700;
}

.halo-sms-flyout__form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.9rem;
}

.halo-sms-flyout__names {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.halo-sms-flyout__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.9rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 0.75rem;
	background: #fff;
	color: #0f172a;
	font-size: 1.05rem;
	outline: none;
}

.halo-sms-flyout__input::placeholder {
	color: #94a3b8;
}

.halo-sms-flyout__input:focus {
	border-color: #2a6ad0;
	box-shadow: 0 0 0 3px rgba(42, 106, 208, 0.15);
}

.halo-sms-flyout__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding-top: 0.15rem;
	cursor: pointer;
}

.halo-sms-flyout__consent input {
	width: 1rem;
	height: 1rem;
	margin: 0.15rem 0 0;
	accent-color: #2a6ad0;
	flex-shrink: 0;
}

.halo-sms-flyout__consent span {
	color: #64748b;
	font-size: 9.5px;
	line-height: 1.42;
}

.halo-sms-flyout__consent a {
	color: #2a6ad0;
	font-weight: 600;
	text-decoration: underline;
}

.halo-sms-flyout__submit {
	width: 100%;
	margin-top: 0.15rem;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 0.75rem;
	background: linear-gradient(to right, #4f97ec, #2a6ad0);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 14px 26px -12px rgba(42, 106, 208, 0.6);
}

.halo-sms-flyout__submit:hover {
	transform: translateY(-1px);
}

.halo-sms-flyout__submit[disabled] {
	opacity: 0.7;
	cursor: default;
	transform: none;
}

.halo-sms-flyout__skip {
	display: block;
	width: 100%;
	margin-top: 0.15rem;
	padding: 0.25rem;
	border: 0;
	background: transparent;
	color: #94a3b8;
	font-size: 0.72rem;
	font-weight: 500;
	cursor: pointer;
}

.halo-sms-flyout__skip:hover {
	color: #475569;
	text-decoration: underline;
}

.halo-sms-flyout__error {
	margin: 0.35rem 0 0;
	color: #dc2626;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
}

.halo-sms-flyout__error:empty {
	display: none;
}

.halo-sms-flyout__success {
	margin: 0;
	color: #334155;
	font-size: 0.875rem;
	line-height: 1.55;
}

.halo-sms-flyout__success strong {
	color: #0f172a;
}

.halo-sms-flyout.is-success .halo-sms-flyout__form,
.halo-sms-flyout.is-success .halo-sms-flyout__lede,
.halo-sms-flyout.is-success .halo-sms-flyout__skip {
	display: none;
}

.halo-sms-flyout:not(.is-success) .halo-sms-flyout__success {
	display: none;
}

@media (min-width: 640px) {
	.halo-sms-flyout__bubble {
		padding-right: 0.15rem;
	}

	.halo-sms-flyout__cta {
		display: inline;
	}

	.halo-sms-flyout:not(.is-open) .halo-sms-flyout__chip-x {
		display: inline-flex;
	}

	.halo-sms-flyout__title {
		font-size: 1rem;
	}

	.halo-sms-flyout__body {
		padding: 1.15rem 1.35rem 1.35rem;
	}

	.halo-sms-flyout__lede {
		font-size: 0.875rem;
	}

	.halo-sms-flyout__input {
		padding: 0.75rem 0.9rem;
		font-size: 0.9375rem;
	}

	.halo-sms-flyout__consent span {
		font-size: 10px;
		line-height: 1.45;
	}
}

@media (max-width: 639px) {
	.halo-sms-flyout__panel {
		left: 1.25rem;
		right: 1.25rem;
		width: auto;
		margin: 0 auto;
	}
}

/* Peptide strips early-access SMS pop-in. */
.halo-strips-sms {
	position: fixed;
	inset: 0;
	z-index: 100200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.halo-strips-sms[hidden] {
	display: none !important;
}

.halo-strips-sms__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 22, 48, 0.55);
}

.halo-strips-sms__panel {
	position: relative;
	width: min(420px, 100%);
	max-height: min(640px, calc(100vh - 2.5rem));
	overflow: auto;
	padding: 1.75rem 1.5rem 1.25rem;
	border-radius: 22px;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 24px 60px -20px rgba(15, 46, 92, 0.55);
	animation: halo-strips-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.halo-strips-sms__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #334155;
	cursor: pointer;
}

.halo-strips-sms__close:hover {
	background: #e2e8f0;
}

.halo-strips-sms__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 0.85rem;
	border-radius: 999px;
	background: linear-gradient(90deg, #69a0ea 0%, #3e6ccb 100%);
	color: #fff;
}

.halo-strips-sms__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2a6ad0;
}

.halo-strips-sms__title {
	margin: 0 0 0.5rem;
	font-size: 1.55rem;
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.halo-strips-sms__lede {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #475569;
}

.halo-strips-sms__form {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.halo-strips-sms__names {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

.halo-strips-sms__input {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid #dbe3ee;
	border-radius: 12px;
	background: #fff;
	color: #0f172a;
	font: inherit;
	font-size: 0.95rem;
}

.halo-strips-sms__input:focus {
	outline: 2px solid #2a6ad0;
	outline-offset: 1px;
	border-color: #2a6ad0;
}

.halo-strips-sms__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 11px;
	line-height: 1.45;
	color: #64748b;
}

.halo-strips-sms__consent input {
	margin-top: 0.15rem;
	flex: 0 0 auto;
}

.halo-strips-sms__consent a {
	color: #2a6ad0;
}

.halo-strips-sms__submit {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 999px;
	background: #2a6ad0;
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.halo-strips-sms__submit:hover {
	background: #1f56b0;
}

.halo-strips-sms__submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.halo-strips-sms__error {
	margin: 0;
	font-size: 0.8125rem;
	color: #b42318;
}

.halo-strips-sms__error:empty {
	display: none;
}

.halo-strips-sms__success {
	display: none;
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #0f172a;
}

.halo-strips-sms.is-success .halo-strips-sms__form,
.halo-strips-sms.is-success .halo-strips-sms__lede,
.halo-strips-sms.is-success .halo-strips-sms__skip {
	display: none;
}

.halo-strips-sms.is-success .halo-strips-sms__success {
	display: block;
}

.halo-strips-sms__skip {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.55rem;
	border: 0;
	background: transparent;
	color: #64748b;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.halo-strips-sms__skip:hover {
	color: #0f172a;
}

@keyframes halo-strips-pop {
	0% {
		opacity: 0;
		transform: scale(0.86) translateY(10px);
	}
	70% {
		transform: scale(1.03) translateY(0);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.halo-strips-sms__panel {
		animation: none;
	}
}

@media (max-width: 639px) {
	.halo-strips-sms {
		align-items: flex-end;
		padding: 0.75rem;
	}

	.halo-strips-sms__panel {
		padding: 1.4rem 1.1rem 1rem;
		border-radius: 18px;
	}

	.halo-strips-sms__title {
		font-size: 1.35rem;
	}

	.halo-strips-sms__names {
		grid-template-columns: 1fr;
	}
}
