/* 팝업모달스타일 */

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.8);
  z-index: 100;
  overflow: scroll;
  /* visibility: hidden;
  opacity: 0; */
}

.modal {
  padding: 0!important;
  overflow-y: auto
}

.modal::-webkit-scrollbar {
  width: 0
}

.modal::-webkit-scrollbar,.modal::-webkit-scrollbar-thumb {
  background-color: transparent
}

.modal ::-webkit-scrollbar {
  width: 10px;
  background: rgba(0,0,0,.75);
  border-radius: 5px
}

.modal ::-webkit-scrollbar-thumb {
  background: linear-gradient(#ffda91,#ffba49);
  border: 2px solid #000;
  border-radius: 5px
}

#loginModal .modal-header {
  position: relative;
  padding: 0;             /* 위아래 패딩 제거 */
  border-bottom: none;    /* 필요 없으면 제거 */
  display: flex;
  justify-content: center;  /* 로고는 가운데 */
  align-items: center;
}
  
#loginModal .modal-close-btn {
  position: absolute;
  top: 8px;        /* 원하는 만큼만 띄우기 */
  right: 8px;
  margin: 0;       /* mt-2 무시 */
  padding: 0;      /* btn-close 기본 padding 제거 */  
  width: 40px;     /* 버튼 사이즈 조정 */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
 
/* === 모바일 반응형 설정 === */
@media (max-width: 768px) {
  #loginModal {
    top: 60px;
  }
}


.modal-dialog {
  max-width: 900px; 
  padding: 0!important;
  /* border:1px solid white; */
}

.modal-dialog.login_form, .modal-dialog.join_pid_check{
  max-width: 550px; 
  padding: 0!important
}

.modal-content {
    width: 100%;
    min-width: 800px;
    margin: 0;
    /* display: inline-flex; */
    justify-content: center;
    background-color: transparent;
    border: none;
    z-index: 1;
    border-radius: 0;
    /* border:1px solid orange; */
}

  
.modal-panel, .modal-notice {
    width:100%;
    min-width:400px;
    max-width: 900px;
}   

.modal-header {
    border: none;
    border-radius: 15px;
    background-image: linear-gradient(#ae9c48,#251b0d,#251b0d);
    padding: 1px;
    overflow: hidden;
    flex-wrap: wrap
}
  

.modal-body {
    width: 100%;
    background-color: #251b0d;
    border-radius: 10px;
    margin: 5px 0 0;
    padding: 15px 30px;
}

.modal-backdrop {
    background-color: #060301
}

.modal-backdrop.show {
opacity: .9
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 12px;
  top: 12px;
  background-color: #333;
  border-radius: 50%;
  border: none
}

.modal-close-btn:after,.modal-close-btn:before {
  width: 2px;
  height: calc(100% - 20px);
  background-color: #ffd989;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: rotate(45deg);
  transition: .5s
}

.modal-close-btn:after {
  transform: rotate(-45deg)
}

.modal-close-btn:hover:before {
  transform: rotate(135deg);
  background-color: #dc431f
}

.modal-close-btn:hover:after {
  transform: rotate(-135deg);
  background-color: #dc431f
}

.modal-banner {
  width: 100%;
  height: 200px;
  max-width: 550px;
  background-image: url(/dist/assets/images/modal-banner-bg.bf2e503d.jpg);
  background-size: cover;
  background-position: top;
  border-radius: 15px 15px 0 0;
  padding: 15px 0 0
}

.modal-banner .modal-logo {
  max-height:100px;
  width: 180px;
  object-fit: contain;
  display: inline-block;
  margin: 0 0 5px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6))
}

.modal-title {
  margin: 0 0 -90px
}

.modal-title .modal-icon {
  width: auto;
  height: 120px;
  background-image: url();
  background-size: 100% 100%;
  color: #ffd989;
  font-size: 36px;
  margin: 0 auto;
  text-shadow: 0 1px 2px #000,0 0 15px hsla(0,0%,100%,.5)
}

.modal-title .title-panel {
  margin: 5px 0 0
}

.modal-title .title {
  font-size: 24px;
  font-family: noto-sans-bold
}

.modal-title .sub,.modal-title .title {
  width: 100%;
  display: inline-block;
  vertical-align: top
}

.modal-title .sub {
  color: #ffd989;
  font-size: 10px;
  letter-spacing: 5px
}

.modal-head-panel {
  width: 100%;
  min-height: 34px;
  position: relative;
  margin: 35px auto 20px;
  padding: 0 30px
}

.modal-head-panel .btn-grp button {
  width: 110px;
  height: 34px;
  margin-left: 8px;
  font-size: 12px
}

.modal-menu {
  width: 100%;
  border-bottom: 2px solid hsla(0,0%,100%,.1);
  margin: 0 0 30px
}

.modal-menu li:before {
  content: "";
  width: 1px;
  height: 14px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto 0;
  background-color: hsla(0,0%,100%,.1)
}

.modal-menu li:first-child:before {
  display: none
}

.modal-menu li a {
  height: 68px;
  color: #ccc;
  position: relative;
  transition: 0s
}

.modal-menu li a:hover {
  color: var(--orange)
}

.modal-menu li a.active {
  color: #fff;
  text-shadow: 0 1px 0 #000,0 0 10px hsla(0,0%,100%,.25)
}

.modal-menu li a:before {
  content: "";
  width: 100%;
  height: 2px;
  position: absolute;
  right: 0;
  left: 0;
  bottom: -2px;
  margin: 0 auto;
  background-image: linear-gradient(90deg,hsla(47,72%,72%,0),#ebd484,hsla(47,72%,72%,0));
  opacity: 0
}

.modal-menu li a.active:before {
  opacity: 1
}

.modal-menu li a .icon-panel {
  width: 40px;
  height: 26px;
  margin: 0 0 0 -5px;
  position: relative;
  z-index: 1;
  color: #ffd989;
  transition: .3s
}

.modal-menu li a:hover .icon-panel {
  color: var(--orange)
}

.modal-menu li a.active .icon-panel {
  color: rgba(0,0,0,.75);
  text-shadow: 0 1px 0 hsla(0,0%,100%,.5);
  margin: 0 10px 0 -5px
}

.modal-menu li a .icon-panel:before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 3px;
  transform: skew(-10deg);
  background-image: linear-gradient(#ecdc9a,#9f8b44);
  box-shadow: 0 1px 0 #000,0 0 10px hsla(0,0%,100%,.3);
  z-index: -1;
  opacity: 0;
  transition: .3s
}

.modal-menu li a.active .icon-panel:before {
  opacity: 1
}

.modal-close-btn {
  width: 30px;
  height: 30px
}

.modal-title-mob {
  display: none;
  color: var(--white-yellow);
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: -15px
}

.modal-panel, .modal-notice {
    width:100%;
    min-width:400px;
    max-width: 550px;
}   

@media (min-width: 500px) {
  .modal-panel, .modal-notice {
      width:100%;
      max-width: 550px;
  }    
}

@media (min-width: 624px) {
  .modal-panel {
      width:100%;
      max-width: 550px;
      margin: 5% auto
  }
  .modal-notice {
    width: 460px;
    margin: 6% auto
  }  
}

@media (min-width: 1024px) {
  .modal-panel {
      /* width:60%; */
      max-width:550px;
      margin: 6% auto;
  }
  .modal-notice {
    width: 460px;
    margin: 6% auto
  }
}

@media (min-width: 1200px) {
  .modal-panel {
      /* width:60%; */
      max-width:550px;
      margin: 7% auto;
  }
  .modal-notice {
    width: 460px;
    margin: 6% auto
  }
}

@media (min-width: 1400px) {
  .modal-panel {
      /* width:60%; */
      max-width:550px;
  }
  .modal-notice {
    width: 460px;
    margin: 6% auto
  }
  .modal-panel.coupon {
      width: 60%;
  }
}

