.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;
}

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