/* ==========================================
   WeChat Popup Styles
   ========================================== */

body.vs-wechat-no-scroll {
  overflow: hidden;
}

/* Overlay */
.vs-wechat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.vs-wechat-overlay.vs-wechat-active {
  opacity: 1;
  visibility: visible;
}

/* Popup Container - Green gradient */
.vs-wechat-popup {
  background: linear-gradient(160deg, #ffa831 0%, #66d5ff 40%, #228b09 100%);
  border-radius: 20px;
  padding: 30px 24px 20px;
  max-width: 340px;
  width: 100%;
  position: relative;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.vs-wechat-active .vs-wechat-popup {
  transform: translateY(0) scale(1);
}

/* Close Button */
.vs-wechat-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s ease;
  z-index: 2;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  min-height: unset;
}

.vs-wechat-close:hover {
  color: #fff;
}

/* Badge */
.vs-wechat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgb(7 187 6);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 16px;
  backdrop-filter: blur(11px);
}

.vs-wechat-badge svg {
  flex-shrink: 0;
}

/* QR Card */
.vs-wechat-qr-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 0 auto 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 260px;
}

.vs-wechat-qr-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* QR Hint */
.vs-wechat-qr-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px 0;
}

/* Bottom Bar */
.vs-wechat-bottom-bar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vs-wechat-id-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs-wechat-id-text {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

/* Action icon buttons */
.vs-wechat-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vs-wechat-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eafbe3;
  border: 1.5px solid #c8f0b8;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  min-height: unset;
  line-height: 1;
}

.vs-wechat-icon-btn:hover {
  background: #d5f5c6;
  border-color: #2dc100;
}

.vs-wechat-icon-btn:active {
  transform: scale(0.92);
}

/* Toast */
.vs-wechat-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vs-wechat-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile */
@media (max-width: 480px) {
  .vs-wechat-popup {
    padding: 26px 18px 16px;
    border-radius: 16px;
    max-width: 320px;
  }

  .vs-wechat-qr-card {
    padding: 12px;
    max-width: 230px;
  }

  .vs-wechat-id-text {
    font-size: 14px;
  }

  .vs-wechat-icon-btn {
    width: 32px;
    height: 32px;
  }

  .vs-wechat-bottom-bar {
    padding: 6px 8px 6px 14px;
  }
}