/****************************/
/* inquiry_popup.css
/****************************/
/* Inquiry to Buy Popup*/
:root {
  --main: #a50034;
}

/* 스크롤바 스타일 설정 */
.company-search-popup-container .table-tbody::-webkit-scrollbar {
  width: 4px; /* 스크롤바 너비 */
}

/* 스크롤바 색상 설정 */
.company-search-popup-container .table-tbody::-webkit-scrollbar-thumb {
  background-color: #a50034; /* 스크롤바 색상 */
  border-radius: 10px; /* 스크롤바 모서리 둥글게 */
}

/* 스크롤바 hover 시 스타일 변경 */
.company-search-popup-container .table-tbody::-webkit-scrollbar-thumb:hover {
  background-color: #d83468; /* 스크롤바 hover 시 색상 변경 */
}

/* 스크롤바 추적 가능한 영역 설정 */
.company-search-popup-container .table-tbody::-webkit-scrollbar-track {
  width: 4px;
  background: #eee; /* 스크롤바 추적 가능한 영역 색상 */
}

/* 팝업 UI */
.company-search-popup-container * {
  box-sizing: border-box;
  font-family: "LG Smart", "Segoe UI", "Microsoft Sans Serif", sans-serif;
  font-size: 18px;
  font-weight: 400;
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 0;
}

.company-search-popup-container i {
  font-family: "Font Awesome 6 Free";
}

.company-search-popup-container {
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: normal;
  max-height: 2000px;
}

.company-search-popup-container .company-search-popup {
  background: #fff;
  width: calc(100% - 20px);
  height: 90%;
  max-width: 800px;
  max-height: 800px;
  border-radius: 8px;
  box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 36px 40px;
}

.company-search-popup-container .popup-header {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
  padding-bottom: 4px;
}

.company-search-popup-container .popup-header .popup-close {
  transform: rotate(45deg);
  font-size: 57px;
  margin: 0 0 5px 0;
  cursor: pointer;
  transition: 0.3s;
  color: #444;
  font-weight: 300;
  font-family: sans-serif;
}

.company-search-popup-container .popup-header .popup-close:hover {
  opacity: 0.7;
}

.nav-btn-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 18px;
  padding-bottom: 0;
  gap: 5px;
  z-index: 1;
}
.nav-btn-wrap .custom-btn:first-child {
  padding-left: 34px;
  position: relative;
}
.nav-btn-wrap .custom-btn:first-child::before {
  content: "<";
  display: inline-block;
  position: absolute;
  left: 20px;
  top: 2px;
}

.popup-main {
  width: 100%;
  height: 92%;
  /* overflow: hidden; */
  position: relative;
}

.popup-page {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column nowrap;
  /* gap: 5px; */
}

.popup-page p.page-title {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-weight: 400;
  color: #000;
  font-size: 24px;
  padding-bottom: 0;
  padding: 18px 0 0 0;
}

.popup-page p.title {
  width: 100%;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

.popup-page p.subtitle {
  font-size: 14px;
  color: #bbb;
}

.popup-main p.setting-value {
  font-weight: 600;
  text-align: center;
  bottom: -40px;
  width: 100%;
  color: #bbb;
  font-weight: 400;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
}

.popup-main p.size-msg {
  position: absolute;
  bottom: 5px;
  height: 30px;
  width: 100%;
  color: var(--main);
  font-size: 12px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.popup-page .input-box {
  width: 100%;
  padding: 10px 1px 10px;
}

.popup-page .input-box p.input-title {
  width: 100%;
  font-weight: 400;
}

.popup-page .input-box p.input-title span {
  color: #ac0c3c!important;
}

.popup-page .input-box input {
  width: 100%;
  height: 44px;
  margin-top: 10px;
}
.popup-page .input-box input::placeholder {
  color: #b3b3b3;  
}


.popup-page input {
  width: calc(100% - 150px);
  height: 100%;
  border-radius: 3px;
  border: 1px solid #ddd;
  padding: 10px;
  transition: 0.3s;
  outline: 1px solid #000;
  font-size: clamp(8px, 3vw, 16px);
}

.popup-page input:focus {
  outline: 1px solid #000;
}

/* 지역선택 페이지 */
.select-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  gap: 10px;
  width: 100%;
  margin: 30px 0 20px;
}

/* 검색 페이지  */
.popup-page .search-box {
  width: 100%;
  height: 60px;
  padding: 20px 0 0 1px;
}

.search-box input {
  width: calc(100% - 257px);
  height: 45px;
}
.search-box input::placeholder {
  color: #b3b3b3;
}


.result-box {
  width: 100%;
  height: calc(100% - 170px);
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column wrap;
}

/* 주소 입력 */
.address-title {
  width: 100%;
  height: 36px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #000;
  font-weight: 400;
  font-size: 16px;
}

.address-box {
  width: 100%;
  padding: 27px 1px 6px;
  display: flex;
  justify-content: space-between;
  flex-flow: row wrap;
}

.address-box input {
  width: calc(50% - 4px);
  height: 45px;
  margin: 4px 0;
}
.address-box input::placeholder {
  color: #b3b3b3;
}


/* 테이블 헤드 */
.table-thead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 30px;
  border-bottom: 1px solid #ddd;
}

.table-thead .table-td {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 500;
  font-size: 14px;
  color: #000;
}

.table-thead .table-td.name {
  flex: 15;
}

.table-thead .table-td.addr {
  flex: 40;
  justify-content: flex-start;
  padding-left: 10px;
}

.table-thead .table-td.zip {
  flex: 10;
}

.table-thead .table-td.biz {
  flex: 10;
}

.table-thead .table-td.duns {
  flex: 10;
}

.table-thead .table-td.tax {
  flex: 15;
}

/* 테이블 바디 */
.table-mbody {
  display: none;
}

.table-tbody {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-flow: column nowrap;
  width: 100%;
  height: calc(100% - 30px);
  overflow-y: auto;
  overflow-x: hidden;
}

.table-tbody .table-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  border-bottom: 1px solid #ddd;
  transition: 0.2s;
}

.table-tbody .table-row:hover {
  background: #a50034;
  cursor: pointer;
}

.table-tbody .table-row .table-td {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 400;
  font-size: 12px;
  padding-left: 5px;
  white-space: nowrap;
  overflow: hidden;
  color: #000;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
}
.table-tbody .table-row:hover .table-td {
  color: #fff;
}

.table-row .table-td.name {
  flex: 15;
  display: block;
  line-height: 40px;
  text-align: center;
}

.table-row .table-td.addr {
  flex: 40;
  justify-content: flex-start;
  padding-left: 10px;
}

.table-row .table-td.zip {
  flex: 10;
}

.table-row .table-td.biz {
  flex: 10;
}

.table-row .table-td.duns {
  flex: 10;
}

.table-row .table-td.tax {
  flex: 15;
}

.no-result {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-flow: column wrap;
  font-size: 20px;
  text-align: center;
}

/* 기본 UI 세팅 */
select {
  border-radius: 3px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  font-weight: 500;
  width: 190px;
  height: 45px;
  transition: 0.3s;
  outline: 1px solid #000;
}

select:focus {
  outline: 1px solid #000;
}

option {
  padding: 8px;
  font-size: 20px;
}

option:disabled {
  color: #ddd;
}

.custom-btn {
  border: none;
  outline: none;
  background: var(--main);
  color: #fff;
  padding: 0 22px;
  border-radius: 20px;
  font-weight: 400;
  transition: 0.3s;
  cursor: pointer;
  font-size: 14px;
  height: 42px;
  line-height: 42px;
}

.custom-btn:active {
  opacity: 0.5;
}
.custom-btn.btn-search {
  background-image: url(/theme/rbFront/img/w/inquiry/reading-glass.png);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  border-radius: 3px;
  height: 46px;
}

.custom-btn.black {
  background: #444;
  color: #fff;
}

.custom-btn.white {
  background: #fff;
  color: #444;
  border: 1px solid #999;
}

.custom-btn.selected {
  background: #fff;
  color: #000;
  font-size: 14px;
  border: solid 1px #000;
}

.fa-map-location-dot {
  width: 53px;
  height: 51px;
  background: url(/theme/rbFront/img/w/inquiry/icon_map.png) 0 0 no-repeat transparent;
}

.disable {
  background-color: #888 !important;
  color: #fff !important;
  pointer-events: none;
}

.btn-registry {
  width: 100%;
  margin-top: 10px;
}

.flex-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

p.notice {
  color: var(--main);
  font-size: 14px;
  width: 100%;
  padding-left: 160px;
}

.custom-alert {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  color: #fff;
  background: var(--main);
  transition: 0.5s;
  z-index: 9999;
  position: absolute;
  bottom: 0;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
  border-radius: 8px;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.2);
}

.loading-screen {
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100vw;
  height: 100vh;
}

.loading-screen.show {
  opacity: 1;
  pointer-events: auto;
}

/* 모바일 코드 */
@media (max-width: 1080px) {
  .company-search-popup-container {
    max-height: 3000px;
  }
  .company-search-popup-container .company-search-popup {
    width: calc(100vw - 12px);
    height: calc(130vh - 50%);
    max-width: 100%;
    max-height: 862px;
    padding: 10px 0px 40px;
  }
  .popup-main {
    padding: 0 14px;
  }
  .popup-header {
    padding: 0 12px;
    height: 40px;
  }
  .popup-header .title {
    font-size: 16px;
  }
  .popup-page {
    height: 104%;
  }
  .popup-page p.page-title {
    display: none;
  }
  .popup-page p.title {
    font-size: 21px;
    line-height: 26px;
    width: 70%;
  }
  .popup-page p.subtitle {
    font-size: 14px;
    margin-top: 22px;
  }
  .popup-main p.setting-value {
    font-size: clamp(12px, 3vw, 14px);
  }
  /* 모바일 selectBox */
  select {
    height: 40px;
    font-size: 14px!important;
    width: 88%;
  }
  .search-box input {
    width: calc(100% - 145px);
    font-size: 12px;
    height: 35px;
    flex: 1;
    padding-right: 44px;
  }
  .search-box select {
    width: 90px;
    font-size: 12px!important;
    height: 35px;
  }
  .popup-page[pagename="registry"] {
    margin-top: 20px;
  }
  .custom-btn {
    height: 36px;
    line-height: 36px;
    font-size: 14px;
  }
  /* 모바일 inputBox */
  .popup-page .input-box {
    font-size: clamp(10px, 3vw, 16px) !important;
  }

  .popup-page .input-box input {
    font-size: 14px;
    height: 35px;
  }
  .address-box input {
    height: 35px;
  }
  .custom-btn.btn-search {
    position: absolute;
    right: 0;
    height: 35px;
    background-image: url(/theme/rbFront/img/w/inquiry/reading-glass_m-on.png);
    background-color: transparent!important;
    background-size: 20px 20px;
  }
  .custom-btn.btn-search.disable {
    background-image: url(/theme/rbFront/img/w/inquiry/reading-glass_m.png);
  }
  .popup-page .input-box p.input-title {
    font-size: 14px;
  }
  /* 모바일 조회결과 */
  .result-box {
    height: calc(100% - 150px);
    margin-top: 10px;
  }
  .result-box .table-thead {
    display: none;
  }
  .table-tbody {
    display: none;
  }
  .table-mbody {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-flow: column nowrap;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .table-mbody .table-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    flex-flow: column wrap;
    border-bottom: 1px solid #ddd;
    padding: 8px;
  }
  .row-child {
    display: flex;
    align-items: center;
    padding: 4px 0;
    width: 100%;
    font-size: 11px;
    color: #555;
    font-weight: 400;
  }
  .row-child:nth-child(1) {
    padding-bottom: 0;
  }
  .company-name {
    font-weight: 400;
    font-size: 14px;
    color: #000;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .company-post {
    color: #000;
    width: 60px;
    font-weight: 400;
    margin-left: 10px;
    font-size: 11px;
    top: 0px;
  }
  .row-child .label-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: var(--main);
    border-radius: 7px;
    padding: 0 5px;
    font-size: 9px;
    width: 50px;
    margin-right: 10px;
    height: 15px;
    line-height: 15px;
  }
  /* 모바일 버튼 네비게이션 */
  .nav-btn-wrap {
    position: relative;
    justify-content: center;
  }
  .nav-btn-wrap button {
    font-size: 12px;
    padding: 0 16px;
    height: 32px;
    line-height: 32px;
  }
  .nav-btn-wrap .custom-btn:first-child {
    padding-left: 27px;
  }
  .nav-btn-wrap .custom-btn:first-child::before {
    left: 14px
  }
  .nav-btn-wrap button:nth-child(2) {
    flex: 1;
    font-size: 12px;
    padding: 0 10px
  }
  .btn-registry {
    font-size: 12px;
    height: 36px;
    line-height: 36px;
  }
}
