@charset "utf-8";
/**************************************
 * frame.css
 * 헤더/바디/모달 프레임 레이아웃
 * 2024/12 By "PARK EUN HEE"
/**************************************/

/*** S: 전체 컨테이너  ***/
body {
  /* min-height: calc((var(--vh) * 100)); */
  min-width: 280px;
  overflow-y: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
/*** E: 전체 컨테이너  ***/

/*** S: 헤더 ***/
.header {
  height: 48px;
  background: var(--color-primary);
  padding: 0px 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header h1 {
  width: 88px;
  height: 28px;
}

.header h1 a {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.header nav {
  margin-left: 10px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  position: relative;
}

header .nav-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

header .btn.sm {
  height: 24px;
  font-weight: bold;
  background: #fff;
}

.header-user-layer {
  width: 150px;
  background: #f7f9fb;
  padding: 18px;
  position: absolute;
  right: 0;
  top: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  font-size: 12px;
  display: none;
  z-index: 99;
}

.header-user-layer.active {
  display: block;
}

.header-user-layer .user-name {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-grayCool-200);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.header-user-layer .links {
  color: var(--color-grayCool-900);
}

.header-user-layer .links a {
  display: block;
  padding: 5px 0;
}
/*** E: 헤더 ***/

/*** S: 바디 컨테이너 ***/
.body-container {
  min-height: 200px;
  overflow: hidden auto;
  flex: 1 1 auto;
}

/* 
  .body-container 를 .type-single, .type-sub 클래스로 유형 분리한다.
   추후 사이드 바가 있는 레이아웃이 생길 경우 .type-sub 를 이용해 스타일 분리
*/
/* contbox-* */
.body-container.type-single > [class^='cont-box-w-'] {
  margin: 0 auto;
  padding: 30px var(--padding-box-hoz);
  position: relative;
}

@media all and (min-width: 581px) {
  .body-container.type-single > [class^='cont-box-w-'] {
    padding: 60px var(--padding-box-hoz);
  }
}

.body-container.type-single .cont-box-w-full {
}

.body-container.type-single .cont-box-w-md {
  max-width: 900px;
}

.body-container.type-single .cont-box-w-sm {
  max-width: 380px;
}

/* 버튼 플로팅을 위해 container 높이 확대: cont-box-w- 가 하나만 있는 페이지에만 적용 */
.body-container.type-single > [class^='cont-box-w-']:only-child {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.body-container [class^='cont-box-w-']:only-child > * {
  flex: 0 0 auto;
}

.body-container [class^='cont-box-w-']:only-child > .form:last-child {
  flex: 1 1 auto;
}

/*** E: 바디 컨테이너 ***/

/*** S: Modal : modal은 jqeury modal 사용으로 pc 스타일 기본이라 pc first 로 css 작성***/
/* 모달 공통 */
.modal {
  box-shadow: none;
  padding: 0;
  border-radius: 20px;
  /* max-width: calc(100vw - 36px); */
  min-width: calc(280px - 36px);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
}

.blocker {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0;
  min-width: 280px;
}

.modal-header {
  /* height: 52px; */
  flex-shrink: 0;
  /* padding: 0 0 10px var(--padding-box-hoz); */
  padding: 22px 0 20px var(--padding-box-hoz);
  display: flex;
  /* align-items: flex-end; */
  flex-direction: column;
  align-items: flex-start;
}

.modal-header-desc {
  font-size: 1.4rem;
  margin-top: 10px;
  color: var(--color-grayCool-500);
}

.modal a.close-modal {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 18px;
  height: 18px;
  background-image: url('/assets/images/ico_modal_close.svg');
}

.modal-body {
  overflow: auto;
  flex: 1 1 auto;
  position: relative;
}

.modal-body:last-child {
  margin-bottom: 24px;
  padding: 0 24px;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.modal-footer .btn {
  flex: 1 1 auto;
  height: 48px;
}

/* 알럿, 컨펌 */
.modal.alert {
  width: 324px;
  padding: 30px 24px 24px;
}

.modal.alert .close-modal {
  display: none;
}

.modal.alert .modal-body {
  text-align: center;
  padding: 0 0 30px;
}

.modal.alert .modal-msg-tit {
  margin-bottom: 10px;
}

.modal.alert .modal-msg-desc {
  font-size: 1.4rem;
}

/* 반응형 모달 - 일반 팝업(모바일에서는 슬라이드업 팝업으로 변경) */
.modal.m-slideUp .modal-inner-wrapper {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
}

.modal.m-slideUp .modal-body {
  flex: 1 1 auto;
  padding: 0 var(--padding-box-hoz);
}

.modal.m-slideUp .modal-body:first-child {
  margin-top: 43px;
}

.modal.m-slideUp .modal-footer {
  /* .m-slideUp 푸터 버튼 아직 사용된 적 없음. 스타일 변경 가능. */
  padding: 20px var(--padding-box-hoz) 24px;
}

@media all and (max-width: 580px) {
  .modal.m-slideUp {
    top: auto;
    left: 0;
    max-width: 100vw;
    width: 100% !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    /* transform: translateY(100%); */
    transition: none;
    bottom: 0;
    animation: slideDown 0.8s ease-out forwards;
  }

  .modal.m-slideUp.show {
    transform: translateY(0);
    animation: slideUp 0.3s ease-out forwards;
  }

  .modal.m-slideUp .modal-header {
    /* height: 70px; */
    min-height: 70px;
  }

  .modal.m-slideUp .modal-body:first-child {
    margin-top: 40px;
  }

  .modal.m-slideUp .modal-body:last-child {
    margin-bottom: 0;
    padding-bottom: 24px;
  }

  .modal.m-slideUp a.close-modal {
    right: auto;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: 60px;
    padding: 8px 0;
    background: transparent;
    font-size: 0;
  }

  .modal.m-slideUp a.close-modal::before {
    content: '';
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--color-grayCool-900);
    display: block;
  }
}
/*** E: Modal ***/
