/**
 * TikTok LP — marketplace-sa.com/pages/maablm parity
 */

:root {
	/* Site tokens (Studio wp_head overrides --brand / --canvas-*) */
	--brand: 43 68% 47%;
	--brand-highlight: 43 85% 62%;
	--promo: 25 90% 52%;
	--canvas: 220 18% 7%;
	--canvas-dark: 222 20% 5%;
	--ink: 0 0% 97%;
	--muted: 220 8% 58%;

	--tiktok-lp-text: hsl(var(--ink));
	--tiktok-lp-muted: hsl(var(--muted));
	--tiktok-lp-surface: hsl(var(--canvas-dark));
	--tiktok-lp-border: hsl(0 0% 100% / 0.1);
	--tiktok-lp-accent: hsl(var(--brand));
	--tiktok-emerald: #34d399;
}

html.tiktok-minimal-lp,
body.tiktok-minimal-lp {
	margin: 0;
	padding: 0;
	background: #fff;
	color: var(--tiktok-lp-text);
	font-family: "Cairo", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.tiktok-minimal-lp * {
	box-sizing: border-box;
}

.tiktok-blm100 {
	margin: 0;
	min-height: 100vh;
	background: #fff;
	color: var(--tiktok-lp-text);
	font-family: inherit;
	padding-bottom: 88px;
}

.tiktok-blm100__banner {
	display: block;
	width: 100%;
}

.tiktok-blm100__banner img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
	min-height: 80px;
	background: #f4f4f4;
}

.tiktok-blm100__checkout-wrap {
	width: 100%;
	max-width: 600px;
	margin: 8px auto 0;
	padding: 0 0 8px;
}

.tiktok-blm100__checkout {
	border: 1px solid hsl(0 0% 100% / 0.08);
	border-radius: 16px;
	background: hsl(var(--canvas-dark));
	padding: 16px;
	color: var(--tiktok-lp-text);
}

.tiktok-blm100__product-img {
	display: block;
	max-width: 300px;
	width: 100%;
	height: auto;
	margin: 0 auto 8px;
}

.tiktok-blm100__pick {
	margin: 0 0 12px;
	padding: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--tiktok-lp-text);
}

/* ── Bundle panel — BundleSelector product variant (dark + brand) ─────── */
.tiktok-blm100__bundles-panel {
	margin: 0 0 16px;
	padding: 0;
}

.store-lp-bundles {
	margin: 0;
}

.store-lp-bundles__heading {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.5);
}

.store-lp-bundles__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.store-lp-bundle {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.02);
	padding: 16px;
	text-align: right;
	cursor: pointer;
	transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
	font-family: inherit;
	color: #fff;
}

.store-lp-bundle.has-badge {
	padding-top: 32px;
}

.store-lp-bundle:hover:not(.is-active):not(.bundle-active) {
	border-color: rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.04);
}

.store-lp-bundle.is-active,
.store-lp-bundle.bundle-active {
	border-color: hsl(var(--brand) / 0.5);
	background: hsl(var(--brand) / 0.07);
	box-shadow: 0 0 30px hsl(var(--brand) / 0.1);
}

.store-lp-bundle__badge {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	display: inline-flex;
	padding: 4px 12px;
	border-bottom-left-radius: 12px;
	font-size: 10px;
	font-weight: 900;
	color: #fff;
	line-height: 1.3;
}

.store-lp-bundle__badge--popular {
	background: linear-gradient(to right, #3b82f6, #4f46e5);
}

.store-lp-bundle__badge--best {
	background: linear-gradient(to right, #eab308, #ca8a04);
}

.store-lp-bundle__badge--accent {
	background: linear-gradient(to right, #eab308, #ca8a04);
}

.store-lp-bundle__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.store-lp-bundle__main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.store-lp-bundle__radio {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: transparent;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.store-lp-bundle__radio svg {
	display: none;
	color: #000;
}

.store-lp-bundle.is-active .store-lp-bundle__radio,
.store-lp-bundle.bundle-active .store-lp-bundle__radio {
	border-color: hsl(var(--brand));
	background: hsl(var(--brand));
}

.store-lp-bundle.is-active .store-lp-bundle__radio svg,
.store-lp-bundle.bundle-active .store-lp-bundle__radio svg {
	display: block;
}

.store-lp-bundle__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.4);
	flex-shrink: 0;
}

.store-lp-bundle.is-active .store-lp-bundle__icon,
.store-lp-bundle.bundle-active .store-lp-bundle__icon {
	border-color: hsl(var(--brand) / 0.25);
	background: hsl(var(--brand) / 0.15);
	color: hsl(var(--brand));
}

.store-lp-bundle__title {
	display: block;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.7);
}

.store-lp-bundle.is-active .store-lp-bundle__title,
.store-lp-bundle.bundle-active .store-lp-bundle__title {
	color: #fff;
}

.store-lp-bundle__unit {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.35);
}

.store-lp-bundle__prices {
	text-align: left;
	flex-shrink: 0;
	min-width: 4.5rem;
}

.store-lp-bundle__total {
	display: block;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	color: rgba(255, 255, 255, 0.6);
	font-variant-numeric: tabular-nums;
}

.store-lp-bundle.is-active .store-lp-bundle__total,
.store-lp-bundle.bundle-active .store-lp-bundle__total {
	color: #fff;
}

.store-lp-bundle__total small {
	font-size: 12px;
	font-weight: 700;
	opacity: 0.5;
}

.store-lp-bundle__was {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.2);
	text-decoration: line-through;
	font-variant-numeric: tabular-nums;
}

.store-lp-bundle__save {
	display: inline-flex;
	align-items: center;
	align-self: flex-end;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.04);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.4;
	text-align: start;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.25);
}

.store-lp-bundle.is-active .store-lp-bundle__save,
.store-lp-bundle.bundle-active .store-lp-bundle__save {
	border-color: rgba(16, 185, 129, 0.2);
	background: rgba(16, 185, 129, 0.15);
	color: var(--tiktok-emerald);
}

.store-lp-bundles__summary {
	margin: 12px 0 0;
	padding: 10px 14px;
	text-align: center;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--tiktok-emerald);
	border-radius: 12px;
	border: 1px solid rgba(16, 185, 129, 0.2);
	background: rgba(16, 185, 129, 0.1);
}

.store-lp-bundles__summary-val {
	font-weight: 900;
}

.tiktok-blm100__bundles {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0 auto 12px;
	max-width: max-content;
	width: 100%;
}

.tiktok-blm100__bundle {
	width: 100%;
	max-width: 100%;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background: #fff;
	padding: 12px 14px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--tiktok-lp-text);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tiktok-blm100__bundle.is-active {
	border-color: #d0021b;
	background: #fff;
	box-shadow: inset 0 0 0 1px #d0021b;
}

.tiktok-blm100__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 12px;
	margin: 0 0 16px;
	text-align: center;
}

.tiktok-blm100__price-current {
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
	color: var(--tiktok-lp-text);
}

.tiktok-blm100__price-old {
	font-size: 18px;
	font-weight: 700;
	color: var(--tiktok-lp-muted);
	text-decoration: line-through;
}

.tiktok-blm100__currency {
	font-size: 0.72em;
	font-weight: 800;
}

.tiktok-blm100__field {
	margin-bottom: 14px;
}

.tiktok-blm100__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	color: hsl(0 0% 100% / 0.85);
}

.tiktok-blm100__field input,
.tiktok-blm100__field textarea {
	width: 100%;
	border: 1px solid hsl(0 0% 100% / 0.1);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 16px;
	font-family: inherit;
	color: #fff;
	background: hsl(0 0% 100% / 0.05);
	transition: border-color 0.2s ease, background 0.2s ease;
	resize: vertical;
	min-height: 48px;
}

.tiktok-blm100__field input::placeholder,
.tiktok-blm100__field textarea::placeholder {
	color: hsl(0 0% 100% / 0.35);
}

.tiktok-blm100__field input:focus,
.tiktok-blm100__field textarea:focus {
	outline: none;
	border-color: hsl(var(--brand) / 0.5);
	background: hsl(0 0% 100% / 0.08);
}

.tiktok-blm100__error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(239, 68, 68, 0.25);
	background: rgba(239, 68, 68, 0.12);
	color: #fca5a5;
	font-size: 14px;
	font-weight: 700;
}

.tiktok-blm100__submit {
	width: 100%;
	border: 0;
	border-radius: 16px;
	padding: 16px;
	font-size: 18px;
	font-weight: 900;
	font-family: inherit;
	cursor: pointer;
}

/* Shared CTA — product page accent-gradient parity */
.tiktok-blm100__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 16px;
	padding: 14px 20px;
	background: linear-gradient(to bottom right, #f59e0b, #d97706, #92400e);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 20px hsl(var(--brand) / 0.35);
	transition: transform 0.2s ease, filter 0.2s ease;
}

.tiktok-blm100__cta:hover,
.tiktok-blm100__cta:focus {
	filter: brightness(1.05);
}

.tiktok-blm100__cta:active {
	transform: scale(0.97);
}

.tiktok-blm100__submit.tiktok-blm100__cta {
	width: 100%;
	padding: 16px;
	font-size: 18px;
	color: #fff;
}

.tiktok-blm100__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* Sticky bar — compact centered floating pill */
.tiktok-blm100__sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	justify-content: center;
	padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
	transform: translateY(0);
	opacity: 1;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.tiktok-blm100__sticky.is-hidden {
	transform: translateY(calc(100% + 16px));
	opacity: 0;
	pointer-events: none;
}

.tiktok-blm100__sticky-inner {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	pointer-events: auto;
	border: 1px solid hsl(0 0% 100% / 0.12);
	border-radius: 999px;
	background: hsl(var(--canvas-dark) / 0.72);
	-webkit-backdrop-filter: blur(20px) saturate(1.2);
	backdrop-filter: blur(20px) saturate(1.2);
	box-shadow: 0 8px 32px hsl(0 0% 0% / 0.28), 0 0 0 1px hsl(0 0% 100% / 0.04) inset;
	padding: 8px 10px 8px 14px;
}

.tiktok-blm100__sticky-row {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: none;
	margin: 0;
}

.tiktok-blm100__sticky-info {
	flex: 1;
	min-width: 0;
	padding: 2px 4px 2px 0;
	border: 0;
	background: transparent;
	text-align: right;
	cursor: pointer;
	font-family: inherit;
}

.tiktok-blm100__sticky-name {
	margin: 0;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tiktok-blm100__sticky-price {
	margin: 2px 0 0;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	color: hsl(var(--brand));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tiktok-blm100__sticky-cta {
	flex-shrink: 0;
	white-space: nowrap;
	padding: 10px 14px;
	font-size: 13px;
	border-radius: 999px;
}

@media (max-width: 440px) {
	.tiktok-blm100__checkout-wrap {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.tiktok-blm100__checkout {
		border-left: 0;
		border-right: 0;
		border-radius: 0;
		border-top: 1px solid hsl(0 0% 100% / 0.08);
		border-bottom: 1px solid hsl(0 0% 100% / 0.08);
	}
}

@media (min-width: 768px) {
	.tiktok-blm100 {
		padding-bottom: 96px;
	}

	.tiktok-blm100__sticky-inner {
		max-width: 520px;
	}
}
