@charset "UTF-8";

/* fw-sheet (PC) : 공용 팝업. 모바일 fw-sheet 와 같은 마크업 · 같은 스크립트를 쓰고 화면 가운데 창으로 띄운다 */

/* 딤드 */
.fw-sheet-dim {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .2s ease;
}
.fw-sheet-dim.is-open {
  opacity: 1;
}

/* 창 */
.fw-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2201;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 540px;
  max-width: calc(100vw - 40px);
  height: fit-content;
  max-height: calc(100vh - 80px);
  max-height: min(900px, calc(100vh - 80px));
  max-height: min(900px, calc(100dvh - 80px));
  margin: auto;
  background: var(--white, #fff);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.fw-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, visibility 0s;
}
.fw-sheet:focus {
  outline: none;
}

/* 모바일 전용 손잡이는 쓰지 않는다 */
.fw-sheet__handle {
  display: none;
}

/* 머리 */
.fw-sheet__header {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  min-height: 60px;
  padding: 0 60px 0 24px;
  border-bottom: 1px solid var(--gray-500, #ccc);
}
.fw-sheet__title {
  margin: 0;
  font-family: 'Pretendard SemiBold';
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--black-1200, #222);
  text-align: left;
}
.fw-sheet__close {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  border: 0;
  background: url("/../img_1.5/btn-close.svg") no-repeat center / 18px;
  font-size: 0;
  color: transparent;
  cursor: pointer;
}

/* 본문 */
.fw-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 24px;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black-1200, #222);
}

/* 바닥 */
.fw-sheet__footer {
  flex-shrink: 0;
  padding: 16px 24px;
}
.fw-sheet__footer--line {
  border-top: 1px solid var(--gray-300, #eee);
}
