/* 会员升级引导：自带调色板，不依赖各页面的 CSS 变量（同 shared-auth.css 的约定）。 */

.lc-upsell-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(400px, calc(100vw - 36px));
  pointer-events: none;
}

.lc-upsell-bar {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid oklch(64% 0.20 290 / 0.42);
  background: linear-gradient(180deg, oklch(20% 0.035 290 / 0.97), oklch(16% 0.02 285 / 0.97));
  box-shadow: 0 18px 48px oklch(10% 0.02 285 / 0.5);
  color: oklch(94% 0.012 285);
  font-size: 13px;
  line-height: 1.5;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
  animation: lc-upsell-in .28s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.lc-upsell-bar.lc-upsell-fade { opacity: 0; transform: translateY(6px); }

@keyframes lc-upsell-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lc-upsell-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: oklch(82% 0.16 292);
  font-size: 14px;
}

.lc-upsell-copy { flex: 1 1 auto; min-width: 0; display: block; }
.lc-upsell-copy b { display: block; font-weight: 600; }
.lc-upsell-copy small {
  display: block;
  margin-top: 3px;
  color: oklch(74% 0.03 285);
  font-size: 12px;
}

.lc-upsell-cta {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: oklch(62% 0.21 292);
  color: oklch(98% 0.01 292);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.lc-upsell-cta:hover { background: oklch(66% 0.21 292); }

.lc-upsell-close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: -1px -2px 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: oklch(66% 0.02 285);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.lc-upsell-close:hover { background: oklch(100% 0 0 / 0.07); color: oklch(92% 0.01 285); }

/* ── L1 锁定态：可点击，不是死掉的 disabled ───────────────────────────── */
.lc-upsell-lock {
  position: relative;
  cursor: pointer;
  opacity: 0.55;
}
.lc-upsell-lock:hover {
  opacity: 0.85;
  border-color: oklch(64% 0.20 290 / 0.55) !important;
}
.lc-upsell-lock::after {
  content: "🔒";
  position: absolute;
  top: -5px;
  right: -4px;
  font-size: 8.5px;
  line-height: 1;
  filter: grayscale(0.35);
  pointer-events: none;
}

/* 整行宽的勾选项（编辑器 / 画布的 label）：角标会飘到很右边甚至被裁掉，
   改成跟在文字后面的行内锁。 */
label.lc-upsell-lock::after {
  position: static;
  margin-left: 6px;
  font-size: 10px;
  vertical-align: baseline;
}

/* ── L2 价签差：提交按钮内、主文案下方的一行极轻副文案 ────────────────── */
.lc-upsell-price {
  color: oklch(76% 0.13 292);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.lc-upsell-price:empty { display: none; }

/* 宿主按钮只在真有副文案时换行，否则保持原来的单行布局。
   flex-basis 100% 把副行挤到下一行；按钮本身是 padding 撑高的，不需要改高度。 */
.lc-upsell-host {
  flex-wrap: wrap;
  row-gap: 2px;
}

/* 宿主按钮常被页面样式锁死高度（编辑器的 .btn.btn-sm 是 30px），多一行必须让它自己撑开。
   选择器写成 .btn.lc-upsell-host 与之同特异度，并靠加载顺序取胜 ——
   所以每个引入本文件的页面都要把它排在自己的样式之后。 */
.btn.lc-upsell-host,
.lc-upsell-host {
  height: auto;
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}
.lc-upsell-host .lc-upsell-price {
  flex: 0 0 100%;
  text-align: center;
  /* 实心主按钮上用高亮白，紫色在紫底上读不出来 */
  color: oklch(100% 0 0 / 0.82);
  font-weight: 500;
}

/* ── 行内提示条：嵌在面板里的静态引导（画布节点面板、编辑器工具栏等） ── */
.lc-upsell-inline {
  display: flex;
  align-items: center;
  /* 编辑器侧栏只有 ~120px 宽，不换行会把文案挤成逐字竖排 */
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 8px 0;
  padding: 9px 11px;
  border: 1px solid oklch(64% 0.20 290 / 0.34);
  border-radius: 9px;
  background: oklch(58% 0.22 290 / 0.10);
  color: oklch(88% 0.03 288);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
.lc-upsell-inline:hover { border-color: oklch(64% 0.20 290 / 0.6); }
.lc-upsell-inline strong { font-weight: 650; }
.lc-upsell-inline > span:first-of-type {
  flex: 1 1 150px;
  min-width: 0;
}
.lc-upsell-inline .lc-upsell-inline-cta {
  flex: 0 0 auto;
  margin-left: auto;
  color: oklch(82% 0.16 292);
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .lc-upsell-stack { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .lc-upsell-bar { flex-wrap: wrap; }
  .lc-upsell-cta { margin-left: 24px; }
}
