.wechat-appreciation {
  pointer-events: auto;
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 20px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #334155;
  box-shadow: 0 24px 64px #0f172a33;
}

.wechat-appreciation::backdrop {
  pointer-events: auto;
  background: #0f172a99;
}

.wechat-appreciation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.wechat-appreciation__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.wechat-appreciation__close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.wechat-appreciation__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 230px);
  max-height: calc(100dvh - 230px);
  border-radius: 8px;
  object-fit: contain;
  background: #191919;
}

.wechat-appreciation p {
  margin: 16px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.wechat-appreciation__save {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #059669;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.wechat-appreciation__save:hover {
  background: #047857;
}

.wechat-appreciation__close:focus-visible,
.wechat-appreciation__save:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
}
