/* ============================================================
 * compat-quickbar.css — 외부 커스텀 퀵바 · Top 버튼 호환
 *
 * Custom CSS/JS 플러그인으로 넣은 마크업과의 충돌을 정리한다.
 *   .quick_bar          (SNS 바로가기)  — 외형은 플러그인 CSS 가 담당
 *   #custom-scroll-top  (맨 위로 버튼)  — 플러그인에 CSS 가 없어 여기서 정의
 * ============================================================ */

/* ── 1. 테마 Top 버튼 중복 제거 ─────────────────────────── */
body:has(#custom-scroll-top) .back-to-top,
body.has-custom-scroll-top .back-to-top {
	display: none !important;
}

/* ── 2. 퀵바 — 테마 전역 리셋 보정만 (위치·크기는 플러그인 CSS) ── */
.quick_bar .sns-link img {
	max-width: none;
}

/* ── 3. 커스텀 Top 버튼 ─────────────────────────────────────
   마크업이 문서 앞쪽에 출력되므로 fixed 로 띄워 흐름에서 빼낸다.
   위치는 퀵바(right:31px / width:75px) 아래에 맞춘다. */
#custom-scroll-top {
	position: fixed;
	right: 40px;
	bottom: 60px;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #ef5b25;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	cursor: pointer;
	visibility: hidden;
	opacity: 0;
	transition: opacity .6s, visibility .6s, background-color .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

#custom-scroll-top.active {
	visibility: visible;
	opacity: 1;
}

/* 화살표 (이미지 없이 CSS 로) */
#custom-scroll-top::before {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	margin-top: 5px;
	border-top: 2.5px solid #ffffff;
	border-right: 2.5px solid #ffffff;
	transform: rotate(-45deg);
}

#custom-scroll-top:hover {
	background-color: #d94d1a;
}

@media screen and (max-width: 1024px) {
	#custom-scroll-top {
		right: 28px;
		bottom: 40px;
	}
}

@media screen and (max-width: 767px) {
	#custom-scroll-top {
		right: 14px;
		bottom: 24px;
		width: 46px;
		height: 46px;
	}

	#custom-scroll-top::before {
		width: 12px;
		height: 12px;
		border-top-width: 2px;
		border-right-width: 2px;
	}
}
