/* BASIC css start */
/* 기본 리셋 */
#header, .header, .floating, .quick, .side, #quick, #float, #talk .r_menu{
  z-index: 10 !important;
  position: relative !important;
}
#bestPrd_ombs .bx-wrapper .bx-controls-direction {
  z-index: 1 !important;
}
html,
body {
  width: 100%;
  height: 100%;
}
/* 오버레이 배경 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999999 !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  isolation: isolate;
  backface-visibility: hidden;
  cursor: pointer;
  padding: 20px;
}
/* 팝업 컨테이너 */
#specialEvt {
  max-width: 720px;
  max-height: 90vh;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  z-index: 100000000 !important;
  display: flex;
  flex-direction: column;
}
/* 컨텐츠 영역 */
.cont-pop {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cont-pop .cont {
  width: 100%;
  flex: 1;
  background: #D9D9D9;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 0;
}

/* 슬라이드 스타일 */
.slide-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.slide-wrapper:active {
  cursor: grabbing;
}

.slide-container {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.3s ease-out;
  user-select: none;
}

.slide-item {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-item img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: contain;
}

/* 인디케이터 */
.slide-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: rgba(255, 255, 255, 1);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* 하단 버튼 영역 */
.close-wrap {
  width: 100%;
  display: flex;
  flex-shrink: 0;
}
.close-wrap .close {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 체크박스 라벨 영역 */
.close-wrap .close label {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  color: black;
  font-weight: 400;
  border-bottom-left-radius: 30px;
  padding: 0 10px;
}
.close-wrap .close label:hover {
  background: #f5f5f5;
}
/* 체크박스 커스텀 스타일 */
.close-wrap .close input[type="checkbox"] {
  width: 10.8px;
  height: 10.8px;
  outline: 1.2px black solid;
  outline-offset: -0.6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: white;
  flex-shrink: 0;
  display: none;
}
.close-wrap .close input[type="checkbox"]:checked {
  background: black;
}
/* 닫기 버튼 영역 */
.close-wrap .close .btn-close {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 1px solid #E5E5E5;
  border-bottom-right-radius: 30px;
  text-decoration: none;
  color: black;
  font-size: 14px;
  font-weight: 400;
}
.close-wrap .close .btn-close:hover {
  background: #f5f5f5;
}
.close-wrap .close .btn-close img {
  display: none;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .overlay {
    padding: 10px;
  }
  
  #specialEvt {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 20px;
  }
  
  .close-wrap .close {
    height: 50px;
  }
  
  .close-wrap .close label,
  .close-wrap .close .btn-close {
    font-size: 12px;
  }
  
  .close-wrap .close label {
    border-bottom-left-radius: 20px;
  }
  
  .close-wrap .close .btn-close {
    border-bottom-right-radius: 20px;
  }
}



/*  드래그/스와이프 안정화 */
.slide-wrapper {
  touch-action: pan-y;              /* 세로 스크롤은 허용, 가로 드래그는 JS로 */
  user-select: none;
  -webkit-user-select: none;
}

.slide-container {
  will-change: transform;
}

.slide-item img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* overlay는 클릭 닫기용이니 cursor는 안쪽에서만 grab을 쓰게 */
.overlay { cursor: default; }
/* BASIC css end */

