#theme_popup {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 999999;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
#theme_popup.on {
  display: none;
}
#theme_popup ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
#theme_popup ul li {
  width: 120px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  position: relative;
}
#theme_popup ul li svg {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
#theme_popup ul li.active {
}
#theme_popup ul li i {
  margin-right: 4px;
}
#theme_popup ul li a {
  font-size: 14px;
  color: #fff;
}
#theme_popup .pop_close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 55px;
}
#theme_popup .pop_close i {
  font-size: 1.3em;
  color: #fff;
  cursor: pointer;
}

#theme_link {
  position: fixed;
  right: 10px;
  bottom: 140px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 버튼 간 간격 */
}

#theme_link.active {
  bottom: 20px;
}

#theme_link a {
  display: flex;
  align-items: center;
  justify-content: center; /* 아이콘 중앙 정렬 */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #21ac39;
  position: relative;
  overflow: visible; /* span이 버튼 밖으로 나올 수 있게 */
  text-decoration: none;
  transition: all 0.3s ease;
}

#theme_link a:nth-child(2) {
  background-color: #f2720a;
}

#theme_link a:nth-child(3) {
  background-color: #fbcd00;
}

/* span 텍스트 위치 조정 */
#theme_link a span {
  position: absolute;
  right: 70px; /* 버튼 오른쪽 기준 */
  white-space: nowrap;
  opacity: 0;
  background: #333;
  color: #fff;
  padding: 0 15px;
  border-radius: 30px;
  line-height: 60px;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(10px); /* 살짝 오른쪽에서 슬라이드 시작 */
}

/* hover 또는 .on 시 텍스트 보이기 */
#theme_link a:hover span,
#theme_link a.on span {
  opacity: 1;
  transform: translateX(0);
}

/* 아이콘 중앙 정렬 */
#theme_link a img {
  width: 50px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#theme_link a.on img {
  display: block; /* 필요시 숨김 여부 결정 */
}

#theme_link i {
  font-size: 1em;
  margin-left: 5px;
}

.popup_open {
  display: none !important;
}
.popup_open.active {
  display: block !important;
}
@media screen and (max-width: 1200px) {
  #theme_link {
    opacity: 0;
  }
  #theme_popup {
    opacity: 0;
  }
}
.mobile-bottom-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  height: 60px; /* 높이 조정 가능 */
}

.mobile-bottom-fixed a {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: #3c3c3d;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.mobile-bottom-fixed .btn-phone {
  background-color: #ffffff; /* 전화 버튼 배경색 (빨강계열) */
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.05),
    inset 0 -2px 8px rgb(198 198 199 / 47%);
}

.mobile-bottom-fixed .btn-chat {
  background-color: #ffffff; /* 카톡 버튼 배경색 (노란색) */
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.05),
    inset 0 -2px 8px rgb(198 198 199 / 47%);
}

.mobile-bottom-fixed .btn-consult {
  background-color: #ffffff; /* 상담 버튼 배경색 */
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.05),
    inset 0 -2px 8px rgb(198 198 199 / 47%);
}

.mobile-bottom-fixed .icon {
  font-size: 18px;
  margin-bottom: 4px;
}

/* 모바일에서만 보이도록 미디어쿼리 */
@media screen and (min-width: 601px) {
  .mobile-bottom-fixed {
    display: none;
  }
}
