/* iw-builder 1.22.0 — 우측 TOP 버튼 (켠 사이트에만 실린다) · 색 = 사이트 기본색 --iw-brand */
.iw-totop {
  --iw-totop-c: var(--iw-brand, #1a5fb4);
  --iw-totop-s: 52px;
  --iw-totop-r: 24px;
  --iw-totop-b: 24px;
  position: fixed;
  right: calc(var(--iw-totop-r) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--iw-totop-b) + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: var(--iw-totop-s);
  height: var(--iw-totop-s);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--iw-totop-c);
  color: #fff;
  font: 700 12px/1 Pretendard, "Noto Sans KR", sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, bottom .2s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.iw-totop.is-show { opacity: 1; visibility: visible; transform: none; }
.iw-totop:hover { filter: brightness(1.08); }
.iw-totop:active { transform: scale(.96); }
.iw-totop:focus-visible { outline: 3px solid var(--iw-totop-c); outline-offset: 3px; }
.iw-totop-ic { display: block; flex: none; }
.iw-totop--square { border-radius: 10px; }
/* 글자 TOP — 흰 바탕 + 기본색 테두리·글자 */
.iw-totop--text {
  border-radius: 50%;
  background: #fff;
  color: var(--iw-totop-c);
  box-shadow: inset 0 0 0 2px var(--iw-totop-c), 0 6px 18px rgba(15, 23, 42, .14);
}
.iw-totop--text .iw-totop-t { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
@media (max-width: 768px) {
  .iw-totop { --iw-totop-s: 42px; --iw-totop-r: 14px; --iw-totop-b: 16px; }
  .iw-totop .iw-totop-ic { width: 18px; height: 18px; }
  .iw-totop--text .iw-totop-ic { width: 13px; height: 13px; }
  .iw-totop--text .iw-totop-t { font-size: 10px; }
  .iw-totop--square { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { .iw-totop { transition: none; } }
@media print { .iw-totop { display: none !important; } }
