.wechat-share-actions {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  background: #151310;
  border-top: 1px solid #514434;
  color: #f7edda;
  font: 14px/1.5 system-ui, sans-serif;
  text-align: center;
}

.wechat-share-actions [hidden], .wechat-share-actions[hidden] {
  display: none;
}

.wechat-share-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.wechat-share-actions button, .wechat-share-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #8e754e;
  border-radius: 8px;
  background: #251f19;
  color: #f0d19a;
  text-decoration: none;
  cursor: pointer;
}

.wechat-share-actions :is(button, a):hover {
  background: #382c20;
}

.wechat-share-actions :focus-visible {
  outline: 2px solid #f0d19a;
  outline-offset: 3px;
}

.wechat-share-actions input {
  display: block;
  width: min(100%, 400px);
  margin: 8px auto 0;
  padding: 8px;
  border: 1px solid #8e754e;
  border-radius: 6px;
  background: #251f19;
  color: inherit;
}

.wechat-share-actions p {
  margin: 7px 0 0;
  color: #ddd0b9;
}

.wechat-share-actions p:empty {
  display: none;
}

#wechat-share-diagnostic:not([hidden]) {
  position: fixed;
  z-index: 100000;
  inset: max(8px, env(safe-area-inset-top)) 8px auto;
  max-width: 32rem;
  margin-inline: auto;
  padding: 12px 16px;
  border: 1px solid #514434;
  border-radius: 12px;
  background: #151310;
  color: #f7edda;
  font: 14px/20px system-ui, sans-serif;
}

#wechat-share-diagnostic pre {
  margin: 4px 0 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  body:has(.app-chrome__mobile-tabs) .wechat-share-actions {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}
