/* Shared AI pack 售前说明 — buy modal + cart checkout */
.llm-presale {
	margin-top: 28px;
	padding: 18px 20px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f7fafc;
	color: #4a5568;
}

.llm-buy-modal__body .llm-presale--compact {
	margin-top: 12px;
	margin-bottom: 4px;
}

.llm-presale__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #2a4365;
}

.llm-presale__list {
	margin: 0;
	padding-left: 1.25em;
	font-size: 13px;
	line-height: 1.75;
}

.llm-presale__list li + li {
	margin-top: 4px;
}

.llm-presale__link {
	color: #2b6cb0;
	text-decoration: none;
	border-bottom: 1px solid rgba(43, 108, 176, 0.35);
	margin-left: 2px;
	white-space: nowrap;
}

.llm-presale__link:hover {
	color: #2a4365;
	border-bottom-color: #2a4365;
}

.llm-presale--compact {
	margin-top: 16px;
	padding: 14px 16px 12px;
	background: #fff;
}

.llm-presale--compact .llm-presale__title {
	font-size: 14px;
}

.llm-presale--compact .llm-presale__list {
	font-size: 12px;
	line-height: 1.7;
}

/* Cart heading + tooltip trigger */
.cart-ai-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 18px;
	color: #2a4365;
}

.llm-presale-tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	flex-shrink: 0;
}

.llm-presale-tip__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 1px solid #a0aec0;
	border-radius: 50%;
	background: #fff;
	color: #718096;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	outline: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.llm-presale-tip__btn:hover,
.llm-presale-tip__btn:focus-visible,
.llm-presale-tip.is-open .llm-presale-tip__btn,
.llm-presale-tip:hover .llm-presale-tip__btn {
	border-color: #2b6cb0;
	color: #2b6cb0;
	background: #ebf8ff;
}

.llm-presale-tip__mark {
	display: block;
	transform: translateY(-0.5px);
}

/* Hover bridge so pointer can move icon → panel without closing */
.llm-presale-tip__bridge {
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	min-width: 28px;
	height: 12px;
	z-index: 21;
}

.llm-presale.llm-presale--tooltip {
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	z-index: 20;
	width: min(420px, calc(100vw - 48px));
	margin: 0;
	padding: 14px 16px 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(45, 55, 72, 0.14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.llm-presale--tooltip .llm-presale__title {
	font-size: 14px;
}

.llm-presale--tooltip .llm-presale__list {
	font-size: 12px;
	line-height: 1.7;
}

.llm-presale-tip:hover .llm-presale--tooltip,
.llm-presale-tip:focus-within .llm-presale--tooltip,
.llm-presale-tip.is-open .llm-presale--tooltip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

@media (max-width: 767px) {
	.llm-presale.llm-presale--tooltip {
		left: 50%;
		transform: translate(-50%, 4px);
		width: min(340px, calc(100vw - 32px));
	}

	.llm-presale-tip:hover .llm-presale--tooltip,
	.llm-presale-tip:focus-within .llm-presale--tooltip,
	.llm-presale-tip.is-open .llm-presale--tooltip {
		transform: translate(-50%, 0);
	}
}
