.yedapi-reward-like {
  margin: 2rem 0;
  text-align: center;
  clear: both;
}

.yedapi-reward-like-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.yedapi-reward-like button {
  min-width: 76px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
  color: #1d2327;
  cursor: pointer;
}

.yedapi-reward-like button:hover,
.yedapi-reward-like button:focus {
  border-color: #2271b1;
  color: #135e96;
}

.yedapi-like-button.is-liked {
  border-color: #2271b1;
  background: #f0f6fc;
  color: #135e96;
  cursor: default;
}

.yedapi-reward-modal[hidden] {
  display: none;
}

.yedapi-reward-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.yedapi-reward-modal-open {
  overflow: hidden;
}

.yedapi-reward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.56);
}

.yedapi-reward-dialog {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 24px 22px 22px;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
  outline: none;
}

.yedapi-reward-like .yedapi-reward-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
}

.yedapi-reward-like .yedapi-reward-close:hover,
.yedapi-reward-like .yedapi-reward-close:focus {
  background: #e5e7eb;
  color: #111827;
}

.yedapi-reward-header {
  padding: 4px 34px 16px;
  text-align: center;
}

.yedapi-reward-like .yedapi-reward-dialog .yedapi-reward-header h2 {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

.yedapi-reward-like .yedapi-reward-dialog .yedapi-reward-header h2::before,
.yedapi-reward-like .yedapi-reward-dialog .yedapi-reward-header h2::after {
  display: none !important;
  content: none !important;
}

.yedapi-reward-like .yedapi-reward-dialog .yedapi-reward-header p {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6b7280 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.yedapi-reward-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f3f4f6;
}

.yedapi-reward-like .yedapi-reward-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.yedapi-reward-like .yedapi-reward-tab:hover,
.yedapi-reward-like .yedapi-reward-tab:focus {
  color: #111827;
}

.yedapi-reward-like .yedapi-reward-tab.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
}

.yedapi-reward-tab-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.yedapi-reward-tab-wechat {
  background: #10b957;
}

.yedapi-reward-tab-alipay {
  background: #1677ff;
}

.yedapi-reward-panel {
  margin: 18px auto 0;
}

.yedapi-reward-code[hidden] {
  display: none;
}

.yedapi-reward-code {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.yedapi-reward-code img {
  display: block;
  width: min(220px, calc(100vw - 92px));
  height: min(220px, calc(100vw - 92px));
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.yedapi-reward-code p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.yedapi-reward-code p span {
  margin: 0 3px;
  color: #111827;
  font-weight: 700;
}

.yedapi-reward-code[data-yedapi-reward-code="wechat"] p span {
  color: #10b957;
}

.yedapi-reward-code[data-yedapi-reward-code="alipay"] p span {
  color: #1677ff;
}

.yedapi-reward-code small {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .yedapi-reward-modal {
    padding: 16px;
  }

  .yedapi-reward-dialog {
    width: 100%;
    padding: 22px 18px 20px;
  }
}
