/* QUICK_floating/quick_2 - 원형 아이콘 메뉴 */

:root {
  --quick2-icon-fs: 2rem;
}

.quick_floating.quick_2 {
  position: fixed;
  right: 4rem;
  bottom: 4rem;
  z-index: 50;
}

.quick_floating.quick_2 .contents-container {
  max-width: 100%;
}

.quick_floating.quick_2 .menu-list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick_floating.quick_2 .menu-list li {
  list-style: none;
}

.quick_floating.quick_2 .menu-list li + li {
  margin-top: 0.8rem;
}

.quick_floating.quick_2 .menu-list a,
.quick_floating.quick_2 .menu-list button {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 5.6rem;
  height: 5.6rem;
  color: var(--black, #222);
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 10rem;
  box-shadow: 0 0.4rem 2rem 0 rgba(0, 0, 0, 0.1);
  transition: width 0.3s, padding 0.3s, gap 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.quick_floating.quick_2 .menu-list a:hover {
  width: auto;
  min-width: 5.6rem;
  padding: 0 1.8rem;
  gap: 0.8rem;
}

.quick_floating.quick_2 .menu-list a:hover,
.quick_floating.quick_2 .menu-list button:hover {
  background: var(--primary, #2563eb) !important;
  background-color: var(--primary, #2563eb) !important;
  color: var(--white, #fff) !important;
  border-color: var(--primary, #2563eb) !important;
}

/* 텍스트 span - 기본 숨김 */
.quick_floating.quick_2 .menu-list a > span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: var(--fw-medium, 500);
  color: var(--white, #fff);
  transition: max-width 0.3s, opacity 0.3s;
}

/* hover 시 텍스트 표시 */
.quick_floating.quick_2 .menu-list a:hover > span {
  max-width: 200px;
  opacity: 1;
}

/* blind 클래스 (상단이동 버튼용) */
.quick_floating.quick_2 .menu-list span.blind {
  position: absolute !important;
  clip: rect(0 0 0 0) !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  max-width: none !important;
  opacity: 1 !important;
}

/* 이미지/아이콘 영역 */
.quick_floating.quick_2 .menu-list .wg_img_box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.quick_floating.quick_2 .menu-list .wg_img_box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s;
}

/* hover 시 이미지 흰색으로 (filter 사용) */
.quick_floating.quick_2 .menu-list a:hover .wg_img_box img {
  filter: brightness(0) invert(1);
}

.quick_floating.quick_2 .menu-list .wg_img_box i,
.quick_floating.quick_2 .menu-list .wg_img_box .ff-ico {
  font-size: var(--quick2-icon-fs);
  transition: color 0.3s;
}

.quick_floating.quick_2 .menu-list a i,
.quick_floating.quick_2 .menu-list button i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
  transition: color 0.3s;
}

.quick_floating.quick_2 .menu-list a:hover i,
.quick_floating.quick_2 .menu-list button:hover i,
.quick_floating.quick_2 .menu-list a:hover .wg_img_box i {
  color: var(--white, #fff);
}

/* 상단이동 버튼 hover 시 크기 유지 */
.quick_floating.quick_2 .menu-list .btn-top:hover {
  width: 5.6rem;
  padding: 0;
}

/* body로 이동된 모달 스타일 */
body > .quick-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  opacity: 0;
  visibility: hidden;
  z-index: 99999 !important;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}

body > .quick-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body > .quick-modal .modal-inner {
  width: 90%;
  max-width: 40rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.4rem;
  background: var(--white, #fff);
  border-radius: 2.4rem;
  box-shadow: 0 0 2.4rem 0 rgba(161, 161, 161, 0.25);
}

body > .quick-modal .quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

body > .quick-modal .quick-head h4 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: var(--fw-bold, 700);
}

body > .quick-modal .quick-head .close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 2rem;
  color: var(--black, #222);
  background: transparent;
  border: none;
  cursor: pointer;
}

body > .quick-modal .quick-body {
  max-height: 50vh;
  overflow-y: auto;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--black, #222);
  word-break: keep-all;
}

body > .quick-modal .quick-foot {
  margin-top: 2.4rem;
  text-align: center;
}

body > .quick-modal .quick-foot .btn-close-link {
  display: block;
  padding: 1.4rem 2rem;
  background: var(--black, #222);
  color: var(--white, #fff);
  border-radius: 0.8rem;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: var(--fw-medium, 500);
}

/* 반응형 */
@media (max-width: 992px) {
  :root {
    --quick2-icon-fs: 1.6rem;
  }

  .quick_floating.quick_2 {
    right: 1.6rem;
    bottom: 1.6rem;
  }

  .quick_floating.quick_2 .menu-list a,
  .quick_floating.quick_2 .menu-list button {
    width: 4rem;
    height: 4rem;
  }

  .quick_floating.quick_2 .menu-list .wg_img_box,
  .quick_floating.quick_2 .menu-list a i,
  .quick_floating.quick_2 .menu-list button i {
    width: 1.6rem;
    height: 1.6rem;
  }

  .quick_floating.quick_2 .menu-list a:hover {
    min-width: 4rem;
    gap: 0.4rem;
    padding: 0 1.2rem;
  }

  .quick_floating.quick_2 .menu-list a i::before,
  .quick_floating.quick_2 .menu-list button i::before {
    font-size: 1.6rem;
  }

  .quick_floating.quick_2 .menu-list li + li {
    margin-top: 0.4rem;
  }

  .quick_floating.quick_2 .menu-list .btn-top:hover {
    width: 4rem;
    padding: 0;
  }
}
