.modal-common {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: 0.4s;
  color: #fff;
}
.modal-common.active {
  visibility: visible;
  opacity: 1;
}
.modal-common .modal__inner {
  padding: 20px;
  width: 90%;
  height: 455px;
  max-width: 560px;
  background-color: #fff;
  color: #212121;
  border-radius: 3rem;
  position: relative;
}
.modal-common .modal__inner h2 {
  text-align: center;
  margin: 30px auto;
  font-weight: 600;
  color: #212121;
  font-size: 2.3rem;
}
.modal-common .modal__inner .text-box {
  height: 270px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 13px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 1.5rem;
  line-height: 2.5rem;
}
.modal-common .modal__inner img {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 25px;
  width: 15px;
}
.modal-common .modal__inner .join-btn-box {
  display: flex;
  justify-content: center;
}
.modal-common .modal__inner .join-btn-box button {
  width: 110px;
  margin-top: 2rem;
  height: 50px;
  border-radius: 6px;
}
.modal-common .modal__inner .join-btn-box button.terms-ok {
  background-color: rgb(55, 83, 225);
  margin-right: 1rem;
  color: #fff;
}
.modal-common .modal__inner .join-btn-box button.close-btn {
  border: 1px solid #ccc;
}

/* 위챗 모달 전용 스타일 */
.modal-common.wechat-modal .modal__inner {
  height: auto;
  width: auto;
  max-width: 500px;
  min-height: auto;
  padding: 0;  /* 패딩 제거 */
  overflow: hidden;  /* 넘치는 부분 숨김 */
}

.modal-common.wechat-modal .modal__inner img.close-btn {
  /* 닫기 버튼 위치 조정 */
  position: absolute;
  right: 20px;  /* 15px → 20px로 변경 */
  top: 20px;    /* 15px → 20px로 변경 */
  width: 35px;  /* 20px → 35px로 변경 */
  cursor: pointer;
  z-index: 10;
  background: white;
  border-radius: 50%;
  padding: 5px;
}

.modal-common.wechat-modal .wechat-content {
  text-align: center;
  padding: 0;  /* 패딩 제거 */
}

.modal-common.wechat-modal .wechat-qr {
  width: 100% !important;
  height: auto !important;
  display: block;
  position: static !important;
  cursor: default !important;
  margin: 0;
  object-fit: cover;  /* contain에서 cover로 변경 */
  border-radius: 3rem;  /* 모달과 같은 둥근 모서리 */
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .modal-common.wechat-modal .modal__inner {
    width: 90vw;
    max-width: 400px;
  }
}