/* ════════════════════════════════════════════════
   CareCompass 플로팅 위젯   /widget.css
   * top 값은 widget.js에서 페이지별로 동적 설정
════════════════════════════════════════════════ */

#cc-float-widget {
  position: fixed;
  top: 96px;          /* fallback: JS가 덮어씀 */
  left: calc((100vw - 1200px) / 2 - 216px);
  width: 192px;
  background: #fff;
  border: 1px solid #DDD8FF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(91, 90, 224, 0.18);
  z-index: 200;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 헤더 */
.ccw-header {
  background: linear-gradient(135deg, #3D3BB5, #6C63FF);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.ccw-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.ccw-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* 항목 */
.ccw-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f8;
  color: #444;
  transition: background 0.12s, color 0.12s;
}
.ccw-item:last-of-type {
  border-bottom: none;
}
.ccw-item:hover {
  background: #EEF2FF;
  color: #5B5AE0;
}
.ccw-item--active {
  background: #EEF2FF;
  color: #5B5AE0;
  font-weight: 600;
}
.ccw-icon {
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.ccw-label {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
}
.ccw-badge {
  display: inline-block;
  background: #F59E0B;
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 3px;
  vertical-align: middle;
  font-weight: 600;
}
.ccw-close {
  background: none;
  border: none;
  color: #ccc;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.1s;
}
.ccw-close:hover {
  color: #e53935;
}

/* 메뉴 복원 버튼 */
.ccw-reset {
  display: block;
  width: 100%;
  padding: 8px;
  background: none;
  border: none;
  border-top: 1px solid #eee;
  color: #5B5AE0;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
  transition: background 0.1s;
}
.ccw-reset:hover {
  background: #EEF2FF;
}

/* 모바일 숨김 */
@media (max-width: 768px) {
  #cc-float-widget {
    display: none;
  }
}
