/* ===== 퀵 액션 메뉴 (FAB) ===== */

/* 백드롭 오버레이 */
.rc-fab-backdrop {
  position: fixed;
  inset: 0;
  z-index: 869;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.rc-fab-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* FAB 컨테이너 */
.rc-fab {
  position: fixed;
  z-index: 870;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}
/* 위치 변형 */
.rc-fab.pos-bottom-left   { bottom: 20px; left: 20px; align-items: flex-start; }
.rc-fab.pos-bottom-right  { bottom: 20px; right: 20px; align-items: flex-end; }
.rc-fab.pos-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }

/* rc-floating-search 표시 시 위로 올림 */
body.rc-floating-active .rc-fab {
  transition: bottom 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  bottom: 84px;
}

/* 메인 FAB 버튼 */
.rc-fab-main {
  width: var(--rc-fab-size, 52px);
  height: var(--rc-fab-size, 52px);
  border-radius: 50%;
  border: none;
  background: var(--rc-fab-color, #FF6B00);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.28s,
              background 0.2s;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.rc-fab-main:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transform: scale(1.06);
}
.rc-fab-main i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.rc-fab.open .rc-fab-main i {
  transform: rotate(45deg);
}

/* 서브 메뉴 래퍼 */
.rc-fab-items {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  align-items: inherit;
}

/* 서브 버튼 + 라벨 묶음 */
.rc-fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px) scale(0.88);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
/* 라벨 위치: right (FAB 오른쪽에 버튼, 왼쪽에 라벨) */
.rc-fab.label-right .rc-fab-item { flex-direction: row-reverse; }
/* 라벨 위치: left (FAB 왼쪽에 버튼, 오른쪽에 라벨) */
.rc-fab.label-left .rc-fab-item  { flex-direction: row; }

/* stagger 오픈 */
.rc-fab.open .rc-fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.rc-fab.open .rc-fab-item:nth-child(1) { transition-delay: 0.04s; }
.rc-fab.open .rc-fab-item:nth-child(2) { transition-delay: 0.08s; }
.rc-fab.open .rc-fab-item:nth-child(3) { transition-delay: 0.12s; }
.rc-fab.open .rc-fab-item:nth-child(4) { transition-delay: 0.16s; }
.rc-fab.open .rc-fab-item:nth-child(5) { transition-delay: 0.20s; }
.rc-fab.open .rc-fab-item:nth-child(6) { transition-delay: 0.24s; }

/* 서브 버튼 */
.rc-fab-sub {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
  text-decoration: none;
}
.rc-fab-sub:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* 라벨 */
.rc-fab-label {
  background: rgba(30, 30, 30, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 모바일: 버튼 조금 작게 */
@media (max-width: 576px) {
  .rc-fab-main {
    width: calc(var(--rc-fab-size, 52px) - 4px);
    height: calc(var(--rc-fab-size, 52px) - 4px);
    font-size: 16px;
  }
  .rc-fab-sub { width: 40px; height: 40px; font-size: 14px; }
  .rc-fab.pos-bottom-left   { bottom: 14px; left: 14px; }
  .rc-fab.pos-bottom-right  { bottom: 14px; right: 14px; }
  body.rc-floating-active .rc-fab { bottom: 76px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .rc-fab-item { transition: opacity 0.1s; }
  .rc-fab-main i { transition: none; }
}
