/* ws-share: default styles of the WeChat QR dialog (WebsiteSpirit) — docs/plans/WS-COMPONENTS.md.
 * Injected with the component unless its root says data-style="none". Every rule is wrapped in
 * :where() (specificity 0), so any theme rule wins; the share buttons themselves are the theme's. */
:where(:root) {
  --ws-share-bg: #fff;
  --ws-share-fg: #1f2328;
  --ws-share-muted: #6b7280;
  --ws-share-backdrop: rgba(15, 23, 42, 0.5);
  --ws-share-radius: 12px;
  --ws-share-z: 2100;
}
[data-ws-share-qr][hidden] {
  display: none !important;
}
:where([data-ws-share-qr]) {
  position: fixed;
  inset: 0;
  z-index: var(--ws-share-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--ws-share-backdrop);
}
:where(.ws-share-qr-panel) {
  position: relative;
  padding: 24px 28px 20px;
  text-align: center;
  color: var(--ws-share-fg);
  background: var(--ws-share-bg);
  border-radius: var(--ws-share-radius);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}
:where(.ws-share-qr-title) {
  margin-bottom: 12px;
  font-weight: 600;
}
/* The code itself: always dark on white, so it scans in a dark theme too. */
:where([data-ws-share-qr-box]) {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  color: var(--ws-share-muted);
  background: #fff;
}
:where([data-ws-share-qr-box] svg) {
  width: 100%;
  height: 100%;
}
:where(.ws-share-qr-tip) {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ws-share-muted);
}
:where(.ws-share-qr-close) {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 4px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ws-share-muted);
  cursor: pointer;
}
