
.open-select-modal option {
  display: none;
}

/* 모달 스타일 */
#payment-select-modal {
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100vh; 
  background: rgba(0, 0, 0, 0.5); 
  justify-content: center; 
  align-items: center; 
  z-index: 1000;
}

/* 모달 컨텐츠 */
.payment-select-modal-content {
  background: var(--bg-white-surface-10);
  padding: 42px 32px;
  width: 90%;
  max-width: 578px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow-y: auto;
  position: relative;
  scrollbar-width: 6px;
  scrollbar-color: #999 transparent;
  overscroll-behavior: contain;
}

/* 닫기 버튼 */
.payment-select-modal-close {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}


/* 모달 제목 */
#payment-select-modal-title {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

/* 모달 내용 */
#payment-select-modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-black);
}



/* 커스텀 연도 뷰 내 커스텀 스크롤 */
.payment-select-modal-content::-webkit-scrollbar {
  width: 6px;
}

.payment-select-modal-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.payment-select-modal-content::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}

.payment-select-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}



#payment-select-modal-tab {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--high-grey-10);
  border-radius: 4px;
  margin-bottom: 24px;
}

#payment-select-modal-tab .tab-item {
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
}

#payment-select-modal-tab .tab-item.active {
  background: var(--bg-white-surface-30);
  font-weight: 700;
  border: 1px solid var(--border-black);
  border-radius: 4px;
  box-shadow: 0px 4px 10px 0px rgba(34, 34, 34, 0.06);
}

#payment-select-modal-tab.hidden {
  display: none;
}

.bank-list.hidden,
.card-list.hidden,
.security-list.hidden {
  display: none;
}

.bank-list, .security-list {
  overflow-y: auto;
  max-height: 54vh;
  overscroll-behavior: contain;
}


.bank-list,
.card-list,
.security-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bank-icon,
.card-icon,
.security-icon {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

.bank-item,
.card-item,
.security-item {
  padding: 12px 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
}


/* 반응형 디자인 */
@media screen and (max-width: 689px) {
  .payment-select-modal-content {
      width: 100%;
      height: 100vh;
      max-width: none;
      max-height: none;
      padding-left: 16px;
      padding-right: 16px;
  }

  #payment-select-modal-title {
    margin-top: 10.5px;
    font-weight: 500;
    font-size: 18px;
    border-bottom: 1px solid #d7d7d7d7;
    margin-left: -16px;
    margin-right: -16px;
    padding-bottom: 10.5px;
    margin-bottom: 16px;
  }

  .payment-select-modal-close {
    top: 54px;
  }

  .bank-list,
  .card-list,
  .security-list {
    gap: 8px;
  }

  .bank-list, .security-list {
    max-width: none;
    max-height: 70vh;
  }
}