/*
 * 前台 SDK 的可选默认样式（方案书 §7.14）：同意弹窗、常驻隐私设置入口与蜜罐。
 * 2.8+ 销售助手与交互验证的样式是分包样式表（sdk.v<版本>.assistant.css / .verify.css），由对应分包按需引入。
 * 主题用 <link rel="stylesheet" href="/_platform/sdk.v2.css"> 引入，或完全用自己的 CSS 覆盖这些类名。
 * SDK 本身从不注入样式（严格 CSP：style-src 'self'）。
 */
.fs-hp[hidden] {
  display: block;
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fs-consent {
  position: fixed;
  z-index: 2147483000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  box-sizing: border-box;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  padding: 20px;
  overflow: auto;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  box-shadow: 0 8px 32px rgb(0 0 0/18%);
  font:
    14px/1.5 system-ui,
    sans-serif;
}
.fs-consent__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.fs-consent__title {
  margin: 0;
  font-size: 16px;
}
.fs-consent__lang {
  flex: none;
  max-width: 9rem;
  padding: 2px 6px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.fs-consent__body,
.fs-consent__docs {
  margin: 0 0 12px;
}
.fs-consent__body a,
.fs-consent__docs a {
  color: inherit;
}
.fs-consent__docs {
  font-size: 12px;
}
.fs-consent__cats {
  margin: 0 0 12px;
}
.fs-consent__cat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  padding: 6px 0;
}
.fs-consent__cat small {
  grid-column: 2;
  color: #667085;
}
.fs-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-consent__btn,
.fs-consent-open {
  padding: 8px 14px;
  border: 1px solid #1d2939;
  border-radius: 6px;
  background: #fff;
  color: #1d2939;
  font: inherit;
  cursor: pointer;
}
.fs-consent [hidden] {
  display: none;
}
.fs-consent--modal {
  inset: 0;
  width: calc(100% - 32px);
  margin: auto;
  box-shadow:
    0 0 0 100vmax rgb(0 0 0/45%),
    0 8px 32px rgb(0 0 0/18%);
}
.fs-consent--bar {
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 70vh;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: 0 -8px 32px rgb(0 0 0/18%);
}
.fs-consent--box {
  inset: auto 16px 16px auto;
  width: min(380px, calc(100vw - 32px));
  max-width: 380px;
  margin: 0;
}
.fs-consent--bar .fs-consent__actions {
  justify-content: flex-end;
}
.fs-consent-open {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: 16px;
  padding: 4px 10px;
  font:
    12px/1.5 system-ui,
    sans-serif;
}
@media (min-width: 720px) {
  .fs-consent--bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 20px;
  }
  .fs-consent--bar .fs-consent__head,
  .fs-consent--bar .fs-consent__body,
  .fs-consent--bar .fs-consent__docs,
  .fs-consent--bar .fs-consent__cats {
    grid-column: 1;
    margin-bottom: 0;
  }
  .fs-consent--bar .fs-consent__actions {
    grid-column: 2;
    grid-row: 1 / span 4;
    justify-content: flex-end;
  }
}
@media (prefers-color-scheme: dark) {
  .fs-consent,
  .fs-consent__btn,
  .fs-consent__lang,
  .fs-consent-open {
    border-color: #475467;
    background: #101828;
    color: #f2f4f7;
  }
  .fs-consent__cat small {
    color: #98a2b3;
  }
}
