/* =========================================================================
   commerce.css —— commerce-* 结算/购物车主题（cart / checkout / payment-result）
   -------------------------------------------------------------------------
   【抽取产物】来源：cart / checkout / payment-result 三页内联 <style> 中重复的
   commerce 基础骨架（body.commerce-page、.commerce-shell、共享组件 .commerce-button 等；
   theme 变量统一复用 common.css 的 :root，不另设 --commerce-*）
   依赖：请在 css/common.css 之后、页面内联 <style> 之前加载。
   说明：页面专属样式（.cart-line*/.reference-*/.payment-result-*/.checkout-* 等）
   与各页媒体块内的页面专属规则保留在各页内联。
   ========================================================================= */

/* ---- 主题变量：统一复用 common.css 的 :root（--blue/--ink/...），不再各自定义 --commerce-* ---- */

body.commerce-page {
  min-height: 100dvh;
  color: var(--ink);
  background: #fff;
  font-family: "Geist", "Segoe UI", Arial, sans-serif;
}

.commerce-page button, .commerce-page input, .commerce-page select, .commerce-page textarea {
  font: inherit;
}

.commerce-main {
  min-height: calc(100dvh - 72px);
  overflow: clip;
}

.commerce-shell {
  width: min(calc(100% - 48px), 1400px);
  margin: 0 auto;
}
@media (max-width:1024px) {
  .commerce-shell {
    width: min(calc(100% - 40px), 920px);
  }
}
@media (max-width:640px) {
  .commerce-shell {
    width: min(calc(100% - 28px), 600px);
  }
}

/* ---- 动画 ---- */
@keyframes commerce-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes commerce-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- 摘要卡片 / 按钮（cart + checkout + payment-result 部分共享） ---- */
.summary-card {
  position: sticky;
  top: 108px;
  padding: 29px;
  border: 1px solid #d8e5ec;
  border-radius: 9px;
  background: rgba(248, 251, 252, .92);
  box-shadow: 0 24px 70px rgba(20, 67, 95, .09);
  backdrop-filter: blur(14px);
}
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  color: #627588;
  font-size: 12px;
}
.summary-line strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.summary-line.total {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #d8e5ec;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.summary-line.total strong {
  font-size: 26px;
  letter-spacing: -.03em;
}
.summary-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 17px 0 0;
  color: #718494;
  font-size: 10px;
  line-height: 1.5;
}
.summary-note svg {
  width: 15px;
  height: 15px;
  color: #419e7f;
  flex: 0 0 auto;
}
.commerce-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.commerce-button:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 28px rgba(7, 143, 200, .2);
  transform: translateY(-2px);
}
.commerce-button:active {
  transform: scale(.985);
}
.commerce-button.is-disabled {
  opacity: .5;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.commerce-button svg {
  width: 17px;
  height: 17px;
}
.summary-card .commerce-button {
  width: 100%;
  margin-top: 23px;
}