
/* COM_stack - 위젯 순차 나열 스타일 */

/* 구분 -----------------------------------*/
/**** pc ****/
@media only all and (min-width:768px) {
  .COM_stack .sub_stit {
    width: 100%;
    float: left;
    font-size: calc(var(--tit-md-size) * 1);
    font-weight: 700;
    line-height: 130%;

  }

  .COM_stack .stack_area {
    width: 100%;
    float: left;
  }

  .COM_stack .stack_area .contents-container {
    width: 100%;
    float: left;
    display: flex;
    flex-direction: column;
    
  }

  .COM_stack .stack_item {
    width: 100%;
    float: left;
  }

  .COM_stack .stack_title {
    width: 100%;
    float: left;
    font-size: calc(var(--tit-mds-size) * 0.9);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary, #333);
  }

  .COM_stack .stack_content {
    width: 100%;
    float: left;
  }
}

/**** pc2 ****/
@media all and (max-width:1280px) and (min-width:768px) {
}

/**** 모바일 ****/
@media only all and (max-width:767px) {
  .COM_stack .sub_stit {
    width: 100%;
    float: left;
    font-size: calc(var(--tit-md-size) * 1);
    font-weight: 700;
    line-height: 130%;
    margin-bottom: 20px;
  }

  .COM_stack .stack_area {
    width: 100%;
    float: left;
  }

  .COM_stack .stack_area .contents-container {
    width: 100%;
    float: left;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .COM_stack .stack_item {
    width: 100%;
    float: left;
  }

  .COM_stack .stack_title {
    width: 100%;
    float: left;
    font-size: calc(var(--tit-mds-size) * 0.85);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary, #333);
  }

  .COM_stack .stack_content {
    width: 100%;
    float: left;
  }
}

/**** 모바일2 ****/
@media only all and (max-width:400px) {
}
/* 구분 //end -----------------------------------*/

/* 빈 내용 스타일 */
.COM_stack .empty_li {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  color: #999;
  font-size: 14px;
}

/* ===== 관리자 모드 스타일 (권한 8 이상) ===== */
.COM_stack .stack_admin_mode {
  position: relative;
  padding: 0 50px;
}

.COM_stack .stack_admin_mode .stack_item {
  position: relative;
  border: 2px dashed #f97316;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.COM_stack .stack_admin_mode .stack_item:hover {
  border-color: #ea580c;
  background-color: rgba(249, 115, 22, 0.03);
}

/* 우측 상단 뱃지 (내부 배치) */
.COM_stack .stack_badge {
  position: absolute;
  top: 20px;
  right: 10%;
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 99999;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.COM_stack .stack_badge:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

/* 뱃지 힌트 텍스트 */
.COM_stack .stack_badge .badge_hint {
  display: block;
  font-size: 9px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
  white-space: nowrap;
}

/* 모바일에서 관리자 패딩 조정 */
@media only all and (max-width:767px) {
  .COM_stack .stack_admin_mode {
    padding: 0 15px;
  }

  .COM_stack .stack_admin_mode .stack_item {
    padding: 15px;
  }

  .COM_stack .stack_badge {
    font-size: 11px;
    padding: 5px 10px;
    top: 15px;
    right: 5%;
  }

  .COM_stack .stack_badge .badge_hint {
    font-size: 8px;
    margin-top: 1px;
  }
}

/* 통합 위젯 스킨 버튼 (우측 상단) - COM_stack 직속 버튼만 주황색 */
.COM_stack {
  position: relative;padding:0px 0px!important
}

/* COM_stack 직속 버튼만 주황색 (> 직계 자식 선택자) */
.COM_stack > .grid_layout_badge {
  position: absolute; width: 150px!important;
  top: 10px;
  right: 10px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 100;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
  transition: all 0.2s ease;
}

.COM_stack > .grid_layout_badge:hover {
  background: #ea580c;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

@media only all and (max-width:767px) {
  .COM_stack > .grid_layout_badge {
    font-size: 10px;
    padding: 6px 10px;
    top: 5px;
    right: 5px;
  }
}

/* 관리자 모드일 때 body 스크롤 방지 */
body:has(.stack_admin_mode) {
  overflow-x: hidden;
}

.stack_admin_mode{   width: 100%; float: left; position: relative; box-sizing: border-box; border: 4px solid #f97316; border-radius: 8px; padding: 15px; margin: 20px 0 10px 0; overflow: visible;}
