/* kaihaola checkout stock-check helper + warning — 20261116-stockmsg3 */
/* fee equation: candidate 20261123, appended; does not restyle the rest of checkout */
.fee-eq{
  margin:8px 0 0;
  font-size:15px;
  font-weight:800;
  line-height:1.55;
  color:var(--warning, #9a6700);
  overflow-wrap:break-word;
  word-break:normal;
}
@media (max-width: 720px){
  .fee-eq{font-size:14px;}
}

/* Channel picker stays a row of short chips. The long fee sentence lives in .fee-board. */
.pay-tabs{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap:8px;
  width:100%;
  min-width:0;
  margin:12px 0 10px;
}
.pay-tab{
  flex:none;
  width:auto;
  min-width:0;
  max-width:100%;
  min-height:48px;
  height:auto;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  text-align:left;
  line-height:1.25;
  white-space:normal;
  background:var(--bg-muted);
  color:var(--text-2);
  border:1px solid var(--border);
}
.pay-tab.is-on{background:var(--card);color:var(--text);}
.pay-tab[data-type^="usdt"].is-on{
  border-color:#7FB8C6;
  color:#d7f3f6;
  box-shadow:0 0 0 3px color-mix(in srgb, #7FB8C6 22%, transparent);
}
.pay-tab img,
.pay-tab svg,
.pay-tab .pay-ico{flex:0 0 auto;}
.pay-tab-name{
  flex:1 1 auto;
  min-width:0;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
}
.pay-rate{
  flex:0 0 auto;
  white-space:nowrap;
  font-size:11px;
  font-weight:800;
  line-height:1;
  padding:4px 6px;
  border-radius:999px;
  border:1px solid var(--hall-line, var(--border));
}
.pay-rate.is-fee{
  color:#d6e8ff;
  background:rgba(22,119,255,.18);
  border-color:rgba(22,119,255,.45);
}
.pay-rate.is-free{
  color:#f0e0b0;
  background:rgba(232,214,160,.1);
  border-color:rgba(232,214,160,.35);
}
.pay-tab:focus-visible{
  outline:2px solid #3ec7ff;
  outline-offset:2px;
}
.fee-board{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  margin:0 0 4px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--hall-line, var(--border));
  background:var(--hall-glass, var(--bg-muted));
  text-align:left;
}
.fee-policy,
.fee-note{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.55;
  font-weight:600;
  color:var(--text-2);
  overflow-wrap:break-word;
  word-break:normal;
}
.fee-selected{
  margin:0 0 8px;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  color:var(--text-3);
}
.fee-layers{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  width:100%;
  min-width:0;
}
.fee-layer{
  min-width:0;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--hall-line, var(--border));
  background:rgba(255,255,255,.03);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.fee-layer span{
  font-size:12px;
  line-height:1.3;
  color:var(--text-3);
  white-space:nowrap;
}
.fee-layer .num{
  font-size:18px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:0;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  color:var(--text);
}
.fee-layer.is-total{
  border-color:#1677FF;
  box-shadow:0 0 0 1px rgba(22,119,255,.35);
}
.fee-layer.is-total .num{color:#7ec8ff;}
.amount-panel .fee-board,
.amount-panel .fee-board-side{text-align:left;}
[data-theme="light"] .pay-rate.is-fee{color:#0b4f9c;background:#e8f1ff;border-color:#b9d4ff;}
[data-theme="light"] .pay-rate.is-free{color:#6b4300;background:#f8f1de;border-color:#e0c98a;}
[data-theme="light"] .fee-layer.is-total .num{color:#0b4f9c;}
[data-theme="light"] .fee-layer{background:#f7f8fb;}
@media (max-width: 860px){
  /* Inner pages stick the header at top:36px, which covers the crumb line at rest. */
  body:not(.is-home) .site-header{top:0 !important;}
}
@media (max-width: 420px){
  .fee-layers{grid-template-columns:1fr;}
  .fee-layer{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .fee-layer .num{font-size:16px;}
}
.checkout-stock-hint{
  margin:8px 0 0;
  font-size:12px;
  line-height:1.65;
  font-weight:400;
  color:var(--text-3);
  overflow-wrap:break-word;
  word-break:normal;
  max-width:100%;
}
.status-msg.is-stock-warn{
  display:block;
  color:var(--warning);
  background:var(--warning-bg);
  border:1px solid color-mix(in srgb, var(--warning) 42%, transparent);
  border-radius:12px;
  padding:10px 12px;
  margin:10px 0 0;
  font-size:14px;
  line-height:1.65;
  font-weight:600;
  overflow-wrap:break-word;
  word-break:normal;
  max-width:100%;
}
.status-msg.is-stock-warn a,
.status-msg.is-stock-warn .stock-warn-link{
  color:var(--warning);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-thickness:1.5px;
}
.status-msg.is-stock-warn a:hover,
.status-msg.is-stock-warn .stock-warn-link:hover{
  text-decoration-thickness:2px;
}
.status-msg.is-stock-warn a:focus-visible,
.status-msg.is-stock-warn .stock-warn-link:focus-visible{
  outline:2px solid var(--warning);
  outline-offset:2px;
  border-radius:2px;
}
[data-theme="light"] .status-msg.is-stock-warn{
  color:#7A4E00;
  background:#F8F1DE;
  border-color:#D7B56A;
}
[data-theme="light"] .status-msg.is-stock-warn a,
[data-theme="light"] .status-msg.is-stock-warn .stock-warn-link{
  color:#6B4300;
}
[data-theme="dark"] .status-msg.is-stock-warn{
  color:#E8D6A0;
  background:#2C2414;
  border-color:#8A7340;
}
[data-theme="dark"] .status-msg.is-stock-warn a,
[data-theme="dark"] .status-msg.is-stock-warn .stock-warn-link{
  color:#F0E0B0;
}

.status-msg.is-stock-warn .stock-warn-text{
  display:block;
  overflow-wrap:break-word;
  word-break:normal;
}
.status-msg.is-stock-warn .stock-warn-link,
.status-msg.is-stock-warn .stock-warn-refresh{
  display:inline-block;
  margin-top:8px;
}
.status-msg.is-stock-warn .stock-warn-refresh{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  color:inherit;
  background:transparent;
  border:1.5px solid currentColor;
  border-radius:999px;
  padding:7px 14px;
  cursor:pointer;
  max-width:100%;
}
.status-msg.is-stock-warn .stock-warn-refresh:hover{opacity:.92;}
.status-msg.is-stock-warn .stock-warn-refresh:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
}
.status-msg.is-stock-warn .stock-warn-refresh:disabled{
  opacity:.7;
  cursor:wait;
}
[data-theme="light"] .status-msg.is-stock-warn .stock-warn-refresh{
  color:#6B4300;
  background:#FFF8E8;
  border-color:#B8872A;
}
[data-theme="dark"] .status-msg.is-stock-warn .stock-warn-refresh{
  color:#1A1408;
  background:#E8D6A0;
  border-color:#E8D6A0;
}
