/*
 * XET CSS v2.0.4 2024-08-02 for supported in all modern browsers
 * By xetemplate(https://xetemplate.com)
 */
.xet-layout-quickbutton {
  z-index: 88;
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px; 
}

/* 1. 퀵메뉴 버튼 레이아웃 (PC, 모바일 55px 통일) */
.xet-layout-quickbutton a {
    display: flex !important;           
    flex-direction: column;             
    justify-content: center;
    align-items: center;
    width: 55px !important;             
    height: 55px !important;            
    padding: 0 !important;            
    font-size: 10px !important;         
    line-height: 1.1 !important;
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 50% !important;      
    background-color: #2458ab !important; 
    margin-bottom: 0 !important;        
}

/* 2. 일반 위로가기 버튼 모양 설정 */
.xet-layout-top, .btn-top, #js-top-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 55px !important;
    height: 55px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: #555 !important; 
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
}

/* 2-1. JS로 생성되는 스크롤 버튼 (숨김 기능 정상화를 위해 flex 제외) */
#xet-scrolltop-btn {
    width: 55px !important;
    height: 55px !important;
    line-height: 55px !important; /* 세로 중앙 정렬 */
    text-align: center !important; /* 가로 중앙 정렬 */
    border-radius: 50% !important;
    background-color: #555 !important; 
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
    
    position: fixed !important;
    right: 1rem !important;  
    bottom: 2rem !important; 
    z-index: 99 !important;
}

/* 3. 아이콘 크기 및 간격 조정 */
.xet-layout-quickbutton a i,
.xet-layout-top i, .btn-top i, #js-top-button i {
    margin-bottom: 2px !important;      
    font-size: 18px !important;
    margin-top: 0 !important;
}

#xet-scrolltop-btn i {
    font-size: 18px !important;
    line-height: 55px !important; /* 아이콘 세로 정렬 보조 */
    margin: 0 !important;
}

/* 텍스트가 버튼 중앙에 잘 오도록 설정 */
.xet-layout-quickbutton a > i {
    font-size: 18px !important;
}

/* 우측 퀵버튼 [설교, 주보, 앨범]: 상단에서는 숨김, 스크롤 다운 시 노출 (원본 동작 원복) */
.xet-layout-quickbutton.main a {
  opacity: 0;
  visibility: hidden;
  transform: translateY(50%);
}
.xet-layout-quickbutton.is-scroll a {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: var(--xet-theme-transition-all);
}
.xet-layout-quickbutton.is-scroll a:nth-child(2) {
  transition-delay: 0.1s;
}
.xet-layout-quickbutton.is-scroll a:nth-child(3) {
  transition-delay: 0.2s;
}

body.app-style .xet-layout-quickbutton {
  bottom: 9rem;
}
body.app-style #xet-scrolltop-btn {
  bottom: 5rem !important;
}

/* =========================================
   PC & 태블릿 해상도 (간격 벌어짐 적용)
========================================= */
@media (min-width: 992px) {
  body.app-style .xet-layout-quickbutton {
    bottom: 5rem;
  }
  body.app-style #xet-scrolltop-btn {
    bottom: 1rem !important;
  }
}

@media (min-width: 1200px) {
  .xet-layout-quickbutton {
    bottom: 7.2rem !important; 
  }
  
  .xet-layout-quickbutton a {
    width: 55px !important;
    height: 55px !important;
  }
  .xet-layout-quickbutton a > i {
    font-size: 18px !important;
  }

  body.app-style .xet-layout-quickbutton {
    bottom: 7.2rem !important;
  }
  body.app-style #xet-scrolltop-btn {
    bottom: 2rem !important;
  }
}